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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.cpp

Issue 1720853002: Remove Image::computeIntrinsicDimensions() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-and-use-updateconcretesize-upload
Patch Set: Avoid using the size of the error image. Null-check in ImageResource saved the day in previous patc… Created 4 years, 9 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/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 5ab1d6f47e714896ef405937e8ceda2110650766..36e0b9dced3cb5361d473b31a0b6fb066daf9bed 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -259,11 +259,6 @@ void Image::drawPattern(GraphicsContext& context, const FloatRect& floatSrcRect,
PlatformInstrumentation::didDrawLazyPixelRef(imageID);
}
-void Image::computeIntrinsicDimensions(FloatSize& intrinsicSize, FloatSize& intrinsicRatio)
-{
- intrinsicSize = intrinsicRatio = FloatSize(size());
-}
-
PassRefPtr<Image> Image::imageForDefaultFrame()
{
RefPtr<Image> image(this);

Powered by Google App Engine
This is Rietveld 408576698