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

Unified Diff: third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.h

Issue 2228593005: [LayoutNG] Move createConstraintSpaceFromLayoutObject to NGConstraintSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/ng/NGConstraintSpace.h
diff --git a/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.h b/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.h
index d0d9a1fe30c27abcb0203a3f9ee7abe8e8b71698..7d0a2a1058d3aa599d105cda280664f326af0a72 100644
--- a/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.h
+++ b/third_party/WebKit/Source/core/layout/ng/NGConstraintSpace.h
@@ -11,10 +11,12 @@
namespace blink {
+class NGConstraintSpace;
class NGDerivedConstraintSpace;
class NGExclusion;
class NGFragment;
class NGLayoutOpportunityIterator;
+class LayoutBox;
enum NGExclusionType {
NGClearNone = 0,
@@ -50,6 +52,9 @@ public:
LayoutUnit blockContainerSize);
~NGConstraintSpace() { }
+ // Constructs Layout NG constraint space from legacy layout object.
cbiesinger 2016/08/09 19:26:58 Can you clarify in the comment that you have to pa
+ static NGConstraintSpace fromLayoutObject(const LayoutBox&);
eae 2016/08/09 19:20:22 Eventually we probably want this (and similar meth
+
void addExclusion(const NGExclusion, unsigned options = 0);
void setOverflowTriggersScrollbar(bool inlineTriggers,
bool blockTriggers);

Powered by Google App Engine
This is Rietveld 408576698