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

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

Issue 2077413005: Add "alpha" option to PaintWorklet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set alpha to be true by default Created 4 years, 5 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 11 matching lines...) Expand all
22 22
23 String customCSSText() const; 23 String customCSSText() const;
24 24
25 String name() const; 25 String name() const;
26 26
27 PassRefPtr<Image> image(const LayoutObject&, const IntSize&); 27 PassRefPtr<Image> image(const LayoutObject&, const IntSize&);
28 bool isFixedSize() const { return false; } 28 bool isFixedSize() const { return false; }
29 IntSize fixedSize(const LayoutObject&) { return IntSize(); } 29 IntSize fixedSize(const LayoutObject&) { return IntSize(); }
30 30
31 bool isPending() const { return true; } 31 bool isPending() const { return true; }
32 bool knownToBeOpaque(const LayoutObject&) const { return false; } 32 bool knownToBeOpaque(const LayoutObject&) const;
33 33
34 void loadSubimages(Document*) { } 34 void loadSubimages(Document*) { }
35 35
36 bool equals(const CSSPaintValue&) const; 36 bool equals(const CSSPaintValue&) const;
37 37
38 const Vector<CSSPropertyID>* nativeInvalidationProperties() const 38 const Vector<CSSPropertyID>* nativeInvalidationProperties() const
39 { 39 {
40 return m_generator ? &m_generator->nativeInvalidationProperties() : null ptr; 40 return m_generator ? &m_generator->nativeInvalidationProperties() : null ptr;
41 } 41 }
42 const Vector<AtomicString>* customInvalidationProperties() const 42 const Vector<AtomicString>* customInvalidationProperties() const
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 Member<CSSCustomIdentValue> m_name; 74 Member<CSSCustomIdentValue> m_name;
75 Member<CSSPaintImageGenerator> m_generator; 75 Member<CSSPaintImageGenerator> m_generator;
76 Member<Observer> m_paintImageGeneratorObserver; 76 Member<Observer> m_paintImageGeneratorObserver;
77 }; 77 };
78 78
79 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, isPaintValue()); 79 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, isPaintValue());
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // CSSPaintValue_h 83 #endif // CSSPaintValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698