зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1165513 - Translate GTK3 widgets with snapped pixel coordinates into identity space. r=jrmuizel
This commit is contained in:
Родитель
6cde204207
Коммит
edfe5219aa
|
@ -848,7 +848,8 @@ DrawThemeWithCairo(gfxContext* aContext, DrawTarget* aDrawTarget,
|
|||
if (needClip || aTransparency != nsITheme::eOpaque) {
|
||||
// The widget either needs to be masked or has transparency, so use the slower drawing path.
|
||||
aDrawTarget->DrawSurface(dataSurface,
|
||||
Rect(aDrawOrigin, Size(aDrawSize)),
|
||||
Rect(aSnapped ? aDrawOrigin - aDrawTarget->GetTransform().GetTranslation() : aDrawOrigin,
|
||||
Size(aDrawSize)),
|
||||
Rect(0, 0, aDrawSize.width, aDrawSize.height));
|
||||
} else {
|
||||
// The widget is a simple opaque rectangle, so just copy it out.
|
||||
|
|
Загрузка…
Ссылка в новой задаче