OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // LocalFrame, and also notifies the embedder via WebFrameClient that the frame
is | 65 // LocalFrame, and also notifies the embedder via WebFrameClient that the frame
is |
66 // detached. Most embedders will invoke close() on the WebFrame at this point, | 66 // detached. Most embedders will invoke close() on the WebFrame at this point, |
67 // triggering its deletion unless something else is still retaining a reference. | 67 // triggering its deletion unless something else is still retaining a reference. |
68 // | 68 // |
69 // Thie client is expected to be set whenever the WebLocalFrameImpl is attached
to | 69 // Thie client is expected to be set whenever the WebLocalFrameImpl is attached
to |
70 // the DOM. | 70 // the DOM. |
71 | 71 |
72 #include "config.h" | 72 #include "config.h" |
73 #include "web/WebLocalFrameImpl.h" | 73 #include "web/WebLocalFrameImpl.h" |
74 | 74 |
75 #include "HTMLNames.h" | |
76 #include "bindings/v8/DOMWrapperWorld.h" | 75 #include "bindings/v8/DOMWrapperWorld.h" |
77 #include "bindings/v8/ExceptionState.h" | 76 #include "bindings/v8/ExceptionState.h" |
78 #include "bindings/v8/ExceptionStatePlaceholder.h" | 77 #include "bindings/v8/ExceptionStatePlaceholder.h" |
79 #include "bindings/v8/ScriptController.h" | 78 #include "bindings/v8/ScriptController.h" |
80 #include "bindings/v8/ScriptSourceCode.h" | 79 #include "bindings/v8/ScriptSourceCode.h" |
81 #include "bindings/v8/ScriptValue.h" | 80 #include "bindings/v8/ScriptValue.h" |
82 #include "bindings/v8/V8GCController.h" | 81 #include "bindings/v8/V8GCController.h" |
83 #include "bindings/v8/V8PerIsolateData.h" | 82 #include "bindings/v8/V8PerIsolateData.h" |
| 83 #include "core/HTMLNames.h" |
84 #include "core/dom/Document.h" | 84 #include "core/dom/Document.h" |
85 #include "core/dom/DocumentMarker.h" | 85 #include "core/dom/DocumentMarker.h" |
86 #include "core/dom/DocumentMarkerController.h" | 86 #include "core/dom/DocumentMarkerController.h" |
87 #include "core/dom/IconURL.h" | 87 #include "core/dom/IconURL.h" |
88 #include "core/dom/MessagePort.h" | 88 #include "core/dom/MessagePort.h" |
89 #include "core/dom/Node.h" | 89 #include "core/dom/Node.h" |
90 #include "core/dom/NodeTraversal.h" | 90 #include "core/dom/NodeTraversal.h" |
91 #include "core/dom/shadow/ShadowRoot.h" | 91 #include "core/dom/shadow/ShadowRoot.h" |
92 #include "core/editing/Editor.h" | 92 #include "core/editing/Editor.h" |
93 #include "core/editing/FrameSelection.h" | 93 #include "core/editing/FrameSelection.h" |
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1950 { | 1950 { |
1951 RefPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClientImpl, host
, owner); | 1951 RefPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClientImpl, host
, owner); |
1952 setWebCoreFrame(frame); | 1952 setWebCoreFrame(frame); |
1953 frame->tree().setName(name, fallbackName); | 1953 frame->tree().setName(name, fallbackName); |
1954 // May dispatch JS events; frame may be detached after this. | 1954 // May dispatch JS events; frame may be detached after this. |
1955 frame->init(); | 1955 frame->init(); |
1956 return frame; | 1956 return frame; |
1957 } | 1957 } |
1958 | 1958 |
1959 } // namespace blink | 1959 } // namespace blink |
OLD | NEW |