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

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

Issue 2525033002: Deprecate NGPhysicalConstraintSpace (Closed)
Patch Set: update TestExpectations Created 4 years 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_units.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.h b/third_party/WebKit/Source/core/layout/ng/ng_units.h
index 95151cc9e863cfc917fade2a82b04378dd7993f2..965f2f3e5c7619f7a56dd48b4b061c5dc0287dea 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.h
@@ -184,6 +184,25 @@ struct CORE_EXPORT NGExclusion {
Type type;
};
+struct CORE_EXPORT NGExclusions {
+ // Default constructor.
+ NGExclusions();
+
+ // Copy constructor.
+ NGExclusions(const NGExclusions& other);
+
+ Vector<std::unique_ptr<const NGExclusion>> storage;
+
+ // Last left/right float exclusions are used to enforce the top edge alignment
+ // rule for floats and for the support of CSS "clear" property.
+ const NGExclusion* last_left_float; // Owned by storage.
+ const NGExclusion* last_right_float; // Owned by storage.
+
+ NGExclusions& operator=(const NGExclusions& other);
+
+ void Add(const NGExclusion& exclusion);
+};
+
struct NGPixelSnappedPhysicalRect {
int top;
int left;

Powered by Google App Engine
This is Rietveld 408576698