| 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 CSSPaintDefinition_h | 5 #ifndef CSSPaintDefinition_h |
| 6 #define CSSPaintDefinition_h | 6 #define CSSPaintDefinition_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/css/CSSSyntaxDescriptor.h" | 9 #include "core/css/CSSSyntaxDescriptor.h" |
| 10 #include "core/css/cssom/CSSStyleValue.h" | 10 #include "core/css/cssom/CSSStyleValue.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual ~CSSPaintDefinition(); | 36 virtual ~CSSPaintDefinition(); |
| 37 | 37 |
| 38 // Invokes the javascript 'paint' callback on an instance of the javascript | 38 // Invokes the javascript 'paint' callback on an instance of the javascript |
| 39 // class. The size given will be the size of the PaintRenderingContext2D | 39 // class. The size given will be the size of the PaintRenderingContext2D |
| 40 // given to the callback. | 40 // given to the callback. |
| 41 // | 41 // |
| 42 // This may return a nullptr (representing an invalid image) if javascript | 42 // This may return a nullptr (representing an invalid image) if javascript |
| 43 // throws an error. | 43 // throws an error. |
| 44 PassRefPtr<Image> Paint(const LayoutObject&, | 44 PassRefPtr<Image> Paint(const LayoutObject&, |
| 45 const IntSize&, | 45 const IntSize&, |
| 46 float zoom, | |
| 47 const CSSStyleValueVector*); | 46 const CSSStyleValueVector*); |
| 48 const Vector<CSSPropertyID>& NativeInvalidationProperties() const { | 47 const Vector<CSSPropertyID>& NativeInvalidationProperties() const { |
| 49 return native_invalidation_properties_; | 48 return native_invalidation_properties_; |
| 50 } | 49 } |
| 51 const Vector<AtomicString>& CustomInvalidationProperties() const { | 50 const Vector<AtomicString>& CustomInvalidationProperties() const { |
| 52 return custom_invalidation_properties_; | 51 return custom_invalidation_properties_; |
| 53 } | 52 } |
| 54 const Vector<CSSSyntaxDescriptor>& InputArgumentTypes() const { | 53 const Vector<CSSSyntaxDescriptor>& InputArgumentTypes() const { |
| 55 return input_argument_types_; | 54 return input_argument_types_; |
| 56 } | 55 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 Vector<CSSPropertyID> native_invalidation_properties_; | 90 Vector<CSSPropertyID> native_invalidation_properties_; |
| 92 Vector<AtomicString> custom_invalidation_properties_; | 91 Vector<AtomicString> custom_invalidation_properties_; |
| 93 // Input argument types, if applicable. | 92 // Input argument types, if applicable. |
| 94 Vector<CSSSyntaxDescriptor> input_argument_types_; | 93 Vector<CSSSyntaxDescriptor> input_argument_types_; |
| 95 bool has_alpha_; | 94 bool has_alpha_; |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 } // namespace blink | 97 } // namespace blink |
| 99 | 98 |
| 100 #endif // CSSPaintDefinition_h | 99 #endif // CSSPaintDefinition_h |
| OLD | NEW |