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

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

Issue 2462413002: Reland of Use NGLogicalRect instead of NGExclusion for exclusions. (Closed)
Patch Set: Created 4 years, 1 month 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_layout_opportunity_tree_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h
index 0c3a3599ca918408759a21e45e642b34d8dd8c52..a21977f464259b98b8736bdc2e4fc323346c2caa 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_tree_node.h
@@ -10,13 +10,13 @@
namespace blink {
-struct NGExclusion;
// 3 node R-Tree that represents available space(left, bottom, right) or
// layout opportunity after the parent spatial rectangle is split by the
// exclusion rectangle.
struct CORE_EXPORT NGLayoutOpportunityTreeNode
: public GarbageCollected<NGLayoutOpportunityTreeNode> {
+ public:
// Default constructor.
// Creates a Layout Opportunity tree node that is limited by it's own edge
// from above.
@@ -34,14 +34,14 @@
Member<NGLayoutOpportunityTreeNode> bottom;
Member<NGLayoutOpportunityTreeNode> right;
- // Exclusion that split apart this layout opportunity.
- Member<const NGExclusion> exclusion;
-
// The top layout opportunity associated with this node.
NGLogicalRect opportunity;
// Edge that limits this layout opportunity from above.
NGEdge exclusion_edge;
+
+ // Exclusion that splits apart this layout opportunity.
+ const NGLogicalRect* exclusion; // Not owned.
// Whether this node is a leaf node.
// The node is a leaf if it doesn't have an exclusion that splits it apart.

Powered by Google App Engine
This is Rietveld 408576698