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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/Shape.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/layout/shapes/Shape.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
index 1dbbd2e9093bd721a75670421cfaa2e9c6f8f869..9ec2ce863ce65b8b19f128e6f6887f1cf304a062 100644
--- a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp
@@ -202,7 +202,7 @@ PassOwnPtr<Shape> Shape::createRasterShape(Image* image, float threshold, const
// layout, which is not allowed. See https://crbug.com/429346
ImageObserverDisabler disabler(image);
SkPaint paint;
- IntRect imageSourceRect(IntPoint(), image->size());
+ IntRect imageSourceRect(IntPoint(), image->defaultConcreteObjectSize());
IntRect imageDestRect(IntPoint(), imageRect.size());
image->draw(imageBuffer->canvas(), paint, imageDestRect, imageSourceRect, DoNotRespectImageOrientation, Image::DoNotClampImageToSourceRect);

Powered by Google App Engine
This is Rietveld 408576698