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

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: Update some text expectations, and move the new properties into ComputedStyle, since they aren't ra… 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..461ce9f733ca11696971971d3a661687ab3e456d 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -321,8 +321,24 @@ enum TextUnderlinePosition {
TextUnderlinePositionUnder
};
-enum EPageBreak {
- PBAUTO, PBALWAYS, PBAVOID
+enum EBreak {
+ BreakAuto,
+ BreakAvoid,
+ BreakAvoidColumn,
+ BreakAvoidPage,
+ BreakAvoidRegion,
+ // 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 = BreakAvoidRegion,
+ BreakColumn,
+ BreakLeft,
+ BreakPage,
+ BreakRecto,
+ BreakRegion,
+ 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