<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added projects: Plasma, Frameworks.<br />Restricted Application added a subscriber: plasma-devel.
</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/D4713" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p><a href="https://phabricator.kde.org/R242:d8a1a9eb084b19e552c789244267f7346e1b27a8" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">d8a1a9eb084b19e552c789244267f7346e1b27a8</a> introduces an unintended code<br />
change, resizeFrame() updates the margins and in turns calls<br />
repaintNeeded. This isn't needed and is a binding loop if we ever have a<br />
frameSVGItem whose size depends on it's own margins.</p>

<p>resizeFrame is different from setEnabledBorders / setElementPrefix /<br />
theme changes because even though we need to create a new FrameData we<br />
know any hints and margins won't change. FrameSvgItem::updateSizes<br />
doesn't depend on the size in any way.</p>

<p>The old code did pointlessly call updateSizes, but didn't emit anything.</p>

<p>This patch that introduces a flag to updateFrameData to determine if we<br />
should re-evaluate size hints or not.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>GDB showed where the loop was.</p>

<p>Read the old code, and looked for differences</p>

<p>Ran plasmashell, checked I had no binding loop, frames including button which have<br />
composeOverBorder which need the new FrameData all rendered correctly.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4713" rel="noreferrer">https://phabricator.kde.org/D4713</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/plasma/framesvg.cpp<br />
src/plasma/private/framesvg_p.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma, Frameworks<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>