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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.h

Issue 1485973005: Add CSS support for Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test expectation Created 5 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/style/ComputedStyleConstants.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
index 14d68311b17f126c16d86b27e5163038205b948e..e15b5cb2cac97a89f361f2e4e315227d3805c179 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -485,6 +485,17 @@ inline TouchAction& operator&= (TouchAction& a, TouchAction b) { return a = a &
enum EIsolation { IsolationAuto, IsolationIsolate };
+static const size_t ContainmentBits = 3;
+enum Containment {
+ ContainsNone = 0x0,
+ ContainsLayout = 0x1,
+ ContainsStyle = 0x2,
+ ContainsPaint = 0x4,
+ ContainsStrict = ContainsLayout | ContainsStyle | ContainsPaint,
+};
+inline Containment operator| (Containment a, Containment b) { return Containment(int(a) | int(b)); }
+inline Containment& operator|= (Containment& a, Containment b) { return a = a | b; }
+
enum ItemPosition {
ItemPositionAuto,
ItemPositionStretch,
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698