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

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

Issue 2467803002: Revert 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_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 c2a59ae307fda1cddfa3e584882b67b6b952d0f8..e0b69603a5af6899f9da56d0dbf6d6e2745a6376 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,7 +6,6 @@
#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"
@@ -47,12 +46,6 @@
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 {
@@ -62,7 +55,7 @@
// 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 NGLogicalRect& exclusion) const;
+ void AddExclusion(const NGExclusion* exclusion) const;
// Size of the container. Used for the following three cases:
// 1) Percentage resolution.

Powered by Google App Engine
This is Rietveld 408576698