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

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

Issue 2457013004: Use NGLogicalRect instead of NGExclusion for exclusions. (Closed)
Patch Set: renamed IsWithing to IsContained 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_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.

Powered by Google App Engine
This is Rietveld 408576698