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

Unified Diff: third_party/WebKit/Source/core/style/StyleGeneratedImage.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/core/style/StyleGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp b/third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp
index 435b937aefae67419ea36cdd3d31aec4ecebd71e..80374c8496dda6159581c5613e14ed507f63dc1c 100644
--- a/third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp
@@ -57,14 +57,6 @@ LayoutSize StyleGeneratedImage::imageSize(const LayoutObject* layoutObject, floa
return defaultObjectSize;
}
-void StyleGeneratedImage::computeIntrinsicDimensions(const LayoutObject* layoutObject, FloatSize& intrinsicSize, FloatSize& intrinsicRatio)
-{
- // At a zoom level of 1 the image is guaranteed to have an integer size.
- LayoutSize size = imageSize(layoutObject, 1, LayoutSize());
- ASSERT(size.fraction().isZero());
- intrinsicSize = intrinsicRatio = FloatSize(size);
-}
-
void StyleGeneratedImage::addClient(LayoutObject* layoutObject)
{
m_imageGeneratorValue->addClient(layoutObject, IntSize());

Powered by Google App Engine
This is Rietveld 408576698