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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.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/svg/graphics/SVGImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
index aaccff3a99f7516d92b398f7d484a43982bbf4e2..bfdb3ff702b6382718a5f6a3691d69c07f3aa018 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
@@ -401,21 +401,6 @@ FrameView* SVGImage::frameView() const
return toLocalFrame(m_page->mainFrame())->view();
}
-void SVGImage::computeIntrinsicDimensions(FloatSize& intrinsicSize, FloatSize& intrinsicRatio)
-{
- SVGSVGElement* rootElement = svgRootElement(m_page.get());
- if (!rootElement)
- return;
-
- intrinsicSize = FloatSize(rootElement->intrinsicWidth(), rootElement->intrinsicHeight());
- if (rootElement->preserveAspectRatio()->currentValue()->align() == SVGPreserveAspectRatio::SVG_PRESERVEASPECTRATIO_NONE)
- return;
-
- intrinsicRatio = rootElement->viewBox()->currentValue()->value().size();
- if (intrinsicRatio.isEmpty())
- intrinsicRatio = intrinsicSize;
-}
-
// FIXME: support CatchUpAnimation = CatchUp.
void SVGImage::startAnimation(CatchUpAnimation)
{

Powered by Google App Engine
This is Rietveld 408576698