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

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: 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 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;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698