зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1471437 - Part 2: Reset mPaintRect only when the new building rect is different, and update mPaintRectValid when it is. r=mattwoodrow
MozReview-Commit-ID: 5djSr7eNk8W
This commit is contained in:
Родитель
40d7ba26d3
Коммит
43ddb842d7
|
@ -2641,7 +2641,13 @@ public:
|
|||
|
||||
void SetBuildingRect(const nsRect& aBuildingRect)
|
||||
{
|
||||
if (aBuildingRect == mBuildingRect) {
|
||||
// Avoid unnecessary paint rect recompution when the
|
||||
// building rect is staying the same.
|
||||
return;
|
||||
}
|
||||
mPaintRect = mBuildingRect = aBuildingRect;
|
||||
mPaintRectValid = false;
|
||||
}
|
||||
|
||||
void SetPaintRect(const nsRect& aPaintRect) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче