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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp

Issue 2561773003: Parse input argument types and store the argument types in CSSPaintDefinition. (Closed)
Patch Set: update tests Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
index 99e62a37440b3fd4655730dea19fd00c78c87960..303d161d48aef43732c0134686bc8782f07bedce 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
@@ -39,10 +39,11 @@ CSSPaintDefinition* CSSPaintDefinition::create(
v8::Local<v8::Function> paint,
Vector<CSSPropertyID>& nativeInvalidationProperties,
Vector<AtomicString>& customInvalidationProperties,
+ Vector<CSSSyntaxDescriptor>& inputArgumentTypes,
bool hasAlpha) {
- return new CSSPaintDefinition(scriptState, constructor, paint,
- nativeInvalidationProperties,
- customInvalidationProperties, hasAlpha);
+ return new CSSPaintDefinition(
+ scriptState, constructor, paint, nativeInvalidationProperties,
+ customInvalidationProperties, inputArgumentTypes, hasAlpha);
}
CSSPaintDefinition::CSSPaintDefinition(
@@ -51,6 +52,7 @@ CSSPaintDefinition::CSSPaintDefinition(
v8::Local<v8::Function> paint,
Vector<CSSPropertyID>& nativeInvalidationProperties,
Vector<AtomicString>& customInvalidationProperties,
+ Vector<CSSSyntaxDescriptor>& inputArgumentTypes,
bool hasAlpha)
: m_scriptState(scriptState),
m_constructor(scriptState->isolate(), constructor),
@@ -59,6 +61,7 @@ CSSPaintDefinition::CSSPaintDefinition(
m_hasAlpha(hasAlpha) {
m_nativeInvalidationProperties.swap(nativeInvalidationProperties);
m_customInvalidationProperties.swap(customInvalidationProperties);
+ m_inputArgumentTypes.swap(inputArgumentTypes);
}
CSSPaintDefinition::~CSSPaintDefinition() {}

Powered by Google App Engine
This is Rietveld 408576698