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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 LayoutSize ImageSize(const LayoutObject&, 55 LayoutSize ImageSize(const LayoutObject&,
56 float multiplier, 56 float multiplier,
57 const LayoutSize& default_object_size) const override; 57 const LayoutSize& default_object_size) const override;
58 bool ImageHasRelativeSize() const override; 58 bool ImageHasRelativeSize() const override;
59 bool UsesImageContainerSize() const override; 59 bool UsesImageContainerSize() const override;
60 void AddClient(LayoutObject*) override; 60 void AddClient(LayoutObject*) override;
61 void RemoveClient(LayoutObject*) override; 61 void RemoveClient(LayoutObject*) override;
62 void ImageNotifyFinished(ImageResourceContent*) override; 62 void ImageNotifyFinished(ImageResourceContent*) override;
63 String DebugName() const override { return "StyleFetchedImage"; } 63 String DebugName() const override { return "StyleFetchedImage"; }
64 PassRefPtr<Image> GetImage(const LayoutObject&, 64 PassRefPtr<Image> GetImage(const LayoutObject&,
65 const IntSize&, 65 const IntSize&) const override;
66 float zoom) const override;
67 bool KnownToBeOpaque(const LayoutObject&) const override; 66 bool KnownToBeOpaque(const LayoutObject&) const override;
68 ImageResourceContent* CachedImage() const override; 67 ImageResourceContent* CachedImage() const override;
69 68
70 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
71 70
72 private: 71 private:
73 StyleFetchedImage(ImageResourceContent*, const Document&, const KURL&); 72 StyleFetchedImage(ImageResourceContent*, const Document&, const KURL&);
74 73
75 void Dispose(); 74 void Dispose();
76 75
77 Member<ImageResourceContent> image_; 76 Member<ImageResourceContent> image_;
78 Member<const Document> document_; 77 Member<const Document> document_;
79 const KURL url_; 78 const KURL url_;
80 }; 79 };
81 80
82 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, IsImageResource()); 81 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleFetchedImage, IsImageResource());
83 82
84 } // namespace blink 83 } // namespace blink
85 #endif 84 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGImagePainter.cpp ('k') | third_party/WebKit/Source/core/style/StyleFetchedImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698