Index: Source/core/html/parser/HTMLSrcsetParser.cpp |
diff --git a/Source/core/html/parser/HTMLSrcsetParser.cpp b/Source/core/html/parser/HTMLSrcsetParser.cpp |
index db1edd1bb6d30a7d9debb22f7f2393a16bd479cb..8283ecd41536a733ce2d23e426c427da4eeffa4c 100644 |
--- a/Source/core/html/parser/HTMLSrcsetParser.cpp |
+++ b/Source/core/html/parser/HTMLSrcsetParser.cpp |
@@ -338,7 +338,7 @@ static unsigned selectionLogic(Vector<ImageCandidate*>& imageCandidates, float d |
currentDensity = imageCandidates[i]->density(); |
geometricMean = sqrt(currentDensity * nextDensity); |
- if (deviceScaleFactor >= geometricMean) |
+ if (((deviceScaleFactor <= 1.0) && (deviceScaleFactor > currentDensity)) || (deviceScaleFactor >= geometricMean)) |
return next; |
break; |
} |