Index: Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp b/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp |
index 47fbe85c02f703e5ef669248d9f38a84ee760ba3..2625d258589fb29b72ebdfb8a44bc04911378fd4 100644 |
--- a/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp |
@@ -151,6 +151,18 @@ |
return unresolvedProperty; |
} |
+void V8CSSStyleDeclaration::namedPropertyQueryCustom(v8::Local<v8::Name> v8Name, const v8::PropertyCallbackInfo<v8::Integer>& info) |
+{ |
+ if (!v8Name->IsString()) |
+ return; |
+ // NOTE: cssPropertyInfo lookups incur several mallocs. |
+ // Successful lookups have the same cost the first time, but are cached. |
+ if (cssPropertyInfo(v8Name.As<v8::String>(), info.GetIsolate())) { |
+ v8SetReturnValueInt(info, 0); |
+ return; |
+ } |
+} |
+ |
void V8CSSStyleDeclaration::namedPropertyGetterCustom(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
// Search the style declaration. |