make sure the framedata creation/destruction is
completely in updateFrameData, makes easier to track
and possible to use the repaintsblocked logic.
now only one framedata instance should be created at startup.
CCBUG:376754
davidedmundson |
Plasma |
make sure the framedata creation/destruction is
completely in updateFrameData, makes easier to track
and possible to use the repaintsblocked logic.
now only one framedata instance should be created at startup.
CCBUG:376754
No Linters Available |
No Unit Test Coverage |
src/plasma/framesvg.cpp | ||
---|---|---|
805 | I don't understand this and the FrameData part of this change. q->imagePath() will still always be correct as before, you still set that in setImagePath() regardless of whether we are blocking updates or not. |
src/plasma/framesvg.cpp | ||
---|---|---|
805 | i need this because one check, in updateFrameData() can have the following situation: imagepath was updated during repaintBlocked, so q->imagePAth() becomes different from frameData->imagePath from line 670 we temporarly assign the new values to framedata, so we can compare the two keys (we don't know which among enabledBorders, frameSize and imagePath changed, if any) so i need to generate a cacheid with imagePath eventually in some cases different from q->imagePath() |