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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGImagePainter.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/SVGImagePainter.h" 5 #include "core/paint/SVGImagePainter.h"
6 6
7 #include "core/layout/ImageQualityController.h" 7 #include "core/layout/ImageQualityController.h"
8 #include "core/layout/LayoutImageResource.h" 8 #include "core/layout/LayoutImageResource.h"
9 #include "core/layout/svg/LayoutSVGImage.h" 9 #include "core/layout/svg/LayoutSVGImage.h"
10 #include "core/layout/svg/SVGLayoutSupport.h" 10 #include "core/layout/svg/SVGLayoutSupport.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Images with preserveAspectRatio=none should force non-uniform scaling. Th is can be achieved 84 // Images with preserveAspectRatio=none should force non-uniform scaling. Th is can be achieved
85 // by setting the image's container size to its viewport size (i.e. concrete object size 85 // by setting the image's container size to its viewport size (i.e. concrete object size
86 // returned by the default sizing algorithm.) See 86 // returned by the default sizing algorithm.) See
87 // https://www.w3.org/TR/SVG/single-page.html#coords-PreserveAspectRatioAttr ibute and 87 // https://www.w3.org/TR/SVG/single-page.html#coords-PreserveAspectRatioAttr ibute and
88 // https://drafts.csswg.org/css-images-3/#default-sizing. 88 // https://drafts.csswg.org/css-images-3/#default-sizing.
89 89
90 // Avoid returning the size of the broken image. 90 // Avoid returning the size of the broken image.
91 if (cachedImage->errorOccurred()) 91 if (cachedImage->errorOccurred())
92 return FloatSize(); 92 return FloatSize();
93 93
94 if (cachedImage->image()->isSVGImage()) 94 if (cachedImage->getImage()->isSVGImage())
95 return toSVGImage(cachedImage->image())->concreteObjectSize(m_layoutSVGI mage.objectBoundingBox().size()); 95 return toSVGImage(cachedImage->getImage())->concreteObjectSize(m_layoutS VGImage.objectBoundingBox().size());
96 96
97 return FloatSize(cachedImage->image()->size()); 97 return FloatSize(cachedImage->getImage()->size());
98 } 98 }
99 99
100 } // namespace blink 100 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698