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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleInvalidImage.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef StyleInvalidImage_h 5 #ifndef StyleInvalidImage_h
6 #define StyleInvalidImage_h 6 #define StyleInvalidImage_h
7 7
8 #include "core/css/CSSImageValue.h" 8 #include "core/css/CSSImageValue.h"
9 #include "core/style/StyleImage.h" 9 #include "core/style/StyleImage.h"
10 10
(...skipping 16 matching lines...) Expand all
27 LayoutSize ImageSize(const LayoutObject&, 27 LayoutSize ImageSize(const LayoutObject&,
28 float /*multiplier*/, 28 float /*multiplier*/,
29 const LayoutSize& /*defaultObjectSize*/) const override { 29 const LayoutSize& /*defaultObjectSize*/) const override {
30 return LayoutSize(); 30 return LayoutSize();
31 } 31 }
32 bool ImageHasRelativeSize() const override { return false; } 32 bool ImageHasRelativeSize() const override { return false; }
33 bool UsesImageContainerSize() const override { return false; } 33 bool UsesImageContainerSize() const override { return false; }
34 void AddClient(LayoutObject*) override {} 34 void AddClient(LayoutObject*) override {}
35 void RemoveClient(LayoutObject*) override {} 35 void RemoveClient(LayoutObject*) override {}
36 PassRefPtr<Image> GetImage(const LayoutObject&, 36 PassRefPtr<Image> GetImage(const LayoutObject&,
37 const IntSize&, 37 const IntSize&) const override {
38 float) const override {
39 return nullptr; 38 return nullptr;
40 } 39 }
41 bool KnownToBeOpaque(const LayoutObject&) const override { return false; } 40 bool KnownToBeOpaque(const LayoutObject&) const override { return false; }
42 41
43 DEFINE_INLINE_VIRTUAL_TRACE() { StyleImage::Trace(visitor); } 42 DEFINE_INLINE_VIRTUAL_TRACE() { StyleImage::Trace(visitor); }
44 43
45 private: 44 private:
46 explicit StyleInvalidImage(const String& url) : url_(url) { 45 explicit StyleInvalidImage(const String& url) : url_(url) {
47 is_invalid_image_ = true; 46 is_invalid_image_ = true;
48 } 47 }
49 48
50 String url_; 49 String url_;
51 }; 50 };
52 51
53 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleInvalidImage, IsInvalidImage()); 52 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleInvalidImage, IsInvalidImage());
54 53
55 } // namespace blink 54 } // namespace blink
56 #endif 55 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleImage.h ('k') | third_party/WebKit/Source/core/style/StylePendingImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698