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

Unified Diff: Source/core/css/StylePropertySerializer.cpp

Issue 719993002: Remove CSSValue::Type and CSSValue::cssValueType() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/CSSValue.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StylePropertySerializer.cpp
diff --git a/Source/core/css/StylePropertySerializer.cpp b/Source/core/css/StylePropertySerializer.cpp
index fa8f921c5fdae63c41658f670633ef347a855756..2bc47a627f706df54d1662d0dd936d8ffe205a15 100644
--- a/Source/core/css/StylePropertySerializer.cpp
+++ b/Source/core/css/StylePropertySerializer.cpp
@@ -886,26 +886,24 @@ String StylePropertySerializer::backgroundRepeatPropertyValue() const
return String();
if (m_propertySet.propertyIsImportant(CSSPropertyBackgroundRepeatX) != m_propertySet.propertyIsImportant(CSSPropertyBackgroundRepeatY))
return String();
- if (repeatX->cssValueType() == repeatY->cssValueType()
- && (repeatX->cssValueType() == CSSValue::CSS_INITIAL || repeatX->cssValueType() == CSSValue::CSS_INHERIT)) {
+ if ((repeatX->isInitialValue() && repeatY->isInitialValue()) || (repeatX->isInheritedValue() && repeatY->isInheritedValue()))
return repeatX->cssText();
- }
const CSSValueList* repeatXList = 0;
int repeatXLength = 1;
- if (repeatX->cssValueType() == CSSValue::CSS_VALUE_LIST) {
+ if (repeatX->isValueList()) {
repeatXList = toCSSValueList(repeatX);
repeatXLength = repeatXList->length();
- } else if (repeatX->cssValueType() != CSSValue::CSS_PRIMITIVE_VALUE) {
+ } else if (!repeatX->isPrimitiveValue()) {
return String();
}
const CSSValueList* repeatYList = 0;
int repeatYLength = 1;
- if (repeatY->cssValueType() == CSSValue::CSS_VALUE_LIST) {
+ if (repeatY->isValueList()) {
repeatYList = toCSSValueList(repeatY);
repeatYLength = repeatYList->length();
- } else if (repeatY->cssValueType() != CSSValue::CSS_PRIMITIVE_VALUE) {
+ } else if (!repeatY->isPrimitiveValue()) {
return String();
}
« no previous file with comments | « Source/core/css/CSSValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698