OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
9 * | 9 * |
10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
(...skipping 17 matching lines...) Expand all Loading... |
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
33 */ | 33 */ |
34 | 34 |
35 #include "config.h" | 35 #include "config.h" |
36 #include "core/loader/FrameLoader.h" | 36 #include "core/loader/FrameLoader.h" |
37 | 37 |
38 #include <wtf/CurrentTime.h> | |
39 #include <wtf/MemoryInstrumentationHashSet.h> | |
40 #include <wtf/StdLibExtras.h> | |
41 #include <wtf/text/CString.h> | |
42 #include <wtf/text/WTFString.h> | |
43 #include "HTMLNames.h" | 38 #include "HTMLNames.h" |
44 #include "SVGNames.h" | |
45 #include "bindings/v8/DOMWrapperWorld.h" | 39 #include "bindings/v8/DOMWrapperWorld.h" |
46 #include "bindings/v8/ScriptController.h" | 40 #include "bindings/v8/ScriptController.h" |
47 #include "bindings/v8/ScriptSourceCode.h" | |
48 #include "bindings/v8/SerializedScriptValue.h" | 41 #include "bindings/v8/SerializedScriptValue.h" |
49 #include "core/accessibility/AXObjectCache.h" | 42 #include "core/accessibility/AXObjectCache.h" |
50 #include "core/dom/BeforeUnloadEvent.h" | 43 #include "core/dom/BeforeUnloadEvent.h" |
51 #include "core/dom/DOMImplementation.h" | |
52 #include "core/dom/Document.h" | 44 #include "core/dom/Document.h" |
53 #include "core/dom/Element.h" | 45 #include "core/dom/Element.h" |
54 #include "core/dom/Event.h" | 46 #include "core/dom/Event.h" |
55 #include "core/dom/EventNames.h" | 47 #include "core/dom/EventNames.h" |
56 #include "core/dom/PageTransitionEvent.h" | 48 #include "core/dom/PageTransitionEvent.h" |
57 #include "core/dom/WebCoreMemoryInstrumentation.h" | 49 #include "core/dom/WebCoreMemoryInstrumentation.h" |
58 #include "core/editing/Editor.h" | 50 #include "core/editing/Editor.h" |
59 #include "core/history/BackForwardController.h" | 51 #include "core/history/BackForwardController.h" |
60 #include "core/history/HistoryItem.h" | 52 #include "core/history/HistoryItem.h" |
61 #include "core/html/HTMLAnchorElement.h" | |
62 #include "core/html/HTMLFormElement.h" | 53 #include "core/html/HTMLFormElement.h" |
63 #include "core/html/HTMLInputElement.h" | 54 #include "core/html/HTMLInputElement.h" |
64 #include "core/html/HTMLObjectElement.h" | 55 #include "core/html/HTMLObjectElement.h" |
65 #include "core/html/PluginDocument.h" | |
66 #include "core/html/parser/HTMLParserIdioms.h" | 56 #include "core/html/parser/HTMLParserIdioms.h" |
67 #include "core/inspector/InspectorController.h" | 57 #include "core/inspector/InspectorController.h" |
68 #include "core/inspector/InspectorInstrumentation.h" | 58 #include "core/inspector/InspectorInstrumentation.h" |
69 #include "core/inspector/ScriptCallStack.h" | |
70 #include "core/loader/DocumentLoadTiming.h" | 59 #include "core/loader/DocumentLoadTiming.h" |
71 #include "core/loader/DocumentLoader.h" | 60 #include "core/loader/DocumentLoader.h" |
72 #include "core/loader/FormState.h" | 61 #include "core/loader/FormState.h" |
73 #include "core/loader/FormSubmission.h" | 62 #include "core/loader/FormSubmission.h" |
74 #include "core/loader/FrameLoadRequest.h" | 63 #include "core/loader/FrameLoadRequest.h" |
75 #include "core/loader/FrameLoaderClient.h" | 64 #include "core/loader/FrameLoaderClient.h" |
76 #include "core/loader/IconController.h" | 65 #include "core/loader/IconController.h" |
77 #include "core/loader/ProgressTracker.h" | 66 #include "core/loader/ProgressTracker.h" |
78 #include "core/loader/TextResourceDecoder.h" | |
79 #include "core/loader/UniqueIdentifier.h" | 67 #include "core/loader/UniqueIdentifier.h" |
80 #include "core/loader/appcache/ApplicationCacheHost.h" | 68 #include "core/loader/appcache/ApplicationCacheHost.h" |
81 #include "core/loader/cache/CachedResourceLoader.h" | 69 #include "core/loader/cache/CachedResourceLoader.h" |
82 #include "core/loader/cache/MemoryCache.h" | |
83 #include "core/page/Chrome.h" | 70 #include "core/page/Chrome.h" |
84 #include "core/page/ChromeClient.h" | 71 #include "core/page/ChromeClient.h" |
85 #include "core/page/Console.h" | |
86 #include "core/page/ContentSecurityPolicy.h" | 72 #include "core/page/ContentSecurityPolicy.h" |
87 #include "core/page/DOMWindow.h" | 73 #include "core/page/DOMWindow.h" |
88 #include "core/page/EditorClient.h" | |
89 #include "core/page/EventHandler.h" | 74 #include "core/page/EventHandler.h" |
90 #include "core/page/Frame.h" | 75 #include "core/page/Frame.h" |
91 #include "core/page/FrameTree.h" | 76 #include "core/page/FrameTree.h" |
92 #include "core/page/FrameView.h" | 77 #include "core/page/FrameView.h" |
93 #include "core/page/Page.h" | 78 #include "core/page/Page.h" |
94 #include "core/page/Settings.h" | 79 #include "core/page/Settings.h" |
95 #include "core/page/WindowFeatures.h" | 80 #include "core/page/WindowFeatures.h" |
96 #include "core/platform/Logging.h" | 81 #include "core/platform/Logging.h" |
97 #include "core/platform/MIMETypeFromURL.h" | |
98 #include "core/platform/MIMETypeRegistry.h" | |
99 #include "core/platform/ScrollAnimator.h" | 82 #include "core/platform/ScrollAnimator.h" |
100 #include "core/platform/graphics/FloatRect.h" | 83 #include "core/platform/graphics/FloatRect.h" |
101 #include "core/platform/network/HTTPParsers.h" | 84 #include "core/platform/network/HTTPParsers.h" |
102 #include "core/platform/network/ResourceHandle.h" | 85 #include "core/platform/network/ResourceHandle.h" |
103 #include "core/platform/network/ResourceRequest.h" | 86 #include "core/platform/network/ResourceRequest.h" |
104 #include "core/platform/text/SegmentedString.h" | |
105 #include "core/plugins/PluginData.h" | |
106 #include "core/svg/SVGDocument.h" | |
107 #include "core/svg/SVGLocatable.h" | |
108 #include "core/svg/SVGPreserveAspectRatio.h" | |
109 #include "core/svg/SVGSVGElement.h" | |
110 #include "core/svg/SVGViewElement.h" | |
111 #include "core/svg/SVGViewSpec.h" | |
112 #include "core/xml/parser/XMLDocumentParser.h" | 87 #include "core/xml/parser/XMLDocumentParser.h" |
113 #include "modules/webdatabase/DatabaseManager.h" | 88 #include "modules/webdatabase/DatabaseManager.h" |
114 #include "weborigin/SchemeRegistry.h" | |
115 #include "weborigin/SecurityOrigin.h" | 89 #include "weborigin/SecurityOrigin.h" |
116 #include "weborigin/SecurityPolicy.h" | 90 #include "weborigin/SecurityPolicy.h" |
| 91 #include "wtf/MemoryInstrumentationHashSet.h" |
| 92 #include "wtf/text/CString.h" |
| 93 #include "wtf/text/WTFString.h" |
117 | 94 |
118 | 95 |
119 namespace WebCore { | 96 namespace WebCore { |
120 | 97 |
121 using namespace HTMLNames; | 98 using namespace HTMLNames; |
122 using namespace SVGNames; | |
123 | 99 |
124 static const char defaultAcceptHeader[] = "text/html,application/xhtml+xml,appli
cation/xml;q=0.9,*/*;q=0.8"; | 100 static const char defaultAcceptHeader[] = "text/html,application/xhtml+xml,appli
cation/xml;q=0.9,*/*;q=0.8"; |
125 | 101 |
126 bool isBackForwardLoadType(FrameLoadType type) | 102 bool isBackForwardLoadType(FrameLoadType type) |
127 { | 103 { |
128 return type == FrameLoadTypeBackForward; | 104 return type == FrameLoadTypeBackForward; |
129 } | 105 } |
130 | 106 |
131 // This is not in the FrameLoader class to emphasize that it does not depend on | 107 // This is not in the FrameLoader class to emphasize that it does not depend on |
132 // private FrameLoader data, and to avoid increasing the number of public functi
ons | 108 // private FrameLoader data, and to avoid increasing the number of public functi
ons |
(...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2542 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect); | 2518 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect); |
2543 | 2519 |
2544 page->chrome().setWindowRect(newWindowRect); | 2520 page->chrome().setWindowRect(newWindowRect); |
2545 page->chrome().show(); | 2521 page->chrome().show(); |
2546 | 2522 |
2547 created = true; | 2523 created = true; |
2548 return frame; | 2524 return frame; |
2549 } | 2525 } |
2550 | 2526 |
2551 } // namespace WebCore | 2527 } // namespace WebCore |
OLD | NEW |