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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathElement.cpp

Issue 2346193002: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Rebase please work 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/svg/SVGPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
index 22631de76f6e7a3672717742aa4e99a7e73c3a15..515620a98d24c195fa9a7870b9006d3239f92dec 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
@@ -20,7 +20,7 @@
#include "core/svg/SVGPathElement.h"
-#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/CSSIdentifierValue.h"
#include "core/dom/StyleChangeReason.h"
#include "core/layout/svg/LayoutSVGPath.h"
#include "core/svg/SVGMPathElement.h"
@@ -178,7 +178,7 @@ void SVGPathElement::collectStyleForPresentationAttribute(const QualifiedName& n
CSSPathValue* pathValue = path->currentValue()->pathValue();
if (pathValue->stylePath()->byteStream().isEmpty()) {
- addPropertyToPresentationAttributeStyle(style, CSSPropertyD, CSSPrimitiveValue::createIdentifier(CSSValueNone));
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyD, CSSIdentifierValue::create(CSSValueNone));
return;
}
addPropertyToPresentationAttributeStyle(style, CSSPropertyD, pathValue);

Powered by Google App Engine
This is Rietveld 408576698