mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898228 - Avoid wasted work in gfxContext::ClipContainsRect(). r=bas
This commit is contained in:
parent
5a49929cfc
commit
6baaeb6ea1
@ -1233,6 +1233,7 @@ gfxContext::ClipContainsRect(const gfxRect& aRect)
|
||||
for (int i = mStateStack.Length() - 2; i > 0; i--) {
|
||||
if (mStateStack[i].clipWasReset) {
|
||||
lastReset = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2074,6 +2075,7 @@ gfxContext::PushClipsToDT(DrawTarget *aDT)
|
||||
for (int i = mStateStack.Length() - 2; i > 0; i--) {
|
||||
if (mStateStack[i].clipWasReset) {
|
||||
lastReset = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2185,6 +2187,7 @@ gfxContext::GetAzureDeviceSpaceClipBounds()
|
||||
for (int i = mStateStack.Length() - 1; i > 0; i--) {
|
||||
if (mStateStack[i].clipWasReset) {
|
||||
lastReset = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user