Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
index 7a2f5486be031b2c5a5c377398182889b920dd08..fa97e72be9e99d80b400815e444635c87e2b3cd9 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -1691,7 +1691,7 @@ static CSSValue* adjustSVGPaintForCurrentColor(SVGPaintType paintType, |
const Color& currentColor) { |
if (paintType >= SVG_PAINTTYPE_URI_NONE) { |
CSSValueList* values = CSSValueList::createSpaceSeparated(); |
- values->append(*CSSURIValue::create(url)); |
+ values->append(*CSSURIValue::create(AtomicString(url))); |
if (paintType == SVG_PAINTTYPE_URI_NONE) |
values->append(*CSSIdentifierValue::create(CSSValueNone)); |
else if (paintType == SVG_PAINTTYPE_URI_CURRENTCOLOR) |
@@ -1708,7 +1708,7 @@ static CSSValue* adjustSVGPaintForCurrentColor(SVGPaintType paintType, |
return CSSColorValue::create(color.rgb()); |
} |
-static inline String serializeAsFragmentIdentifier( |
+static inline AtomicString serializeAsFragmentIdentifier( |
const AtomicString& resource) { |
return "#" + resource; |
} |
@@ -3196,9 +3196,10 @@ const CSSValue* ComputedStyleCSSValueMapping::get( |
if (operation->type() == ClipPathOperation::SHAPE) |
return valueForBasicShape( |
style, toShapeClipPathOperation(operation)->basicShape()); |
- if (operation->type() == ClipPathOperation::REFERENCE) |
+ if (operation->type() == ClipPathOperation::REFERENCE) { |
return CSSURIValue::create( |
- toReferenceClipPathOperation(operation)->url()); |
+ AtomicString(toReferenceClipPathOperation(operation)->url())); |
+ } |
} |
return CSSIdentifierValue::create(CSSValueNone); |
case CSSPropertyShapeMargin: |