зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1556468. Use the DrawTarget's offset when calculating the clip. r=mstange
The code currently assumes an offset of 0,0 Differential Revision: https://phabricator.services.mozilla.com/D33525 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
5827377048
Коммит
f86acccbe5
|
@ -853,7 +853,8 @@ void gfxContext::ChangeTransform(const Matrix& aNewMatrix,
|
|||
}
|
||||
|
||||
Rect gfxContext::GetAzureDeviceSpaceClipBounds() const {
|
||||
Rect rect(CurrentState().deviceOffset.x, CurrentState().deviceOffset.y,
|
||||
Rect rect(CurrentState().deviceOffset.x + Float(mDT->GetRect().x),
|
||||
CurrentState().deviceOffset.y + Float(mDT->GetRect().y),
|
||||
Float(mDT->GetSize().width), Float(mDT->GetSize().height));
|
||||
for (unsigned int i = 0; i < mStateStack.Length(); i++) {
|
||||
for (unsigned int c = 0; c < mStateStack[i].pushedClips.Length(); c++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче