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

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

Issue 2441373002: Percent height content should respect the height of its containing cell (Closed)
Patch Set: bug 637811 Created 4 years, 1 month 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/LayoutBoxModelObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
index 3d6e8df7d19625459f7a1ad95be63033840281c1..c39cc0a2f30ffba101539a63c7e7883f9898e750 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -322,6 +322,15 @@ class CORE_EXPORT LayoutBoxModelObject : public LayoutObject {
return paddingBefore() + paddingAfter();
}
+ LayoutUnit collapsedBorderAndCSSPaddingLogicalWidth() const {
+ return computedCSSPaddingStart() + computedCSSPaddingEnd() + borderStart() +
+ borderEnd();
+ }
+ LayoutUnit collapsedBorderAndCSSPaddingLogicalHeight() const {
+ return computedCSSPaddingBefore() + computedCSSPaddingAfter() +
+ borderBefore() + borderAfter();
+ }
+
virtual LayoutRectOutsets marginBoxOutsets() const = 0;
virtual LayoutUnit marginTop() const = 0;
virtual LayoutUnit marginBottom() const = 0;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698