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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Rebased 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 492fabdffb528c5f48f0bcd315d3d5ef9b7dddf4..ac8475d487356ad320ae78c0f1688a128a20e3a1 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3480,7 +3480,7 @@ IntRect FrameView::convertFromContainingWidget(
IntRect rect = parentView->convertToLayoutItem(layoutItem, parentRect);
// Subtract borders and padding
rect.move((-layoutItem.borderLeft() - layoutItem.paddingLeft()).toInt(),
- (-layoutItem.borderTop() - layoutItem.paddingTop().toInt()));
+ (-layoutItem.borderTop() - layoutItem.paddingTop()).toInt());
return rect;
}

Powered by Google App Engine
This is Rietveld 408576698