Backed out changeset a8e569516f31 (bug 907926) for TART regressions
authorVladan Djeric <vdjeric@mozilla.com>
Wed, 11 Sep 2013 13:30:53 -0400
changeset 159497 1aaa574b386378b21c44b6541e1fccfd8c5a1568
parent 159496 ea9ee28a3654decf5dc1e3bdc8f1aad8ba4988b2
child 159498 e42f0bf501e02c559a2d50890a736d9b456e6065
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs907926
milestone26.0a1
backs outa8e569516f3199dbe85f7c09fe4e1b367746623e
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset a8e569516f31 (bug 907926) for TART regressions
widget/windows/nsWindowGfx.cpp
--- a/widget/windows/nsWindowGfx.cpp
+++ b/widget/windows/nsWindowGfx.cpp
@@ -362,22 +362,20 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t
 
           if (!targetSurface) {
             NS_ERROR("Invalid RenderMode!");
             return false;
           }
 
           nsRefPtr<gfxContext> thebesContext;
           if (gfxPlatform::GetPlatform()->SupportsAzureContentForType(mozilla::gfx::BACKEND_CAIRO)) {
-            RECT paintRect;
-            ::GetClientRect(mWnd, &paintRect);
             RefPtr<mozilla::gfx::DrawTarget> dt =
               gfxPlatform::GetPlatform()->CreateDrawTargetForSurface(targetSurface,
-                                                                     mozilla::gfx::IntSize(paintRect.right - paintRect.left,
-                                                                                           paintRect.bottom - paintRect.top));
+                                                                     mozilla::gfx::IntSize(targetSurface->GetSize().width,
+                                                                                           targetSurface->GetSize().height));
             thebesContext = new gfxContext(dt);
           } else {
             thebesContext = new gfxContext(targetSurface);
           }
 
           if (IsRenderMode(gfxWindowsPlatform::RENDER_DIRECT2D)) {
             const nsIntRect* r;
             for (nsIntRegionRectIterator iter(region);