mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
Swap it instead of assigning it (reduces copying)
This commit is contained in:
parent
56c78a743c
commit
af5093ee39
@ -308,7 +308,7 @@ NS_IMETHODIMP nsRenderingContextQt::PopState()
|
|||||||
delete mTranMatrix;
|
delete mTranMatrix;
|
||||||
mTranMatrix = state->mMatrix;
|
mTranMatrix = state->mMatrix;
|
||||||
}
|
}
|
||||||
mClipRegion = state->mClipRegion;
|
mClipRegion.swap(state->mClipRegion);
|
||||||
|
|
||||||
if (state->mColor != mCurrentColor)
|
if (state->mColor != mCurrentColor)
|
||||||
SetColor(state->mColor);
|
SetColor(state->mColor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user