Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Rebaselined tests. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index bf203b4571dceb89135ecc6d412ddf2f908d6194..18d09fcc0e012995754c310a142c7be7ceab9ef3 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1120,7 +1120,8 @@ void CompositedLayerMapping::computeGraphicsLayerParentLocation(
IntSize scrollOffset = layoutBox->scrolledContentOffset();
IntPoint scrollOrigin =
compositingContainer->getScrollableArea()->scrollOrigin();
- scrollOrigin.move(-layoutBox->borderLeft(), -layoutBox->borderTop());
+ scrollOrigin.move(-layoutBox->borderLeft().toInt(),
+ -layoutBox->borderTop().toInt());
graphicsLayerParentLocation = -(scrollOrigin + scrollOffset);
}
}

Powered by Google App Engine
This is Rietveld 408576698