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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy Created 4 years, 3 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/editing/serializers/Serialization.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index cc81bb5faca7be6c59f4d70633103ad93019e624..488f5a1ac40109abefcea59c93db83e5277ed402 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -31,7 +31,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/CSSValueKeywords.h"
#include "core/HTMLNames.h"
-#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/CSSIdentifierValue.h"
#include "core/css/CSSValue.h"
#include "core/css/StylePropertySet.h"
#include "core/dom/CDATASection.h"
@@ -157,9 +157,9 @@ bool propertyMissingOrEqualToNone(StylePropertySet* style,
const CSSValue* value = style->getPropertyCSSValue(propertyID);
if (!value)
return true;
- if (!value->isPrimitiveValue())
+ if (!value->isIdentifierValue())
return false;
- return toCSSPrimitiveValue(value)->getValueID() == CSSValueNone;
+ return toCSSIdentifierValue(value)->getValueID() == CSSValueNone;
}
template <typename Strategy>

Powered by Google App Engine
This is Rietveld 408576698