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 #include "modules/csspaint/CSSPaintImageGeneratorImpl.h" | 5 #include "modules/csspaint/CSSPaintImageGeneratorImpl.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/frame/LocalDOMWindow.h" | 8 #include "core/frame/LocalDOMWindow.h" |
9 #include "modules/csspaint/CSSPaintDefinition.h" | 9 #include "modules/csspaint/CSSPaintDefinition.h" |
10 #include "modules/csspaint/PaintWorklet.h" | 10 #include "modules/csspaint/PaintWorklet.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 ASSERT(m_observer); | 52 ASSERT(m_observer); |
53 m_observer->paintImageGeneratorReady(); | 53 m_observer->paintImageGeneratorReady(); |
54 } | 54 } |
55 | 55 |
56 PassRefPtr<Image> CSSPaintImageGeneratorImpl::paint(const IntSize& size) | 56 PassRefPtr<Image> CSSPaintImageGeneratorImpl::paint(const IntSize& size) |
57 { | 57 { |
58 return m_definition ? m_definition->paint(size) : nullptr; | 58 return m_definition ? m_definition->paint(size) : nullptr; |
59 } | 59 } |
60 | 60 |
| 61 const Vector<CSSPropertyID>& CSSPaintImageGeneratorImpl::nativeInvalidationPrope
rties() const |
| 62 { |
| 63 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, emptyVector, ()); |
| 64 return m_definition ? m_definition->nativeInvalidationProperties() : emptyVe
ctor; |
| 65 } |
| 66 |
| 67 const Vector<AtomicString>& CSSPaintImageGeneratorImpl::customInvalidationProper
ties() const |
| 68 { |
| 69 DEFINE_STATIC_LOCAL(Vector<AtomicString>, emptyVector, ()); |
| 70 return m_definition ? m_definition->customInvalidationProperties() : emptyVe
ctor; |
| 71 } |
| 72 |
61 DEFINE_TRACE(CSSPaintImageGeneratorImpl) | 73 DEFINE_TRACE(CSSPaintImageGeneratorImpl) |
62 { | 74 { |
63 visitor->trace(m_definition); | 75 visitor->trace(m_definition); |
64 visitor->trace(m_observer); | 76 visitor->trace(m_observer); |
65 CSSPaintImageGenerator::trace(visitor); | 77 CSSPaintImageGenerator::trace(visitor); |
66 } | 78 } |
67 | 79 |
68 } // namespace blink | 80 } // namespace blink |
OLD | NEW |