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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 }; 50 };
51 51
52 using LayoutObjectSizeCountMap = HashMap<const LayoutObject*, SizeAndCount>; 52 using LayoutObjectSizeCountMap = HashMap<const LayoutObject*, SizeAndCount>;
53 53
54 class CORE_EXPORT CSSImageGeneratorValue : public CSSValue { 54 class CORE_EXPORT CSSImageGeneratorValue : public CSSValue {
55 public: 55 public:
56 ~CSSImageGeneratorValue(); 56 ~CSSImageGeneratorValue();
57 57
58 void AddClient(const LayoutObject*, const IntSize&); 58 void AddClient(const LayoutObject*, const IntSize&);
59 void RemoveClient(const LayoutObject*); 59 void RemoveClient(const LayoutObject*);
60 PassRefPtr<Image> GetImage(const LayoutObject&, const IntSize&, float zoom); 60 PassRefPtr<Image> GetImage(const LayoutObject&, const IntSize&);
61 61
62 bool IsFixedSize() const; 62 bool IsFixedSize() const;
63 IntSize FixedSize(const LayoutObject&, const FloatSize& default_object_size); 63 IntSize FixedSize(const LayoutObject&, const FloatSize& default_object_size);
64 64
65 bool IsPending() const; 65 bool IsPending() const;
66 bool KnownToBeOpaque(const LayoutObject&) const; 66 bool KnownToBeOpaque(const LayoutObject&) const;
67 67
68 void LoadSubimages(const Document&); 68 void LoadSubimages(const Document&);
69 69
70 CSSImageGeneratorValue* ValueWithURLsMadeAbsolute(); 70 CSSImageGeneratorValue* ValueWithURLsMadeAbsolute();
(...skipping 21 matching lines...) Expand all
92 // where we keep a persistent to the instance as long as there are clients in 92 // where we keep a persistent to the instance as long as there are clients in
93 // the LayoutObjectSizeCountMap. 93 // the LayoutObjectSizeCountMap.
94 SelfKeepAlive<CSSImageGeneratorValue> keep_alive_; 94 SelfKeepAlive<CSSImageGeneratorValue> keep_alive_;
95 }; 95 };
96 96
97 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageGeneratorValue, IsImageGeneratorValue()); 97 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageGeneratorValue, IsImageGeneratorValue());
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // CSSImageGeneratorValue_h 101 #endif // CSSImageGeneratorValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698