| Index: Source/core/css/CSSStyleDeclaration.cpp
|
| diff --git a/Source/core/css/CSSStyleDeclaration.cpp b/Source/core/css/CSSStyleDeclaration.cpp
|
| index 9f11edad0c45abcea4acde5f40a6f9be390084fa..8f2b7cb181619b41a82c91502888707b848e4eec 100644
|
| --- a/Source/core/css/CSSStyleDeclaration.cpp
|
| +++ b/Source/core/css/CSSStyleDeclaration.cpp
|
| @@ -146,4 +146,13 @@ void CSSStyleDeclaration::namedPropertyEnumerator(Vector<String>& names, Excepti
|
| }
|
| }
|
|
|
| +bool CSSStyleDeclaration::namedPropertyQuery(ScriptState* scriptState, const AtomicString& name, ExceptionState&)
|
| +{
|
| + // NOTE: cssPropertyInfo lookups incur several mallocs.
|
| + // Successful lookups have the same cost the first time, but are cached.
|
| + if (cssPropertyInfo(name, scriptState->isolate()))
|
| + return true;
|
| + return false;
|
| +}
|
| +
|
| }
|
|
|