OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 23 matching lines...) Expand all Loading... |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/dom/DocumentParser.h" | 35 #include "core/dom/DocumentParser.h" |
36 #include "core/events/Event.h" | 36 #include "core/events/Event.h" |
37 #include "core/fetch/FetchContext.h" | 37 #include "core/fetch/FetchContext.h" |
38 #include "core/fetch/MemoryCache.h" | 38 #include "core/fetch/MemoryCache.h" |
39 #include "core/fetch/ResourceFetcher.h" | 39 #include "core/fetch/ResourceFetcher.h" |
40 #include "core/fetch/ResourceLoader.h" | 40 #include "core/fetch/ResourceLoader.h" |
41 #include "core/fetch/TextResourceDecoder.h" | 41 #include "core/fetch/TextResourceDecoder.h" |
42 #include "core/html/HTMLFrameOwnerElement.h" | 42 #include "core/html/HTMLFrameOwnerElement.h" |
43 #include "core/inspector/InspectorInstrumentation.h" | 43 #include "core/inspector/InspectorInstrumentation.h" |
44 #include "core/loader/DocumentWriter.h" | |
45 #include "core/loader/FrameLoader.h" | 44 #include "core/loader/FrameLoader.h" |
46 #include "core/loader/FrameLoaderClient.h" | 45 #include "core/loader/FrameLoaderClient.h" |
47 #include "core/loader/UniqueIdentifier.h" | 46 #include "core/loader/UniqueIdentifier.h" |
48 #include "core/loader/appcache/ApplicationCacheHost.h" | 47 #include "core/loader/appcache/ApplicationCacheHost.h" |
49 #include "core/frame/ContentSecurityPolicy.h" | 48 #include "core/frame/ContentSecurityPolicy.h" |
50 #include "core/frame/DOMWindow.h" | 49 #include "core/frame/DOMWindow.h" |
51 #include "core/frame/Frame.h" | 50 #include "core/frame/Frame.h" |
52 #include "core/page/FrameTree.h" | 51 #include "core/page/FrameTree.h" |
53 #include "core/page/Page.h" | 52 #include "core/page/Page.h" |
54 #include "core/page/Settings.h" | 53 #include "core/page/Settings.h" |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 void DocumentLoader::replaceDocument(const String& source, Document* ownerDocume
nt) | 947 void DocumentLoader::replaceDocument(const String& source, Document* ownerDocume
nt) |
949 { | 948 { |
950 m_frame->loader().stopAllLoaders(); | 949 m_frame->loader().stopAllLoaders(); |
951 m_writer = createWriterFor(m_frame, ownerDocument, m_frame->document()->url(
), mimeType(), m_writer ? m_writer->encoding() : "", m_writer ? m_writer->encod
ingWasChosenByUser() : false, true); | 950 m_writer = createWriterFor(m_frame, ownerDocument, m_frame->document()->url(
), mimeType(), m_writer ? m_writer->encoding() : "", m_writer ? m_writer->encod
ingWasChosenByUser() : false, true); |
952 if (!source.isNull()) | 951 if (!source.isNull()) |
953 m_writer->appendReplacingData(source); | 952 m_writer->appendReplacingData(source); |
954 endWriting(m_writer.get()); | 953 endWriting(m_writer.get()); |
955 } | 954 } |
956 | 955 |
957 } // namespace WebCore | 956 } // namespace WebCore |
OLD | NEW |