| 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 CSSStyleImageValue_h | 5 #ifndef CSSStyleImageValue_h |
| 6 #define CSSStyleImageValue_h | 6 #define CSSStyleImageValue_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/CSSImageValue.h" | 9 #include "core/css/CSSImageValue.h" |
| 10 #include "core/css/CSSImageValue.h" | 10 #include "core/css/CSSImageValue.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 int SourceWidth() final; | 34 int SourceWidth() final; |
| 35 int SourceHeight() final; | 35 int SourceHeight() final; |
| 36 bool WouldTaintOrigin( | 36 bool WouldTaintOrigin( |
| 37 SecurityOrigin* destination_security_origin) const final { | 37 SecurityOrigin* destination_security_origin) const final { |
| 38 return true; | 38 return true; |
| 39 } | 39 } |
| 40 FloatSize ElementSize(const FloatSize& default_object_size) const final; | 40 FloatSize ElementSize(const FloatSize& default_object_size) const final; |
| 41 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, | 41 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, |
| 42 AccelerationHint, | 42 AccelerationHint, |
| 43 SnapshotReason, | 43 SnapshotReason, |
| 44 const FloatSize&) const final { | 44 const FloatSize&) final { |
| 45 return GetImage(); | 45 return GetImage(); |
| 46 } | 46 } |
| 47 bool IsAccelerated() const override; | 47 bool IsAccelerated() const override; |
| 48 | 48 |
| 49 DEFINE_INLINE_VIRTUAL_TRACE() { | 49 DEFINE_INLINE_VIRTUAL_TRACE() { |
| 50 visitor->Trace(image_value_); | 50 visitor->Trace(image_value_); |
| 51 CSSResourceValue::Trace(visitor); | 51 CSSResourceValue::Trace(visitor); |
| 52 } | 52 } |
| 53 | 53 |
| 54 protected: | 54 protected: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 PassRefPtr<Image> GetImage() const; | 79 PassRefPtr<Image> GetImage() const; |
| 80 | 80 |
| 81 Member<const CSSImageValue> image_value_; | 81 Member<const CSSImageValue> image_value_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // CSSResourceValue_h | 86 #endif // CSSResourceValue_h |
| OLD | NEW |