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

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

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Created 3 years, 11 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 8a87af32c5a306d3ff70f9d4758a070659153700..3fc48e261085a970778e07e4af3897d830af356b 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1094,7 +1094,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