Bug 1165513 - Translate GTK3 widgets with snapped pixel coordinates into identity space. r=jrmuizel

This commit is contained in:
Lee Salzman 2015-05-19 17:08:35 -04:00
Родитель 6cde204207
Коммит edfe5219aa
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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.