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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 1099483002: Use alias_for with trivial property aliases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@alias
Patch Set: rebase a couple of tests Created 5 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 | « Source/core/css/parser/CSSParserFastPaths.cpp ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index 4afe6181b522211c528a5b4a816e87a169adf5ac..e0cce32fdced45da960aa9f797e0876834cdddfb 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1041,7 +1041,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
break;
case CSSPropertyTextShadow: // CSS2 property, dropped in CSS2.1, back in CSS3, so treat as CSS3
case CSSPropertyBoxShadow:
- case CSSPropertyWebkitBoxShadow:
if (id == CSSValueNone)
validPrimitive = true;
else {
@@ -1125,8 +1124,7 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
return false;
}
break;
- case CSSPropertyTransformOrigin:
- case CSSPropertyWebkitTransformOrigin: {
+ case CSSPropertyTransformOrigin: {
RefPtrWillBeRawPtr<CSSValueList> list = parseTransformOrigin();
if (!list)
return false;
@@ -1169,8 +1167,7 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
else
return false;
break;
- case CSSPropertyPerspectiveOrigin:
- case CSSPropertyWebkitPerspectiveOrigin: {
+ case CSSPropertyPerspectiveOrigin: {
RefPtrWillBeRawPtr<CSSValueList> list = parseTransformOrigin();
if (!list || list->length() == 3)
return false;
@@ -5446,7 +5443,7 @@ public:
, allowBlur(false)
, allowSpread(false)
, allowColor(true)
- , allowStyle(prop == CSSPropertyWebkitBoxShadow || prop == CSSPropertyBoxShadow)
+ , allowStyle(prop == CSSPropertyBoxShadow)
, allowBreak(true)
{
}
@@ -5478,7 +5475,7 @@ public:
allowY = false;
allowBlur = false;
allowSpread = false;
- allowStyle = property == CSSPropertyWebkitBoxShadow || property == CSSPropertyBoxShadow;
+ allowStyle = property == CSSPropertyBoxShadow;
}
void commitLength(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> val)
@@ -5495,12 +5492,12 @@ public:
allowY = false;
allowBlur = true;
allowColor = true;
- allowStyle = property == CSSPropertyWebkitBoxShadow || property == CSSPropertyBoxShadow;
+ allowStyle = property == CSSPropertyBoxShadow;
allowBreak = true;
} else if (allowBlur) {
blur = val;
allowBlur = false;
- allowSpread = property == CSSPropertyWebkitBoxShadow || property == CSSPropertyBoxShadow;
+ allowSpread = property == CSSPropertyBoxShadow;
} else if (allowSpread) {
spread = val;
allowSpread = false;
@@ -5517,7 +5514,7 @@ public:
} else {
allowBlur = false;
allowSpread = false;
- allowStyle = property == CSSPropertyWebkitBoxShadow || property == CSSPropertyBoxShadow;
+ allowStyle = property == CSSPropertyBoxShadow;
}
}
« no previous file with comments | « Source/core/css/parser/CSSParserFastPaths.cpp ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698