Index: Source/core/html/HTMLImageElement.cpp |
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp |
index 8698048bcb0e71fb2e8e3a223b9f907a784d47af..6a48fcdef743ccbab7dd8c8a584c97d30cd0f571 100644 |
--- a/Source/core/html/HTMLImageElement.cpp |
+++ b/Source/core/html/HTMLImageElement.cpp |
@@ -127,7 +127,7 @@ void HTMLImageElement::parseAttribute(const QualifiedName& name, const AtomicStr |
} else if (name == srcAttr || name == srcsetAttr) { |
if (RuntimeEnabledFeatures::srcsetEnabled()) { |
ImageCandidate candidate = bestFitSourceForImageAttributes(document().devicePixelRatio(), fastGetAttribute(srcAttr), fastGetAttribute(srcsetAttr)); |
- m_bestFitImageURL = candidate.toString(); |
+ m_bestFitImageURL = candidate.toAtomicString(); |
float candidateScaleFactor = candidate.scaleFactor(); |
if (candidateScaleFactor > 0) |
m_imageDevicePixelRatio = 1 / candidateScaleFactor; |