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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPaintValue.h

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)
Patch Set: Address reviewer comments Created 3 years, 6 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 CSSPaintValue_h 5 #ifndef CSSPaintValue_h
6 #define CSSPaintValue_h 6 #define CSSPaintValue_h
7 7
8 #include "core/css/CSSCustomIdentValue.h" 8 #include "core/css/CSSCustomIdentValue.h"
9 #include "core/css/CSSImageGeneratorValue.h" 9 #include "core/css/CSSImageGeneratorValue.h"
10 #include "core/css/CSSPaintImageGenerator.h" 10 #include "core/css/CSSPaintImageGenerator.h"
(...skipping 13 matching lines...) Expand all
24 Vector<RefPtr<CSSVariableData>>& variable_data) { 24 Vector<RefPtr<CSSVariableData>>& variable_data) {
25 return new CSSPaintValue(name, variable_data); 25 return new CSSPaintValue(name, variable_data);
26 } 26 }
27 27
28 ~CSSPaintValue(); 28 ~CSSPaintValue();
29 29
30 String CustomCSSText() const; 30 String CustomCSSText() const;
31 31
32 String GetName() const; 32 String GetName() const;
33 33
34 PassRefPtr<Image> GetImage(const LayoutObject&, const IntSize&); 34 PassRefPtr<Image> GetImage(const ImageResourceObserver&,
35 const Document&,
36 const ComputedStyle&,
37 const IntSize&);
35 bool IsFixedSize() const { return false; } 38 bool IsFixedSize() const { return false; }
36 IntSize FixedSize(const Document&) { return IntSize(); } 39 IntSize FixedSize(const Document&) { return IntSize(); }
37 40
38 bool IsPending() const { return true; } 41 bool IsPending() const { return true; }
39 bool KnownToBeOpaque(const Document&, const ComputedStyle&) const; 42 bool KnownToBeOpaque(const Document&, const ComputedStyle&) const;
40 43
41 void LoadSubimages(const Document&) {} 44 void LoadSubimages(const Document&) {}
42 45
43 bool Equals(const CSSPaintValue&) const; 46 bool Equals(const CSSPaintValue&) const;
44 47
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Member<Observer> paint_image_generator_observer_; 88 Member<Observer> paint_image_generator_observer_;
86 Member<CSSStyleValueVector> parsed_input_arguments_; 89 Member<CSSStyleValueVector> parsed_input_arguments_;
87 Vector<RefPtr<CSSVariableData>> argument_variable_data_; 90 Vector<RefPtr<CSSVariableData>> argument_variable_data_;
88 }; 91 };
89 92
90 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, IsPaintValue()); 93 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, IsPaintValue());
91 94
92 } // namespace blink 95 } // namespace blink
93 96
94 #endif // CSSPaintValue_h 97 #endif // CSSPaintValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintImageGenerator.cpp ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698