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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainter.cpp

Issue 2878723003: Add BorderBoxOutsets method to LayoutBoxModelObject (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index 3b15cff3cac6aa518db6ce968dffac54d344bb9a..06016f14727821750f5ba9e6d14f0c6ebfa0ba5e 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -77,9 +77,7 @@ void BoxPainter::PaintBoxDecorationBackground(const PaintInfo& paint_info,
// The background painting code assumes that the borders are part of the
// paintRect so we expand the paintRect by the border size when painting the
// background into the scrolling contents layer.
- paint_rect.ExpandEdges(layout_box_.BorderTop(), layout_box_.BorderRight(),
- layout_box_.BorderBottom(),
- layout_box_.BorderLeft());
+ paint_rect.Expand(layout_box_.BorderBoxOutsets());
} else {
paint_rect = layout_box_.BorderBoxRect();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698