[chromium] Compositor debug borders are not scaled correctly
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2012 23:20:32 +0000 (23:20 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jan 2012 23:20:32 +0000 (23:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=77468

Use CCLayerImpl::contentBounds() instead of CCLayerImpl::bounds() to calculate debug
border geometry so that the borders are properly scaled.

Patch by Sami Kyostila <skyostil@chromium.org> on 2012-01-31
Reviewed by James Robinson.

* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::appendDebugBorderQuad):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106406 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/cc/CCLayerImpl.cpp

index 53168ee..637c9f4 100644 (file)
@@ -1,3 +1,16 @@
+2012-01-31  Sami Kyostila  <skyostil@chromium.org>
+
+        [chromium] Compositor debug borders are not scaled correctly
+        https://bugs.webkit.org/show_bug.cgi?id=77468
+
+        Use CCLayerImpl::contentBounds() instead of CCLayerImpl::bounds() to calculate debug
+        border geometry so that the borders are properly scaled.
+
+        Reviewed by James Robinson.
+
+        * platform/graphics/chromium/cc/CCLayerImpl.cpp:
+        (WebCore::CCLayerImpl::appendDebugBorderQuad):
+
 2012-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r106376.
index 86de00d..81f9712 100644 (file)
@@ -170,7 +170,7 @@ void CCLayerImpl::appendDebugBorderQuad(CCQuadList& quadList, const CCSharedQuad
     if (!hasDebugBorders())
         return;
 
-    IntRect layerRect(IntPoint(), bounds());
+    IntRect layerRect(IntPoint(), contentBounds());
     quadList.append(CCDebugBorderDrawQuad::create(sharedQuadState, layerRect, debugBorderColor(), debugBorderWidth()));
 }