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

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

Issue 1681273003: Add CSS parser support for break-after, break-before and break-inside. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't parse region values. Created 4 years, 10 months 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 f2a99cd540fb84add62bf9823d71053f5d9659aa..fa958cf2d4a2d280b92231f8028e536be7fbe362 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -321,8 +321,22 @@ enum TextUnderlinePosition {
TextUnderlinePositionUnder
};
-enum EPageBreak {
- PBAUTO, PBALWAYS, PBAVOID
+enum EBreak {
+ BreakAuto,
+ BreakAvoid,
+ BreakAvoidColumn,
+ BreakAvoidPage,
+ // Values below are only allowed for break-after and break-before. Values above are also
+ // allowed for break-inside (in addition to break-after and break-before).
+ BreakValueLastAllowedForBreakInside = BreakAvoidPage,
+ BreakColumn,
+ BreakLeft,
+ BreakPage,
+ BreakRecto,
+ BreakRight,
+ BreakVerso,
+ BreakValueLastAllowedForBreakAfterAndBefore = BreakVerso,
+ BreakAlways // Only needed by {page,-webkit-column}-break-{after,before} shorthands.
};
enum EEmptyCell {

Powered by Google App Engine
This is Rietveld 408576698