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

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

Issue 2322293002: [LayoutNG] Split LayoutOpportunityIterator into separate file (Closed)
Patch Set: Patch for landing Created 4 years, 3 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/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 88b5cfd535bac64d6fc34fe8ae0af2e6179b40e3..4662a766d9c3fd4c3f1c3c01cc7d221e28c27453 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
@@ -16,7 +16,6 @@
namespace blink {
class LayoutBox;
-class NGDerivedConstraintSpace;
class NGFragment;
class NGLayoutOpportunityIterator;
@@ -120,40 +119,6 @@ class CORE_EXPORT NGConstraintSpace final
unsigned writing_mode_ : 3;
};
-class CORE_EXPORT NGLayoutOpportunityIterator final
- : public GarbageCollectedFinalized<NGLayoutOpportunityIterator> {
- public:
- NGLayoutOpportunityIterator(NGConstraintSpace* space,
- unsigned clear,
- bool for_inline_or_bfc);
- ~NGLayoutOpportunityIterator() {}
-
- NGConstraintSpace* Next();
-
- DEFINE_INLINE_VIRTUAL_TRACE() {
- visitor->trace(constraint_space_);
- visitor->trace(current_opportunities_);
- }
-
- private:
- void computeForExclusion(unsigned index);
- LayoutUnit heightForOpportunity(LayoutUnit left,
- LayoutUnit top,
- LayoutUnit right,
- LayoutUnit bottom);
- void addLayoutOpportunity(LayoutUnit left,
- LayoutUnit top,
- LayoutUnit right,
- LayoutUnit bottom);
-
- Member<NGConstraintSpace> constraint_space_;
- unsigned clear_;
- bool for_inline_or_bfc_;
- Vector<NGExclusion> filtered_exclusions_;
- HeapVector<Member<NGConstraintSpace>> current_opportunities_;
- unsigned current_exclusion_idx_;
-};
-
inline std::ostream& operator<<(std::ostream& stream,
const NGConstraintSpace& value) {
return stream << value.toString();
« no previous file with comments | « third_party/WebKit/Source/core/layout/BUILD.gn ('k') | 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