Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index 3f97933a305f980a2ee7c7e2c434ac643b7bfa2b..2dd9f946f312fc51eb137ed7250b1c6e85d614d8 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -57,6 +57,7 @@ public: |
, m_overrideLogicalContentHeight(-1) |
, m_overrideLogicalContentWidth(-1) |
, m_previousBorderBoxSize(-1, -1) |
+ , m_percentHeightContainer(nullptr) |
{ |
} |
@@ -74,6 +75,8 @@ public: |
LayoutUnit m_pageLogicalOffset; |
LayoutUnit m_paginationStrut; |
+ |
+ LayoutBlock* m_percentHeightContainer; |
}; |
// LayoutBox implements the full CSS box model. |
@@ -868,6 +871,11 @@ public: |
void clearPreviousPaintInvalidationRects() override; |
+ LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData->m_percentHeightContainer : nullptr; } |
+ void setPercentHeightContainer(LayoutBlock*); |
+ void removeFromPercentHeightContainer(); |
+ void clearPercentHeightDescendants(); |
+ |
protected: |
void willBeDestroyed() override; |