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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathElement.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/svg/SVGPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
index a879f2990c1b0a176f67d4481fd42002df82e45e..72bd411d274d596bdc1aa7fe4742dd98b5e1e991 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"
@@ -171,8 +171,7 @@ void SVGPathElement::collectStyleForPresentationAttribute(
CSSPathValue* pathValue = path->currentValue()->pathValue();
if (pathValue->stylePath()->byteStream().isEmpty()) {
addPropertyToPresentationAttributeStyle(
- style, CSSPropertyD,
- CSSPrimitiveValue::createIdentifier(CSSValueNone));
+ style, CSSPropertyD, CSSIdentifierValue::create(CSSValueNone));
return;
}
addPropertyToPresentationAttributeStyle(style, CSSPropertyD, pathValue);

Powered by Google App Engine
This is Rietveld 408576698