Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainter.cpp

Issue 1732563007: [NOT FOR COMMIT] Pass defaultObjectSize to get image size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index 3d6d0f913eb04a570f2d45cd7e6e13d36f321766..260b05be897476ce309a744febc22375ef171a1b 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -138,7 +138,7 @@ bool BoxPainter::isFillLayerOpaque(const FillLayer& layer, const LayoutObject& i
{
return layer.hasOpaqueImage(&imageClient)
&& layer.image()->canRender()
- && !layer.image()->imageSize(&imageClient, imageClient.style()->effectiveZoom()).isEmpty()
+ && !layer.image()->defaultConcreteObjectSize(&imageClient, imageClient.style()->effectiveZoom()).isEmpty()
&& layer.hasRepeatXY();
}
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | third_party/WebKit/Source/core/paint/SVGImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698