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

Unified Diff: Source/core/css/parser/BisonCSSParser-in.cpp

Issue 231153003: Added backround-repeat-x and -y as keyword properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test cases. Reworked test style as requested. Created 6 years, 8 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
« no previous file with comments | « LayoutTests/fast/backgrounds/background-repeat-computed-style-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/parser/BisonCSSParser-in.cpp
diff --git a/Source/core/css/parser/BisonCSSParser-in.cpp b/Source/core/css/parser/BisonCSSParser-in.cpp
index d7e48074b96bc0985c30067c49de1c85370e70b5..c089a7b47363877224ab9aa10dd98350686732c6 100644
--- a/Source/core/css/parser/BisonCSSParser-in.cpp
+++ b/Source/core/css/parser/BisonCSSParser-in.cpp
@@ -367,6 +367,11 @@ bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, int valueID, const
return false;
switch (propertyId) {
+ case CSSPropertyBackgroundRepeatX: // repeat | no-repeat | inherit
+ case CSSPropertyBackgroundRepeatY: // repeat | no-repeat | inherit
+ if (valueID == CSSValueRepeat || valueID == CSSValueNoRepeat)
+ return true;
+ break;
case CSSPropertyBorderCollapse: // collapse | separate | inherit
if (valueID == CSSValueCollapse || valueID == CSSValueSeparate)
return true;
@@ -739,6 +744,8 @@ bool isKeywordPropertyID(CSSPropertyID propertyId)
switch (propertyId) {
case CSSPropertyMixBlendMode:
case CSSPropertyIsolation:
+ case CSSPropertyBackgroundRepeatX:
+ case CSSPropertyBackgroundRepeatY:
case CSSPropertyBorderBottomStyle:
case CSSPropertyBorderCollapse:
case CSSPropertyBorderLeftStyle:
« no previous file with comments | « LayoutTests/fast/backgrounds/background-repeat-computed-style-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698