<table><tr><td style="">zzag created this revision.<br />zzag added a reviewer: Plasma.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: kde-frameworks-devel.<br />zzag requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13215">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In some cases, when rendering frame svg background, measures & margins<br />
do not correspond to <tt style="background: #ebebeb; font-size: 13px;">enabledBorders</tt>. I.e. <tt style="background: #ebebeb; font-size: 13px;">bottomHeight</tt> may be equal to 5,<br />
but the bottom border is disabled. This causes visual artifacts like this</p>
<p><%= image %></p>
<p>There are several approaches to fix this problem:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Rewrite the <tt style="background: #ebebeb; font-size: 13px;">contentGeometry</tt> method, so it takes into account whether the left/top/right/bottom border is enabled.</li>
</ul>
<ul class="remarkup-list">
<li class="remarkup-list-item">Or, call <tt style="background: #ebebeb; font-size: 13px;">updateSizes</tt> before rendering frame svg background.</li>
</ul>
<p>I took the latter approach in this diff.</p>
<p>Just for reference, this is "after"</p>
<p><%= image %></p>
<p>BUG: 382324<br />
BUG: 390632<br />
BUG: 391659</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-framesvg-contentrect</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13215">https://phabricator.kde.org/D13215</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/plasma/framesvg.cpp</div></div></div><br /><div><strong>To: </strong>zzag, Plasma<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>