Index: third_party/WebKit/Source/platform/graphics/Image.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp |
index ed58bd10ca9fa0e793a0eccd991e95c36dc51f0f..48e20cfed1c8d568a510f6264f95fbe33702dda0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp |
@@ -98,10 +98,10 @@ bool Image::setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) |
void Image::drawTiled(GraphicsContext& ctxt, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& scaledTileSize, SkXfermode::Mode op, const FloatSize& repeatSpacing) |
{ |
FloatSize intrinsicTileSize = FloatSize(size()); |
- if (hasRelativeWidth()) |
+ if (hasRelativeSize()) { |
intrinsicTileSize.setWidth(scaledTileSize.width()); |
- if (hasRelativeHeight()) |
intrinsicTileSize.setHeight(scaledTileSize.height()); |
+ } |
FloatSize scale(scaledTileSize.width() / intrinsicTileSize.width(), |
scaledTileSize.height() / intrinsicTileSize.height()); |