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 e0b69603a5af6899f9da56d0dbf6d6e2745a6376..c2a59ae307fda1cddfa3e584882b67b6b952d0f8 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 |
@@ -6,6 +6,7 @@ |
#define NGConstraintSpace_h |
#include "core/CoreExport.h" |
+#include "core/layout/ng/ng_macros.h" |
#include "core/layout/ng/ng_physical_constraint_space.h" |
#include "core/layout/ng/ng_writing_mode.h" |
#include "platform/heap/Handle.h" |
@@ -46,6 +47,12 @@ class CORE_EXPORT NGConstraintSpace final |
return physical_space_; |
} |
+ const Vector<std::unique_ptr<const NGLogicalRect>>& Exclusions() const { |
+ WRITING_MODE_IGNORED( |
+ "Exclusions are stored directly in physical constraint space."); |
+ return PhysicalSpace()->Exclusions(); |
+ } |
+ |
NGDirection Direction() const { return static_cast<NGDirection>(direction_); } |
NGWritingMode WritingMode() const { |
@@ -55,7 +62,7 @@ class CORE_EXPORT NGConstraintSpace final |
// Adds the exclusion in the physical constraint space. |
// Passing the exclusion ignoring the writing mode is fine here since the |
// exclusion is set in physical coordinates. |
- void AddExclusion(const NGExclusion* exclusion) const; |
+ void AddExclusion(const NGLogicalRect& exclusion) const; |
// Size of the container. Used for the following three cases: |
// 1) Percentage resolution. |