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

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: rebase master 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 7755393dfb97995087653d258f065c7d0417b208..8c110c0d2997c076f7caa8c3a06b6798c5cdcd8e 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 {
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/StyleMultiColData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698