Changeset 73392 in webkit
- Timestamp:
- Dec 6, 2010 1:11:20 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r73390 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Make DocumentWriter a member of DocumentLoader 6 instead of FrameLoader. 7 https://bugs.webkit.org/show_bug.cgi?id=50489 8 9 Refactor, no new tests. 10 11 * bindings/ScriptControllerBase.cpp: 12 (WebCore::ScriptController::executeIfJavaScriptURL): 13 * dom/Document.cpp: 14 (WebCore::Document::Document): 15 (WebCore::Document::close): 16 (WebCore::Document::lastModified): 17 (WebCore::Document::finishedParsing): 18 (WebCore::Document::initSecurityContext): 19 (WebCore::Document::updateURLForPushOrReplaceState): 20 * dom/Document.h: 21 (WebCore::Document::setDocumentLoader): 22 (WebCore::Document::loader): 23 * dom/ProcessingInstruction.cpp: 24 (WebCore::ProcessingInstruction::checkStyleSheet): 25 * dom/ScriptElement.cpp: 26 (WebCore::ScriptElement::scriptCharset): 27 * html/HTMLLinkElement.cpp: 28 (WebCore::HTMLLinkElement::process): 29 * html/MediaDocument.cpp: 30 (WebCore::MediaDocument::replaceMediaElementTimerFired): 31 * html/PluginDocument.cpp: 32 (WebCore::PluginDocumentParser::createDocumentStructure): 33 * loader/DocumentLoader.cpp: 34 (WebCore::DocumentLoader::DocumentLoader): 35 (WebCore::DocumentLoader::finishedLoading): 36 (WebCore::DocumentLoader::commitData): 37 (WebCore::DocumentLoader::setupForReplaceByMIMEType): 38 (WebCore::DocumentLoader::setFrame): 39 * loader/DocumentLoader.h: 40 (WebCore::DocumentLoader::writer): 41 * loader/DocumentWriter.h: 42 (WebCore::DocumentWriter::setFrame): 43 * loader/FrameLoader.cpp: 44 (WebCore::FrameLoader::FrameLoader): 45 (WebCore::FrameLoader::init): 46 (WebCore::FrameLoader::clear): 47 (WebCore::FrameLoader::receivedFirstData): 48 (WebCore::FrameLoader::transitionToCommitted): 49 (WebCore::FrameLoader::open): 50 (WebCore::FrameLoader::finishedLoadingDocument): 51 (WebCore::FrameLoader::addExtraFieldsToRequest): 52 * loader/FrameLoader.h: 53 (WebCore::FrameLoader::notifier): 54 * loader/cache/CachedResourceLoader.cpp: 55 (WebCore::CachedResourceLoader::requestPreload): 56 * platform/network/FormDataBuilder.cpp: 57 (WebCore::FormDataBuilder::encodingFromAcceptCharset): 58 * svg/graphics/SVGImage.cpp: 59 (WebCore::SVGImage::dataChanged): 60 1 61 2010-12-06 Mark Rowe <mrowe@apple.com> 2 62 -
trunk/WebCore/bindings/ScriptControllerBase.cpp
r69990 r73392 113 113 // http://bugs.webkit.org/show_bug.cgi?id=16782 114 114 if (shouldReplaceDocumentIfJavaScriptURL == ReplaceDocumentIfJavaScriptURL) 115 m_frame-> loader()->writer()->replaceDocument(scriptResult);115 m_frame->document()->loader()->writer()->replaceDocument(scriptResult); 116 116 117 117 return true; -
trunk/WebCore/dom/Document.cpp
r72969 r73392 428 428 429 429 m_frame = frame; 430 m_documentLoader = frame ? frame->loader()->activeDocumentLoader() : 0; 430 431 431 432 if (frame || !url.isEmpty()) … … 2054 2055 if (frame) { 2055 2056 // This code calls implicitClose() if all loading has completed. 2056 FrameLoader* frameLoader = frame->loader(); 2057 frameLoader->writer()->endIfNotLoadingMainResource(); 2058 frameLoader->checkCompleted(); 2057 loader()->writer()->endIfNotLoadingMainResource(); 2058 frame->loader()->checkCompleted(); 2059 2059 } else { 2060 2060 // Because we have no frame, we don't know if all loading has completed, … … 3713 3713 bool foundDate = false; 3714 3714 if (m_frame) { 3715 String httpLastModified = m_ frame->loader()->documentLoader()->response().httpHeaderField("Last-Modified");3715 String httpLastModified = m_documentLoader->response().httpHeaderField("Last-Modified"); 3716 3716 if (!httpLastModified.isEmpty()) { 3717 3717 date.setMillisecondsSinceEpochForDateTime(parseDate(httpLastModified)); … … 4231 4231 4232 4232 if (InspectorController* controller = page()->inspectorController()) 4233 controller->mainResourceFiredDOMContentEvent( f->loader()->documentLoader(), url());4233 controller->mainResourceFiredDOMContentEvent(m_documentLoader, url()); 4234 4234 #endif 4235 4235 } … … 4445 4445 // and https://bugs.webkit.org/show_bug.cgi?id=19760 for further 4446 4446 // discussion. 4447 DocumentLoader* documentLoader = m_frame->loader()->documentLoader(); 4448 if (documentLoader && documentLoader->substituteData().isValid()) 4447 if (m_documentLoader->substituteData().isValid()) 4449 4448 securityOrigin()->grantLoadLocalResources(); 4450 4449 } … … 4526 4525 setURL(url); 4527 4526 f->loader()->setURL(url); 4528 f->loader()->documentLoader()->replaceRequestURLForSameDocumentNavigation(url);4527 m_documentLoader->replaceRequestURLForSameDocumentNavigation(url); 4529 4528 } 4530 4529 -
trunk/WebCore/dom/Document.h
r72552 r73392 34 34 #include "Color.h" 35 35 #include "ContainerNode.h" 36 #include "DocumentLoader.h" 36 37 #include "DocumentMarkerController.h" 37 38 #include "DocumentTiming.h" … … 56 57 class CDATASection; 57 58 class CachedCSSStyleSheet; 59 class CachedResourceLoader; 58 60 class CachedScript; 59 61 class CanvasRenderingContext; … … 68 70 class DOMWindow; 69 71 class DatabaseThread; 70 class CachedResourceLoader;71 72 class DocumentFragment; 72 73 class DocumentType; … … 549 550 void setVisuallyOrdered(); 550 551 bool visuallyOrdered() const { return m_visuallyOrdered; } 552 553 void setDocumentLoader(DocumentLoader* documentLoader) { m_documentLoader = documentLoader; } 554 DocumentLoader* loader() const { return m_documentLoader; } 551 555 552 556 void open(Document* ownerDocument = 0); … … 1137 1141 1138 1142 Frame* m_frame; 1143 DocumentLoader* m_documentLoader; 1139 1144 OwnPtr<CachedResourceLoader> m_cachedResourceLoader; 1140 1145 RefPtr<DocumentParser> m_parser; -
trunk/WebCore/dom/ProcessingInstruction.cpp
r72315 r73392 169 169 String charset = attrs.get("charset"); 170 170 if (charset.isEmpty()) 171 charset = document()-> frame()->loader()->writer()->encoding();171 charset = document()->loader()->writer()->encoding(); 172 172 173 173 m_cachedSheet = document()->cachedResourceLoader()->requestCSSStyleSheet(url, charset); -
trunk/WebCore/dom/ScriptElement.cpp
r72995 r73392 293 293 // If charset has not been declared in script tag, fall back to frame encoding. 294 294 if (charset.isEmpty()) { 295 if ( Frame* frame = m_element->document()->frame())296 charset = frame->loader()->writer()->encoding();295 if (DocumentLoader* loader = m_element->document()->loader()) 296 charset = loader->writer()->encoding(); 297 297 } 298 298 -
trunk/WebCore/html/HTMLLinkElement.cpp
r73335 r73392 231 231 232 232 String charset = getAttribute(charsetAttr); 233 if (charset.isEmpty() && document()->frame())234 charset = document()-> frame()->loader()->writer()->encoding();233 if (charset.isEmpty()) 234 charset = document()->loader()->writer()->encoding(); 235 235 236 236 if (m_cachedSheet) { -
trunk/WebCore/html/MediaDocument.cpp
r72259 r73392 209 209 embedElement->setAttribute(nameAttr, "plugin"); 210 210 embedElement->setAttribute(srcAttr, url().string()); 211 embedElement->setAttribute(typeAttr, frame()->loader()->writer()->mimeType());211 embedElement->setAttribute(typeAttr, loader()->writer()->mimeType()); 212 212 213 213 ExceptionCode ec; -
trunk/WebCore/html/PluginDocument.cpp
r69268 r73392 92 92 m_embedElement->setAttribute(nameAttr, "plugin"); 93 93 m_embedElement->setAttribute(srcAttr, document()->url().string()); 94 m_embedElement->setAttribute(typeAttr, document()-> frame()->loader()->writer()->mimeType());94 m_embedElement->setAttribute(typeAttr, document()->loader()->writer()->mimeType()); 95 95 96 96 static_cast<PluginDocument*>(document())->setPluginNode(m_embedElement); -
trunk/WebCore/loader/DocumentLoader.cpp
r73210 r73392 38 38 #include "Document.h" 39 39 #include "DocumentParser.h" 40 #include "DocumentWriter.h" 40 41 #include "Event.h" 41 42 #include "Frame.h" … … 50 51 #include "Settings.h" 51 52 #include "SharedBuffer.h" 52 53 #include "TextResourceDecoder.h" 53 54 #include <wtf/Assertions.h> 54 55 #include <wtf/text/CString.h> … … 78 79 : m_deferMainResourceDataLoad(true) 79 80 , m_frame(0) 81 , m_writer(m_frame) 80 82 , m_originalRequest(req) 81 83 , m_substituteData(substituteData) … … 277 279 if (FrameLoader* loader = frameLoader()) { 278 280 loader->finishedLoadingDocument(this); 279 loader->writer()->end();281 m_writer.end(); 280 282 } 281 283 } … … 305 307 encoding = response().textEncodingName(); 306 308 } 307 // FIXME: DocumentWriter should be owned by DocumentLoader. 308 m_frame->loader()->writer()->setEncoding(encoding, userChosen); 309 m_writer.setEncoding(encoding, userChosen); 309 310 ASSERT(m_frame->document()->parsing()); 310 m_ frame->loader()->writer()->addData(bytes, length);311 m_writer.addData(bytes, length); 311 312 } 312 313 … … 338 339 339 340 frameLoader()->finishedLoadingDocument(this); 340 m_ frame->loader()->writer()->end();341 m_writer.end(); 341 342 342 343 frameLoader()->setReplacing(); … … 375 376 ASSERT(frame && !m_frame); 376 377 m_frame = frame; 378 m_writer.setFrame(frame); 377 379 attachToFrame(); 378 380 } -
trunk/WebCore/loader/DocumentLoader.h
r70574 r73392 31 31 32 32 #include "DocumentLoadTiming.h" 33 #include "DocumentWriter.h" 33 34 #include "NavigationAction.h" 34 35 #include "ResourceError.h" … … 73 74 MainResourceLoader* mainResourceLoader() const { return m_mainResourceLoader.get(); } 74 75 PassRefPtr<SharedBuffer> mainResourceData() const; 76 77 DocumentWriter* writer() const { return &m_writer; } 75 78 76 79 const ResourceRequest& originalRequest() const; … … 247 250 248 251 RefPtr<SharedBuffer> m_mainResourceData; 252 253 mutable DocumentWriter m_writer; 249 254 250 255 // A reference to actual request used to create the data source. -
trunk/WebCore/loader/DocumentWriter.cpp
r69026 r73392 124 124 bool resetScripting = !(m_frame->loader()->stateMachine()->isDisplayingInitialEmptyDocument() && m_frame->document()->securityOrigin()->isSecureTransitionTo(url)); 125 125 m_frame->loader()->clear(resetScripting, resetScripting); 126 clear(); 126 127 if (resetScripting) 127 128 m_frame->script()->updatePlatformScriptObjects(); -
trunk/WebCore/loader/DocumentWriter.h
r69026 r73392 53 53 void end(); 54 54 void endIfNotLoadingMainResource(); 55 void clear(); 55 56 void setFrame(Frame* frame) { m_frame = frame; } 56 57 57 58 String encoding() const; … … 76 77 private: 77 78 PassRefPtr<Document> createDocument(const KURL&); 79 void clear(); 78 80 79 81 Frame* m_frame; -
trunk/WebCore/loader/FrameLoader.cpp
r72611 r73392 179 179 , m_history(frame) 180 180 , m_notifer(frame) 181 , m_writer(frame)182 181 , m_subframeLoader(frame) 183 182 , m_state(FrameStateCommittedPage) … … 233 232 m_provisionalDocumentLoader->setResponse(ResourceResponse(KURL(), "text/html", 0, String(), String())); 234 233 m_provisionalDocumentLoader->finishedLoading(); 235 writer()->begin(KURL(), false);236 writer()->end();234 m_documentLoader->writer()->begin(KURL(), false); 235 m_documentLoader->writer()->end(); 237 236 m_frame->document()->cancelParsing(); 238 237 m_stateMachine.advanceTo(FrameLoaderStateMachine::DisplayingInitialEmptyDocument); … … 593 592 // as some destructors might still try to access the document. 594 593 m_frame->setDocument(0); 595 writer()->clear();596 594 597 595 m_subframeLoader.clear(); … … 612 610 void FrameLoader::receivedFirstData() 613 611 { 614 writer()->begin(m_workingURL, false);615 writer()->setDocumentWasLoadedAsPartOfNavigation();612 activeDocumentLoader()->writer()->begin(m_workingURL, false); 613 activeDocumentLoader()->writer()->setDocumentWasLoadedAsPartOfNavigation(); 616 614 617 615 dispatchDidCommitLoad(); … … 2013 2011 } 2014 2012 2015 writer()->setMIMEType(dl->responseMIMEType());2013 m_documentLoader->writer()->setMIMEType(dl->responseMIMEType()); 2016 2014 2017 2015 // Tell the client we've committed this URL. … … 2149 2147 m_frame->domWindow()->setSecurityOrigin(document->securityOrigin()); 2150 2148 2151 writer()->setDecoder(document->decoder());2152 2153 2149 updateFirstPartyForCookies(); 2154 2150 … … 2243 2239 loader->setParsedArchiveData(mainResource->data()); 2244 2240 2245 writer()->setMIMEType(mainResource->mimeType());2241 loader->writer()->setMIMEType(mainResource->mimeType()); 2246 2242 2247 2243 closeURL(); … … 2251 2247 String userChosenEncoding = documentLoader()->overrideEncoding(); 2252 2248 bool encodingIsUserChosen = !userChosenEncoding.isNull(); 2253 writer()->setEncoding(encodingIsUserChosen ? userChosenEncoding : mainResource->textEncoding(), encodingIsUserChosen);2254 writer()->addData(mainResource->data()->data(), mainResource->data()->size());2249 loader->writer()->setEncoding(encodingIsUserChosen ? userChosenEncoding : mainResource->textEncoding(), encodingIsUserChosen); 2250 loader->writer()->addData(mainResource->data()->data(), mainResource->data()->size()); 2255 2251 } 2256 2252 … … 2676 2672 // For a newly opened frame with an empty URL, encoding() should not be used, because this methods asks decoder, which uses ISO-8859-1. 2677 2673 Settings* settings = m_frame->settings(); 2678 request.setResponseContentDispositionEncodingFallbackArray("UTF-8", writer()->deprecatedFrameEncoding(), settings ? settings->defaultTextEncodingName() : String());2674 request.setResponseContentDispositionEncodingFallbackArray("UTF-8", activeDocumentLoader()->writer()->deprecatedFrameEncoding(), settings ? settings->defaultTextEncodingName() : String()); 2679 2675 } 2680 2676 -
trunk/WebCore/loader/FrameLoader.h
r71959 r73392 33 33 34 34 #include "CachePolicy.h" 35 #include "DocumentWriter.h"36 35 #include "FrameLoaderStateMachine.h" 37 36 #include "FrameLoaderTypes.h" … … 99 98 HistoryController* history() const { return &m_history; } 100 99 ResourceLoadNotifier* notifier() const { return &m_notifer; } 101 DocumentWriter* writer() const { return &m_writer; }102 100 SubframeLoader* subframeLoader() const { return &m_subframeLoader; } 103 101 … … 428 426 mutable HistoryController m_history; 429 427 mutable ResourceLoadNotifier m_notifer; 430 mutable DocumentWriter m_writer;431 428 mutable SubframeLoader m_subframeLoader; 432 429 mutable FrameLoaderStateMachine m_stateMachine; -
trunk/WebCore/loader/cache/CachedResourceLoader.cpp
r72303 r73392 407 407 String encoding; 408 408 if (type == CachedResource::Script || type == CachedResource::CSSStyleSheet) 409 encoding = charset.isEmpty() ? m_document-> frame()->loader()->writer()->encoding() : charset;409 encoding = charset.isEmpty() ? m_document->loader()->writer()->encoding() : charset; 410 410 411 411 CachedResource* resource = requestResource(type, url, encoding, true); -
trunk/WebCore/platform/network/FormDataBuilder.cpp
r63999 r73392 95 95 } 96 96 97 if (Frame* frame = document->frame()) 98 return frame->loader()->writer()->encoding(); 99 100 return Latin1Encoding(); 97 return document->loader()->writer()->encoding(); 101 98 } 102 99 -
trunk/WebCore/svg/graphics/SVGImage.cpp
r70143 r73392 279 279 loader->policyChecker()->cancelCheck(); // cancel any policy checks 280 280 loader->commitProvisionalLoad(); 281 loader-> writer()->setMIMEType("image/svg+xml");282 loader-> writer()->begin(KURL()); // create the empty document283 loader-> writer()->addData(data()->data(), data()->size());284 loader-> writer()->end();281 loader->activeDocumentLoader()->writer()->setMIMEType("image/svg+xml"); 282 loader->activeDocumentLoader()->writer()->begin(KURL()); // create the empty document 283 loader->activeDocumentLoader()->writer()->addData(data()->data(), data()->size()); 284 loader->activeDocumentLoader()->writer()->end(); 285 285 frame->view()->setTransparent(true); // SVG Images are transparent. 286 286 } -
trunk/WebKit/chromium/ChangeLog
r73317 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Update calls to DocumentWriter. 6 https://bugs.webkit.org/show_bug.cgi?id=50489 7 8 * src/ContextMenuClientImpl.cpp: 9 (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): 10 * src/FrameLoaderClientImpl.cpp: 11 (WebKit::FrameLoaderClientImpl::finishedLoading): 12 * src/WebFrameImpl.cpp: 13 (WebKit::WebFrameImpl::encoding): 14 (WebKit::WebFrameImpl::loadJavaScriptURL): 15 * src/WebPageSerializerImpl.cpp: 16 (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag): 17 (WebKit::WebPageSerializerImpl::serialize): 18 * src/WebSearchableFormData.cpp: 19 (WebCore::GetFormEncoding): 20 * src/WebViewImpl.cpp: 21 (WebKit::WebViewImpl::pageEncoding): 22 1 23 2010-12-03 Sheriff Bot <webkit.review.bot@gmail.com> 2 24 -
trunk/WebKit/chromium/src/ContextMenuClientImpl.cpp
r70598 r73392 227 227 // If it's not a link, an image, a media element, or an image/media link, 228 228 // show a selection menu or a more generic page menu. 229 data.frameEncoding = selectedFrame-> loader()->writer()->encoding();229 data.frameEncoding = selectedFrame->document()->loader()->writer()->encoding(); 230 230 231 231 // Send the frame and page URLs in any case. -
trunk/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r71610 r73392 1098 1098 // match the behavior on the Mac. 1099 1099 if (m_hasRepresentation) 1100 dl-> frameLoader()->writer()->setEncoding("", false);1100 dl->writer()->setEncoding("", false); 1101 1101 } 1102 1102 } -
trunk/WebKit/chromium/src/WebFrameImpl.cpp
r72616 r73392 546 546 WebString WebFrameImpl::encoding() const 547 547 { 548 return frame()-> loader()->writer()->encoding();548 return frame()->document()->loader()->writer()->encoding(); 549 549 } 550 550 … … 2272 2272 2273 2273 if (!m_frame->navigationScheduler()->locationChangePending()) 2274 m_frame-> loader()->writer()->replaceDocument(scriptResult);2274 m_frame->document()->loader()->writer()->replaceDocument(scriptResult); 2275 2275 } 2276 2276 -
trunk/WebKit/chromium/src/WebPageSerializerImpl.cpp
r69683 r73392 169 169 String xmlEncoding = param->document->xmlEncoding(); 170 170 if (xmlEncoding.isEmpty()) 171 xmlEncoding = param->document-> frame()->loader()->writer()->encoding();171 xmlEncoding = param->document->loader()->writer()->encoding(); 172 172 if (xmlEncoding.isEmpty()) 173 173 xmlEncoding = UTF8Encoding().name(); … … 506 506 didSerialization = true; 507 507 508 String encoding = webFrame->frame()->loader()->writer()->encoding();508 String encoding = document->loader()->writer()->encoding(); 509 509 const TextEncoding& textEncoding = encoding.isEmpty() ? UTF8Encoding() : TextEncoding(encoding); 510 510 String directoryName = url == mainURL ? m_localDirectoryName : ""; -
trunk/WebKit/chromium/src/WebSearchableFormData.cpp
r68749 r73392 62 62 return; 63 63 } 64 const Frame* frame = form->document()->frame(); 65 *encoding = frame ? TextEncoding(frame->loader()->writer()->encoding()) : Latin1Encoding(); 64 *encoding = TextEncoding(form->document()->loader()->writer()->encoding()); 66 65 } 67 66 -
trunk/WebKit/chromium/src/WebViewImpl.cpp
r73137 r73392 1432 1432 return WebString(); 1433 1433 1434 return m_page->mainFrame()-> loader()->writer()->encoding();1434 return m_page->mainFrame()->document()->loader()->writer()->encoding(); 1435 1435 } 1436 1436 -
trunk/WebKit/gtk/ChangeLog
r73368 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Update calls to DocumentWriter. 6 https://bugs.webkit.org/show_bug.cgi?id=50489 7 8 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9 (WebKit::FrameLoaderClient::finishedLoading): 10 * webkit/webkitwebview.cpp: 11 (webkit_web_view_get_encoding): 12 1 13 2010-12-06 Martin Robinson <mrobinson@igalia.com> 2 14 -
trunk/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r73353 r73392 1017 1017 void FrameLoaderClient::finishedLoading(WebCore::DocumentLoader* documentLoader) 1018 1018 { 1019 if (!m_pluginView) { 1020 FrameLoader* loader = documentLoader->frameLoader(); 1021 loader->writer()->setEncoding(m_response.textEncodingName(), false); 1022 } else { 1019 if (!m_pluginView) 1020 documentLoader->writer()->setEncoding(m_response.textEncodingName(), false); 1021 else { 1023 1022 m_pluginView->didFinishLoading(); 1024 1023 m_pluginView = 0; -
trunk/WebKit/gtk/webkit/webkitwebview.cpp
r73354 r73392 4510 4510 { 4511 4511 g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), NULL); 4512 String encoding = core(webView)->mainFrame()-> loader()->writer()->encoding();4512 String encoding = core(webView)->mainFrame()->document()->loader()->writer()->encoding(); 4513 4513 if (encoding.isEmpty()) 4514 4514 return 0; -
trunk/WebKit/mac/ChangeLog
r73380 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Update calls to DocumentWriter. 6 https://bugs.webkit.org/show_bug.cgi?id=50489 7 8 * WebView/WebFrame.mm: 9 (-[WebFrame _canProvideDocumentSource]): 10 1 11 2010-12-06 Chris Marrin <cmarrin@apple.com> 2 12 -
trunk/WebKit/mac/WebView/WebFrame.mm
r72573 r73392 934 934 { 935 935 Frame* frame = _private->coreFrame; 936 String mimeType = frame-> loader()->writer()->mimeType();936 String mimeType = frame->document()->loader()->writer()->mimeType(); 937 937 PluginData* pluginData = frame->page() ? frame->page()->pluginData() : 0; 938 938 -
trunk/WebKit/qt/Api/qwebframe.cpp
r72910 r73392 704 704 { 705 705 const QUrl absolute = ensureAbsoluteUrl(url); 706 d->frame-> loader()->writer()->begin(absolute);707 d->frame-> loader()->writer()->end();706 d->frame->document()->loader()->writer()->begin(absolute); 707 d->frame->document()->loader()->writer()->end(); 708 708 load(absolute); 709 709 } -
trunk/WebKit/qt/ChangeLog
r73088 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Update calls to DocumentWriter. 6 https://bugs.webkit.org/show_bug.cgi?id=50489 7 8 * Api/qwebframe.cpp: 9 (QWebFrame::setUrl): 10 * WebCoreSupport/FrameLoaderClientQt.cpp: 11 (WebCore::FrameLoaderClientQt::finishedLoading): 12 1 13 2010-12-01 Jia Pu <jpu@apple.com> 2 14 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r72612 r73392 620 620 // match the behavior on the Mac. 621 621 if (m_hasRepresentation) 622 loader-> frameLoader()->writer()->setEncoding("", false);622 loader->writer()->setEncoding("", false); 623 623 return; 624 624 } -
trunk/WebKit/wince/ChangeLog
r73378 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Update calls to DocumentWriter. 6 https://bugs.webkit.org/show_bug.cgi?id=50489 7 8 * WebCoreSupport/FrameLoaderClientWinCE.cpp: 9 (WebKit::FrameLoaderClientWinCE::finishedLoading): 10 1 11 2010-12-06 Patrick Gansterer <paroga@webkit.org> 2 12 -
trunk/WebKit/wince/WebCoreSupport/FrameLoaderClientWinCE.cpp
r70986 r73392 451 451 { 452 452 if (!m_pluginView) { 453 FrameLoader* loader = documentLoader->frameLoader(); 454 loader->writer()->setEncoding(m_response.textEncodingName(), false); 453 documentLoader->writer()->setEncoding(m_response.textEncodingName(), false); 455 454 return; 456 455 } -
trunk/WebKit/wx/ChangeLog
r73088 r73392 1 2010-12-06 Nate Chapin <japhet@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Update calls to DocumentWriter. 6 https://bugs.webkit.org/show_bug.cgi?id=50489 7 8 * WebKitSupport/FrameLoaderClientWx.cpp: 9 (WebCore::FrameLoaderClientWx::finishedLoading): 10 1 11 2010-12-01 Jia Pu <jpu@apple.com> 2 12 -
trunk/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp
r70894 r73392 435 435 if (!m_pluginView) { 436 436 if (m_firstData) { 437 FrameLoader* fl = loader->frameLoader(); 438 fl->writer()->setEncoding(m_response.textEncodingName(), false); 437 loader->writer()->setEncoding(m_response.textEncodingName(), false); 439 438 m_firstData = false; 440 439 }
Note: See TracChangeset
for help on using the changeset viewer.