Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 6b443a587a2ce3eacddf7d97d75734b7ee46f0d8..c0d041e5f4ae8c60ac5126f907980f797306250b 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -1141,6 +1141,26 @@ void LayoutBox::clearOverrideContainingBlockContentLogicalHeight() |
gOverrideContainingBlockLogicalHeightMap->remove(this); |
} |
+LayoutUnit LayoutBox::overrideContainingBlockContentWidth() const |
cbiesinger
2016/07/19 17:39:36
By the way, I wonder if we should store the overri
svillar
2016/07/20 09:23:36
FWIW I agree with Christian.
jfernandez
2016/07/20 13:46:14
I think it'd make sense, so I'll add a TODO about
|
+{ |
+ return containingBlock()->isHorizontalWritingMode() ? overrideContainingBlockContentLogicalWidth() : overrideContainingBlockContentLogicalHeight(); |
+} |
+ |
+LayoutUnit LayoutBox::overrideContainingBlockContentHeight() const |
+{ |
+ return containingBlock()->isHorizontalWritingMode() ? overrideContainingBlockContentLogicalHeight() : overrideContainingBlockContentLogicalWidth(); |
+} |
+ |
+bool LayoutBox::hasOverrideContainingBlockWidth() const |
+{ |
+ return containingBlock()->isHorizontalWritingMode() ? hasOverrideContainingBlockLogicalWidth() : hasOverrideContainingBlockLogicalHeight(); |
+} |
+ |
+bool LayoutBox::hasOverrideContainingBlockHeight() const |
+{ |
+ return containingBlock()->isHorizontalWritingMode() ? hasOverrideContainingBlockLogicalHeight() : hasOverrideContainingBlockLogicalWidth(); |
+} |
+ |
LayoutUnit LayoutBox::extraInlineOffset() const |
{ |
return gExtraInlineOffsetMap ? gExtraInlineOffsetMap->get(this) : LayoutUnit(); |