OLD | NEW |
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 Loading... |
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&, float zoom); | 34 PassRefPtr<Image> GetImage(const LayoutObject&, const IntSize&); |
35 bool IsFixedSize() const { return false; } | 35 bool IsFixedSize() const { return false; } |
36 IntSize FixedSize(const LayoutObject&) { return IntSize(); } | 36 IntSize FixedSize(const LayoutObject&) { return IntSize(); } |
37 | 37 |
38 bool IsPending() const { return true; } | 38 bool IsPending() const { return true; } |
39 bool KnownToBeOpaque(const LayoutObject&) const; | 39 bool KnownToBeOpaque(const LayoutObject&) const; |
40 | 40 |
41 void LoadSubimages(const Document&) {} | 41 void LoadSubimages(const Document&) {} |
42 | 42 |
43 bool Equals(const CSSPaintValue&) const; | 43 bool Equals(const CSSPaintValue&) const; |
44 | 44 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 Member<Observer> paint_image_generator_observer_; | 85 Member<Observer> paint_image_generator_observer_; |
86 Member<CSSStyleValueVector> parsed_input_arguments_; | 86 Member<CSSStyleValueVector> parsed_input_arguments_; |
87 Vector<RefPtr<CSSVariableData>> argument_variable_data_; | 87 Vector<RefPtr<CSSVariableData>> argument_variable_data_; |
88 }; | 88 }; |
89 | 89 |
90 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, IsPaintValue()); | 90 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, IsPaintValue()); |
91 | 91 |
92 } // namespace blink | 92 } // namespace blink |
93 | 93 |
94 #endif // CSSPaintValue_h | 94 #endif // CSSPaintValue_h |
OLD | NEW |