Index: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp |
index 7b540e467c896849981c935455213d3509619dcf..f90e555c35d79fa6fe429a37ebcdfb4a466284a8 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp |
@@ -370,8 +370,8 @@ static ImageCandidate pickBestImageCandidate(float deviceScaleFactor, float sour |
// http://picture.responsiveimages.org/#normalize-source-densities |
for (ImageCandidate& image : imageCandidates) { |
- if (image.resourceWidth() > 0) { |
- image.setDensity((float)image.resourceWidth() / sourceSize); |
+ if (image.getResourceWidth() > 0) { |
+ image.setDensity((float)image.getResourceWidth() / sourceSize); |
ignoreSrc = true; |
} else if (image.density() < 0) { |
image.setDensity(defaultDensityValue); |