Chromium Code Reviews| 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 15fa2e07ca658736df4a6257d6befc6bdf59c775..d0d29044580ae0a83ba11af88afdcf98fc445ad5 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -1076,6 +1076,26 @@ void LayoutBox::clearOverrideContainingBlockContentLogicalHeight() |
| gOverrideContainingBlockLogicalHeightMap->remove(this); |
| } |
| +LayoutUnit LayoutBox::overrideContainingBlockContentWidth() const |
|
esprehn
2015/10/30 23:21:31
logical?
cbiesinger
2015/11/13 03:25:48
Elliott - no, these are the non-logical versions o
|
| +{ |
| + return containingBlock()->isHorizontalWritingMode() ? overrideContainingBlockContentLogicalWidth() : overrideContainingBlockContentLogicalHeight(); |
| +} |
| + |
| +LayoutUnit LayoutBox::overrideContainingBlockContentHeight() const |
|
esprehn
2015/10/30 23:21:31
does this need the word Logical in it? that matche
|
| +{ |
| + return containingBlock()->isHorizontalWritingMode() ? overrideContainingBlockContentLogicalHeight() : overrideContainingBlockContentLogicalWidth(); |
| +} |
| + |
| +bool LayoutBox::hasOverrideContainingBlockWidth() const |
| +{ |
| + return containingBlock()->isHorizontalWritingMode() ? hasOverrideContainingBlockLogicalHeight() : hasOverrideContainingBlockLogicalWidth(); |
| +} |
| + |
| +bool LayoutBox::hasOverrideContainingBlockHeight() const |
| +{ |
| + return containingBlock()->isHorizontalWritingMode() ? hasOverrideContainingBlockLogicalHeight() : hasOverrideContainingBlockLogicalWidth(); |
| +} |
| + |
| LayoutUnit LayoutBox::extraInlineOffset() const |
| { |
| return gExtraInlineOffsetMap ? gExtraInlineOffsetMap->get(this) : LayoutUnit(); |