Index: Source/core/html/HTMLImageElement.cpp |
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp |
index 398e78e63dd32c4cae4e7b5d529cc97d90653f20..205e0bad15aaee7c3d0ede62c4664317799e9b9a 100644 |
--- a/Source/core/html/HTMLImageElement.cpp |
+++ b/Source/core/html/HTMLImageElement.cpp |
@@ -154,16 +154,14 @@ void HTMLImageElement::parseAttribute(const QualifiedName& name, const AtomicStr |
if (renderer() && renderer()->isImage()) |
toRenderImage(renderer())->updateAltText(); |
} else if (name == srcAttr || name == srcsetAttr) { |
- if (RuntimeEnabledFeatures::srcsetEnabled()) { |
- int effectiveSize = -1; // FIXME - hook up the real value from `sizes` |
- ImageCandidate candidate = bestFitSourceForImageAttributes(document().devicePixelRatio(), effectiveSize, fastGetAttribute(srcAttr), fastGetAttribute(srcsetAttr)); |
- m_bestFitImageURL = candidate.toAtomicString(); |
- float candidateScaleFactor = candidate.scaleFactor(); |
- if (candidateScaleFactor > 0) |
- m_imageDevicePixelRatio = 1 / candidateScaleFactor; |
- if (renderer() && renderer()->isImage()) |
- toRenderImage(renderer())->setImageDevicePixelRatio(m_imageDevicePixelRatio); |
- } |
+ int effectiveSize = -1; // FIXME - hook up the real value from `sizes` |
+ ImageCandidate candidate = bestFitSourceForImageAttributes(document().devicePixelRatio(), effectiveSize, fastGetAttribute(srcAttr), fastGetAttribute(srcsetAttr)); |
+ m_bestFitImageURL = candidate.toAtomicString(); |
+ float candidateScaleFactor = candidate.scaleFactor(); |
+ if (candidateScaleFactor > 0) |
+ m_imageDevicePixelRatio = 1 / candidateScaleFactor; |
+ if (renderer() && renderer()->isImage()) |
+ toRenderImage(renderer())->setImageDevicePixelRatio(m_imageDevicePixelRatio); |
m_imageLoader.updateFromElementIgnoringPreviousError(); |
} else if (name == usemapAttr) { |
setIsLink(!value.isNull()); |