OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. 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 14 matching lines...) Expand all Loading... |
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 #include "bindings/v8/ScriptController.h" | 33 #include "bindings/v8/ScriptController.h" |
34 | 34 |
35 #include "V8Event.h" | 35 #include "bindings/core/v8/V8Event.h" |
36 #include "V8HTMLElement.h" | 36 #include "bindings/core/v8/V8HTMLElement.h" |
37 #include "V8Window.h" | 37 #include "bindings/core/v8/V8Window.h" |
38 #include "bindings/v8/BindingSecurity.h" | 38 #include "bindings/v8/BindingSecurity.h" |
39 #include "bindings/v8/NPV8Object.h" | 39 #include "bindings/v8/NPV8Object.h" |
40 #include "bindings/v8/ScriptCallStackFactory.h" | 40 #include "bindings/v8/ScriptCallStackFactory.h" |
41 #include "bindings/v8/ScriptSourceCode.h" | 41 #include "bindings/v8/ScriptSourceCode.h" |
42 #include "bindings/v8/ScriptValue.h" | 42 #include "bindings/v8/ScriptValue.h" |
43 #include "bindings/v8/V8Binding.h" | 43 #include "bindings/v8/V8Binding.h" |
44 #include "bindings/v8/V8GCController.h" | 44 #include "bindings/v8/V8GCController.h" |
45 #include "bindings/v8/V8NPObject.h" | 45 #include "bindings/v8/V8NPObject.h" |
46 #include "bindings/v8/V8PerContextData.h" | 46 #include "bindings/v8/V8PerContextData.h" |
47 #include "bindings/v8/V8ScriptRunner.h" | 47 #include "bindings/v8/V8ScriptRunner.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 resultArray->Set(i, evaluationResult); | 616 resultArray->Set(i, evaluationResult); |
617 } | 617 } |
618 | 618 |
619 if (results) { | 619 if (results) { |
620 for (size_t i = 0; i < resultArray->Length(); ++i) | 620 for (size_t i = 0; i < resultArray->Length(); ++i) |
621 results->append(ScriptValue(ScriptState::from(context), resultArray-
>Get(i))); | 621 results->append(ScriptValue(ScriptState::from(context), resultArray-
>Get(i))); |
622 } | 622 } |
623 } | 623 } |
624 | 624 |
625 } // namespace WebCore | 625 } // namespace WebCore |
OLD | NEW |