OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 WTF::OwnPtr<v8::Handle<v8::Value>[] > arguments = adoptArrayPtr(new v8::Hand
le<v8::Value>[info.Length()]); | 191 WTF::OwnPtr<v8::Handle<v8::Value>[] > arguments = adoptArrayPtr(new v8::Hand
le<v8::Value>[info.Length()]); |
192 for (int i = 0; i < info.Length(); ++i) | 192 for (int i = 0; i < info.Length(); ++i) |
193 arguments[i] = info[i]; | 193 arguments[i] = info[i]; |
194 | 194 |
195 TONATIVE_VOID(v8::Local<v8::Value>, retVal, instance->CallAsFunction(info.Th
is(), info.Length(), arguments.get())); | 195 TONATIVE_VOID(v8::Local<v8::Value>, retVal, instance->CallAsFunction(info.Th
is(), info.Length(), arguments.get())); |
196 v8SetReturnValue(info, retVal); | 196 v8SetReturnValue(info, retVal); |
197 } | 197 } |
198 | 198 |
199 } // namespace | 199 } // namespace |
200 | 200 |
201 void V8HTMLAppletElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | |
202 { | |
203 invokeOnScriptableObject<V8HTMLAppletElement>(info); | |
204 UseCounter::countIfNotPrivateScript(info.GetIsolate(), V8HTMLAppletElement::
toImpl(info.Holder())->document(), UseCounter::HTMLAppletElementLegacyCall); | |
205 } | |
206 | |
207 void V8HTMLEmbedElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 201 void V8HTMLEmbedElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
208 { | 202 { |
209 invokeOnScriptableObject<V8HTMLEmbedElement>(info); | 203 invokeOnScriptableObject<V8HTMLEmbedElement>(info); |
210 UseCounter::countIfNotPrivateScript(info.GetIsolate(), V8HTMLEmbedElement::t
oImpl(info.Holder())->document(), UseCounter::HTMLEmbedElementLegacyCall); | 204 UseCounter::countIfNotPrivateScript(info.GetIsolate(), V8HTMLEmbedElement::t
oImpl(info.Holder())->document(), UseCounter::HTMLEmbedElementLegacyCall); |
211 } | 205 } |
212 | 206 |
213 void V8HTMLObjectElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 207 void V8HTMLObjectElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
214 { | 208 { |
215 invokeOnScriptableObject<V8HTMLObjectElement>(info); | 209 invokeOnScriptableObject<V8HTMLObjectElement>(info); |
216 UseCounter::countIfNotPrivateScript(info.GetIsolate(), V8HTMLObjectElement::
toImpl(info.Holder())->document(), UseCounter::HTMLObjectElementLegacyCall); | 210 UseCounter::countIfNotPrivateScript(info.GetIsolate(), V8HTMLObjectElement::
toImpl(info.Holder())->document(), UseCounter::HTMLObjectElementLegacyCall); |
217 } | 211 } |
218 | 212 |
219 } // namespace blink | 213 } // namespace blink |
OLD | NEW |