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

Unified Diff: third_party/WebKit/Source/core/style/StyleImage.h

Issue 2847303002: Remove unnecessary zoom argument from GetImage() as its value is always available through the Layou… (Closed)
Patch Set: (rebased) Created 3 years, 7 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/StyleImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleImage.h b/third_party/WebKit/Source/core/style/StyleImage.h
index 03a522256f1606853764928b2a3fee1cc3bd20da..8a03b62a459b445f3b2269ee91b874d9e74ef0f3 100644
--- a/third_party/WebKit/Source/core/style/StyleImage.h
+++ b/third_party/WebKit/Source/core/style/StyleImage.h
@@ -63,12 +63,11 @@ class CORE_EXPORT StyleImage : public GarbageCollectedFinalized<StyleImage> {
virtual bool UsesImageContainerSize() const = 0;
virtual void AddClient(LayoutObject*) = 0;
virtual void RemoveClient(LayoutObject*) = 0;
- // Note that the containerSize is assumed to be in the effective
- // zoom level given by multiplier, i.e if the multiplier is the
- // constant 1 the containerSize should be unzoomed.
+ // Note that the container_size is in the effective zoom level of
+ // the style that applies to the given LayoutObject, i.e if the zoom
+ // level is 1.0 the container_size should be unzoomed.
virtual PassRefPtr<Image> GetImage(const LayoutObject&,
- const IntSize& container_size,
- float multiplier) const = 0;
+ const IntSize& container_size) const = 0;
virtual WrappedImagePtr Data() const = 0;
virtual float ImageScaleFactor() const { return 1; }
virtual bool KnownToBeOpaque(const LayoutObject&) const = 0;
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp ('k') | third_party/WebKit/Source/core/style/StyleInvalidImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698