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

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

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 | « no previous file | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
index f3bbba22fa1f1c0224c2e53f9bd58a47d48c77a9..cd43aa2046fa7ecff24dcddb274edcacafd41ba7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -286,6 +286,11 @@ class CORE_EXPORT LayoutBoxModelObject : public LayoutObject {
LayoutUnit BorderWidth() const { return BorderLeft() + BorderRight(); }
LayoutUnit BorderHeight() const { return BorderTop() + BorderBottom(); }
+ virtual LayoutRectOutsets BorderBoxOutsets() const {
+ return LayoutRectOutsets(BorderTop(), BorderRight(), BorderBottom(),
+ BorderLeft());
+ }
+
// Insets from the border box to the inside of the border.
LayoutRectOutsets BorderInsets() const {
return LayoutRectOutsets(-BorderTop(), -BorderRight(), -BorderBottom(),
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698