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..18d62ab616424e0f8d9335f88957a71aada02cfd 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp |
@@ -136,9 +136,11 @@ void BoxPainter::paintBackground(const PaintInfo& paintInfo, const LayoutRect& p |
bool BoxPainter::isFillLayerOpaque(const FillLayer& layer, const LayoutObject& imageClient) |
{ |
+ // The default object size passed down to imageSize is empty with the implication that images |
+ // with no intrinsic size are treated as empty. |
return layer.hasOpaqueImage(&imageClient) |
&& layer.image()->canRender() |
- && !layer.image()->imageSize(&imageClient, imageClient.style()->effectiveZoom()).isEmpty() |
+ && !layer.image()->imageSize(&imageClient, imageClient.style()->effectiveZoom(), LayoutSize()).isEmpty() |
fs
2016/03/03 15:22:53
Not your doing, and no action necessarily required
davve
2016/03/04 06:49:43
Good observation. Using canRender() alone would be
|
&& layer.hasRepeatXY(); |
} |