| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include "bindings/core/v8/BindingSecurity.h" | 33 #include "bindings/core/v8/BindingSecurity.h" |
| 34 #include "bindings/core/v8/ExceptionMessages.h" | 34 #include "bindings/core/v8/ExceptionMessages.h" |
| 35 #include "bindings/core/v8/ExceptionState.h" | 35 #include "bindings/core/v8/ExceptionState.h" |
| 36 #include "bindings/core/v8/ScriptController.h" | 36 #include "bindings/core/v8/ScriptController.h" |
| 37 #include "bindings/core/v8/ScriptSourceCode.h" | 37 #include "bindings/core/v8/ScriptSourceCode.h" |
| 38 #include "bindings/core/v8/V8BindingForCore.h" | 38 #include "bindings/core/v8/V8BindingForCore.h" |
| 39 #include "bindings/core/v8/V8EventListener.h" | 39 #include "bindings/core/v8/V8EventListener.h" |
| 40 #include "bindings/core/v8/V8HTMLCollection.h" | 40 #include "bindings/core/v8/V8HTMLCollection.h" |
| 41 #include "bindings/core/v8/V8Node.h" | 41 #include "bindings/core/v8/V8Node.h" |
| 42 #include "bindings/core/v8/V8PrivateProperty.h" | |
| 43 #include "bindings/core/v8/serialization/SerializedScriptValue.h" | |
| 44 #include "bindings/core/v8/serialization/SerializedScriptValueFactory.h" | |
| 45 #include "bindings/core/v8/serialization/Transferables.h" | |
| 46 #include "core/dom/DOMArrayBuffer.h" | 42 #include "core/dom/DOMArrayBuffer.h" |
| 47 #include "core/dom/MessagePort.h" | 43 #include "core/dom/MessagePort.h" |
| 48 #include "core/frame/Deprecation.h" | 44 #include "core/frame/Deprecation.h" |
| 49 #include "core/frame/FrameOwner.h" | 45 #include "core/frame/FrameOwner.h" |
| 50 #include "core/frame/FrameView.h" | 46 #include "core/frame/FrameView.h" |
| 51 #include "core/frame/ImageBitmap.h" | 47 #include "core/frame/ImageBitmap.h" |
| 52 #include "core/frame/LocalDOMWindow.h" | 48 #include "core/frame/LocalDOMWindow.h" |
| 53 #include "core/frame/LocalFrame.h" | 49 #include "core/frame/LocalFrame.h" |
| 54 #include "core/frame/LocalFrameClient.h" | 50 #include "core/frame/LocalFrameClient.h" |
| 55 #include "core/frame/Location.h" | 51 #include "core/frame/Location.h" |
| 56 #include "core/frame/Settings.h" | 52 #include "core/frame/Settings.h" |
| 57 #include "core/frame/UseCounter.h" | 53 #include "core/frame/UseCounter.h" |
| 58 #include "core/frame/csp/ContentSecurityPolicy.h" | 54 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 59 #include "core/html/HTMLCollection.h" | 55 #include "core/html/HTMLCollection.h" |
| 60 #include "core/html/HTMLDocument.h" | 56 #include "core/html/HTMLDocument.h" |
| 61 #include "core/inspector/MainThreadDebugger.h" | 57 #include "core/inspector/MainThreadDebugger.h" |
| 62 #include "core/loader/FrameLoadRequest.h" | 58 #include "core/loader/FrameLoadRequest.h" |
| 63 #include "core/loader/FrameLoader.h" | 59 #include "core/loader/FrameLoader.h" |
| 64 #include "platform/LayoutTestSupport.h" | 60 #include "platform/LayoutTestSupport.h" |
| 61 #include "platform/bindings/V8PrivateProperty.h" |
| 65 #include "platform/wtf/Assertions.h" | 62 #include "platform/wtf/Assertions.h" |
| 66 | 63 |
| 67 namespace blink { | 64 namespace blink { |
| 68 | 65 |
| 69 void V8Window::locationAttributeGetterCustom( | 66 void V8Window::locationAttributeGetterCustom( |
| 70 const v8::PropertyCallbackInfo<v8::Value>& info) { | 67 const v8::PropertyCallbackInfo<v8::Value>& info) { |
| 71 v8::Isolate* isolate = info.GetIsolate(); | 68 v8::Isolate* isolate = info.GetIsolate(); |
| 72 v8::Local<v8::Object> holder = info.Holder(); | 69 v8::Local<v8::Object> holder = info.Holder(); |
| 73 | 70 |
| 74 DOMWindow* window = V8Window::toImpl(holder); | 71 DOMWindow* window = V8Window::toImpl(holder); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 if (items->HasExactlyOneItem()) { | 381 if (items->HasExactlyOneItem()) { |
| 385 V8SetReturnValueFast(info, items->item(0), window); | 382 V8SetReturnValueFast(info, items->item(0), window); |
| 386 return; | 383 return; |
| 387 } | 384 } |
| 388 V8SetReturnValueFast(info, items, window); | 385 V8SetReturnValueFast(info, items, window); |
| 389 return; | 386 return; |
| 390 } | 387 } |
| 391 } | 388 } |
| 392 | 389 |
| 393 } // namespace blink | 390 } // namespace blink |
| OLD | NEW |