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

Unified Diff: Source/core/css/CSSParser-in.cpp

Issue 108663009: orphans and widows should be positive integer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed animations/interpolation/orphans-interpolation.html Created 7 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
« no previous file with comments | « LayoutTests/virtual/legacy-animations-engine/animations/interpolation/orphans-interpolation-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParser-in.cpp
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp
index 7b540fd7b14933d06d2f785664449768abe7f452..8be6c7b03009b9fec83c448242f8318fcb95c5e5 100755
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -2036,17 +2036,18 @@ bool CSSParser::parseValue(CSSPropertyID propId, bool important)
validPrimitive = (!id && validUnit(value, FLength | FPercent));
break;
- case CSSPropertyZIndex: // auto | <integer> | inherit
- if (id == CSSValueAuto) {
- validPrimitive = true;
- break;
- }
- /* nobreak */
case CSSPropertyOrphans: // <integer> | inherit | auto (We've added support for auto for backwards compatibility)
case CSSPropertyWidows: // <integer> | inherit | auto (Ditto)
if (id == CSSValueAuto)
validPrimitive = true;
else
+ validPrimitive = (!id && validUnit(value, FPositiveInteger, HTMLQuirksMode));
+ break;
+
+ case CSSPropertyZIndex: // auto | <integer> | inherit
+ if (id == CSSValueAuto)
+ validPrimitive = true;
+ else
validPrimitive = (!id && validUnit(value, FInteger, HTMLQuirksMode));
break;
« no previous file with comments | « LayoutTests/virtual/legacy-animations-engine/animations/interpolation/orphans-interpolation-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698