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

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

Issue 2847303002: Remove unnecessary zoom argument from GetImage() as its value is always available through the Layou… (Closed)
Patch Set: (rebased) Created 3 years, 7 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 CSSPaintImageGenerator_h 5 #ifndef CSSPaintImageGenerator_h
6 #define CSSPaintImageGenerator_h 6 #define CSSPaintImageGenerator_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/cssom/CSSStyleValue.h" 10 #include "core/css/cssom/CSSStyleValue.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)( 42 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(
43 const String&, 43 const String&,
44 Document&, 44 Document&,
45 Observer*); 45 Observer*);
46 static void Init(CSSPaintImageGeneratorCreateFunction); 46 static void Init(CSSPaintImageGeneratorCreateFunction);
47 47
48 // Invokes the CSS Paint API 'paint' callback. May return a nullptr 48 // Invokes the CSS Paint API 'paint' callback. May return a nullptr
49 // representing an invalid image if an error occurred. 49 // representing an invalid image if an error occurred.
50 virtual PassRefPtr<Image> Paint(const LayoutObject&, 50 virtual PassRefPtr<Image> Paint(const LayoutObject&,
51 const IntSize&, 51 const IntSize&,
52 float zoom,
53 const CSSStyleValueVector*) = 0; 52 const CSSStyleValueVector*) = 0;
54 53
55 virtual const Vector<CSSPropertyID>& NativeInvalidationProperties() const = 0; 54 virtual const Vector<CSSPropertyID>& NativeInvalidationProperties() const = 0;
56 virtual const Vector<AtomicString>& CustomInvalidationProperties() const = 0; 55 virtual const Vector<AtomicString>& CustomInvalidationProperties() const = 0;
57 virtual bool HasAlpha() const = 0; 56 virtual bool HasAlpha() const = 0;
58 virtual const Vector<CSSSyntaxDescriptor>& InputArgumentTypes() const = 0; 57 virtual const Vector<CSSSyntaxDescriptor>& InputArgumentTypes() const = 0;
59 virtual bool IsImageGeneratorReady() const = 0; 58 virtual bool IsImageGeneratorReady() const = 0;
60 59
61 DEFINE_INLINE_VIRTUAL_TRACE() {} 60 DEFINE_INLINE_VIRTUAL_TRACE() {}
62 }; 61 };
63 62
64 } // namespace blink 63 } // namespace blink
65 64
66 #endif // CSSPaintImageGenerator_h 65 #endif // CSSPaintImageGenerator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698