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

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

Issue 1875263005: [css-flexbox] More correctly implement percentage sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/LayoutFlexibleBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
index 84b00869e4bbce763a4407b5189ba345181d4ba4..96b647f5898b4b15ec3a8465ddd5439b7d768f75 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h
@@ -192,6 +192,11 @@ private:
// This is used to cache the preferred size for orthogonal flow children so we don't have to relayout to get it
HashMap<const LayoutObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis;
+ // This set is used to keep track of which children we laid out in this current layout iteration.
+ // We need it because the ones in this set may need an additional layout pass for correct stretch alignment
+ // handling, as the first layout likely did not use the correct value for percentage sizing of children.
+ HashSet<const LayoutObject*> m_relaidOutChildren;
+
mutable OrderIterator m_orderIterator;
int m_numberOfInFlowChildrenOnFirstLine;
};

Powered by Google App Engine
This is Rietveld 408576698