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

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

Issue 2734923002: Add LayoutOpportunityIterator method to NGConstraintSpace (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
index f3db8750302d435756262c5ea23a467109721bff..9fdb2b09094a4c5a52605261b61d81ae08bbf86e 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
@@ -11,6 +11,7 @@
#include "core/layout/ng/geometry/ng_margin_strut.h"
#include "core/layout/ng/geometry/ng_physical_size.h"
#include "core/layout/ng/ng_exclusion.h"
+#include "core/layout/ng/ng_layout_opportunity_iterator.h"
#include "core/layout/ng/ng_writing_mode.h"
#include "platform/heap/Handle.h"
#include "platform/text/TextDirection.h"
@@ -21,7 +22,6 @@
namespace blink {
class LayoutBox;
-class NGBoxFragment;
enum NGFragmentationType {
kFragmentNone,
@@ -108,17 +108,14 @@ class CORE_EXPORT NGConstraintSpace final
// blockSize if possible.
NGFragmentationType BlockFragmentationType() const;
+ NGLayoutOpportunityIterator* LayoutOpportunityIterator();
+
// Return true if this contraint space participates in a fragmentation
// context.
bool HasBlockFragmentation() const {
return BlockFragmentationType() != kFragmentNone;
}
- // Modifies constraint space to account for a placed fragment. Depending on
- // the shape of the fragment this will either modify the inline or block
- // size, or add an exclusion.
- void Subtract(const NGBoxFragment*);
-
NGMarginStrut MarginStrut() const { return margin_strut_; }
NGLogicalOffset BfcOffset() const { return bfc_offset_; }
@@ -184,6 +181,7 @@ class CORE_EXPORT NGConstraintSpace final
NGLogicalOffset bfc_offset_;
const std::shared_ptr<NGExclusions> exclusions_;
WTF::Optional<LayoutUnit> clearance_offset_;
+ std::unique_ptr<NGLayoutOpportunityIterator> layout_opp_iter_;
};
inline std::ostream& operator<<(std::ostream& stream,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698