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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

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/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 495fd6b7b79c1c4d4d228fde777f940a34b1b04b..586e280268be031417dd31d2964dc7da04d3f917 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -364,8 +364,7 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
// As such their location doesn't account for 'top'/'left'.
LayoutRect borderBoxRect() const { return LayoutRect(LayoutPoint(), size()); }
LayoutRect paddingBoxRect() const {
- return LayoutRect(LayoutUnit(borderLeft()), LayoutUnit(borderTop()),
- clientWidth(), clientHeight());
+ return LayoutRect(borderLeft(), borderTop(), clientWidth(), clientHeight());
}
IntRect pixelSnappedBorderBoxRect() const {
return IntRect(IntPoint(), m_frameRect.pixelSnappedSize());
@@ -526,9 +525,7 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
? verticalScrollbarWidth()
: 0));
}
- DISABLE_CFI_PERF LayoutUnit clientTop() const {
- return LayoutUnit(borderTop());
- }
+ DISABLE_CFI_PERF LayoutUnit clientTop() const { return borderTop(); }
LayoutUnit clientWidth() const;
LayoutUnit clientHeight() const;
DISABLE_CFI_PERF LayoutUnit clientLogicalWidth() const {
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698