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

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

Issue 1544423002: Improve positioned/percentHeight descendant/container tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build break Created 4 years, 11 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
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 bd087709e45c582a41b32429ae6c3a19ee036c30..46191cd1de3b5867293a2ff777abdb79a50787c7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -58,6 +58,7 @@ public:
, m_overrideLogicalContentHeight(-1)
, m_overrideLogicalContentWidth(-1)
, m_previousBorderBoxSize(-1, -1)
+ , m_percentHeightContainer(nullptr)
{
}
@@ -78,6 +79,8 @@ public:
LayoutUnit m_pageLogicalOffset;
LayoutUnit m_paginationStrut;
+
+ LayoutBlock* m_percentHeightContainer;
};
// LayoutBox implements the full CSS box model.
@@ -849,6 +852,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;

Powered by Google App Engine
This is Rietveld 408576698