Changeset 18765 in webkit
- Timestamp:
- Jan 11, 2007 4:34:26 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r18764 r18765 1 2007-01-11 Lars Knoll <lars@trolltech.com> 2 3 Reviewed by Darin. 4 5 Start using the loader in the Qt port. 6 7 * loader/FrameLoader.cpp: 8 (WebCore::FrameLoader::clear): 9 (WebCore::FrameLoader::URL): 10 (WebCore::FrameLoader::createEmptyDocument): 11 * loader/qt/FrameLoaderQt.cpp: 12 (WebCore::FrameLoader::setTitle): 13 (WebCore::FrameLoader::originalRequestURL): 14 (WebCore::FrameLoader::referrer): 15 (WebCore::FrameLoader::checkLoadCompleteForThisFrame): 16 * page/qt/FrameQtClient.cpp: 17 (WebCore::FrameQtClient::openURL): 18 1 19 2007-01-11 Darin Adler <darin@apple.com> 2 20 -
trunk/WebCore/loader/FrameLoader.cpp
r18764 r18765 719 719 m_needsClear = false; 720 720 721 #if !PLATFORM(MAC) 721 #if !PLATFORM(MAC) && !PLATFORM(QT) 722 722 // FIXME: Remove this after making other platforms do loading more like Mac. 723 723 detachChildren(); 724 724 #endif 725 725 726 726 if (m_frame->document()) { 727 727 m_frame->document()->cancelParsing(); … … 2515 2515 KURL FrameLoader::URL() const 2516 2516 { 2517 #if PLATFORM(QT)2518 if (!activeDocumentLoader())2519 return KURL();2520 #endif2521 2517 return activeDocumentLoader()->URL(); 2522 2518 } … … 2694 2690 } 2695 2691 2696 #if PLATFORM(MAC) 2692 #if PLATFORM(MAC) || PLATFORM(QT) 2697 2693 void FrameLoader::submitForm(const FrameLoadRequest& request, Event* event) 2698 2694 { … … 2732 2728 } 2733 2729 #endif 2734 2730 2735 2731 String FrameLoader::userAgent() const 2736 2732 { … … 2743 2739 // it does nothing if we already have a document, and just creates an 2744 2740 // empty one if we have no document at all. 2745 #if PLATFORM(MAC) 2741 #if PLATFORM(MAC) || PLATFORM(QT) 2746 2742 if (!m_frame->document()) { 2747 2743 loadEmptyDocumentSynchronously(); 2748 2744 updateBaseURLForEmptyDocument(); 2749 }2750 #elif PLATFORM(QT)2751 if (!m_frame->document()) {2752 begin();2753 end();2754 2745 } 2755 2746 #endif -
trunk/WebCore/loader/qt/FrameLoaderQt.cpp
r18744 r18765 53 53 #include "HTMLElement.h" 54 54 #include "HTMLFormElement.h" 55 #include "HistoryItem.h" 55 56 #include "JSLock.h" 56 57 #include "MouseEventWithHitTestResults.h" … … 79 80 namespace WebCore { 80 81 81 void FrameLoader::submitForm(const FrameLoadRequest& frameLoadRequest, Event*)82 {83 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION84 // FIXME: We'd like to remove this altogether and fix the multiple form submission issue another way.85 // We do not want to submit more than one form from the same page,86 // nor do we want to submit a single form more than once.87 // This flag prevents these from happening; not sure how other browsers prevent this.88 // The flag is reset in each time we start handle a new mouse or key down event, and89 // also in setView since this part may get reused for a page from the back/forward cache.90 // The form multi-submit logic here is only needed when we are submitting a form that affects this frame.91 // FIXME: Frame targeting is only one of the ways the submission could end up doing something other92 // than replacing this frame's content, so this check is flawed. On the other hand, the check is hardly93 // needed any more now that we reset m_submittedFormURL on each mouse or key down event.94 Frame* target = m_frame->tree()->find(frameLoadRequest.frameName());95 if (m_frame->tree()->isDescendantOf(target)) {96 if (m_submittedFormURL == frameLoadRequest.resourceRequest().url())97 return;98 m_submittedFormURL = frameLoadRequest.resourceRequest().url();99 }100 #endif101 102 RefPtr<FormData> formData = frameLoadRequest.resourceRequest().httpBody();103 if (formData && !formData->isEmpty() && QtFrame(m_frame)->client())104 QtFrame(m_frame)->client()->submitForm(frameLoadRequest.resourceRequest().httpMethod(),105 frameLoadRequest.resourceRequest().url(),106 formData);107 108 clearRecordedFormValues();109 }110 111 void FrameLoader::urlSelected(const FrameLoadRequest& frameLoadRequest, Event*)112 {113 const ResourceRequest& request = frameLoadRequest.resourceRequest();114 115 if (!QtFrame(m_frame)->client())116 return;117 118 QtFrame(m_frame)->client()->openURL(request.url());119 }120 82 121 83 void FrameLoader::setTitle(const String& title) 122 84 { 123 client()->setTitle(title, URL());85 documentLoader()->setTitle(title); 124 86 } 125 87 … … 150 112 KURL FrameLoader::originalRequestURL() const 151 113 { 152 notImplemented(); 153 return KURL(); 114 return activeDocumentLoader()->initialRequest().url(); 154 115 } 155 116 … … 162 123 String FrameLoader::referrer() const 163 124 { 164 notImplemented(); 165 return String(); 125 return documentLoader()->request().httpReferrer(); 166 126 } 167 127 … … 171 131 { 172 132 ASSERT(m_client->hasWebView()); 173 //notImplemented();174 133 175 134 switch (m_state) { 176 case FrameStateProvisional: { 135 case FrameStateProvisional: { 136 if (m_delegateIsHandlingProvisionalLoadError) 137 return; 138 139 RefPtr<DocumentLoader> pdl = m_provisionalDocumentLoader; 140 if (!pdl) 141 return; 142 143 // If we've received any errors we may be stuck in the provisional state and actually complete. 144 const ResourceError& error = pdl->mainDocumentError(); 145 if (error.isNull()) 146 return; 147 148 // Check all children first. 149 RefPtr<HistoryItem> item; 150 if (isBackForwardLoadType(loadType()) && m_frame == m_frame->page()->mainFrame()) 151 item = m_currentHistoryItem; 152 153 bool shouldReset = true; 154 if (!pdl->isLoadingInAPISense()) { 155 m_delegateIsHandlingProvisionalLoadError = true; 156 m_client->dispatchDidFailProvisionalLoad(error); 157 m_delegateIsHandlingProvisionalLoadError = false; 158 159 // FIXME: can stopping loading here possibly have any effect, if isLoading is false, 160 // which it must be to be in this branch of the if? And is it OK to just do a full-on 161 // stopAllLoaders instead of stopLoadingSubframes? 162 stopLoadingSubframes(); 163 pdl->stopLoading(); 164 165 // Finish resetting the load state, but only if another load hasn't been started by the 166 // delegate callback. 167 if (pdl == m_provisionalDocumentLoader) 168 clearProvisionalLoad(); 169 else if (m_documentLoader) { 170 KURL unreachableURL = m_documentLoader->unreachableURL(); 171 if (!unreachableURL.isEmpty() && unreachableURL == pdl->request().url()) 172 shouldReset = false; 173 } 174 } 175 if (shouldReset && item && m_frame->page()) 176 m_frame->page()->backForwardList()->goToItem(item.get()); 177 178 return; 179 } 180 181 case FrameStateCommittedPage: { 182 DocumentLoader* dl = m_documentLoader.get(); 183 if (dl->isLoadingInAPISense()) 184 return; 185 186 markLoadComplete(); 187 188 // FIXME: Is this subsequent work important if we already navigated away? 189 // Maybe there are bugs because of that, or extra work we can skip because 190 // the new page is ready. 191 192 m_client->forceLayoutForNonHTML(); 193 194 // If the user had a scroll point, scroll to it, overriding the anchor point if any. 195 if ((isBackForwardLoadType(m_loadType) || m_loadType == FrameLoadTypeReload) 196 && m_frame->page() && m_frame->page()->backForwardList()) 197 restoreScrollPositionAndViewState(); 198 199 const ResourceError& error = dl->mainDocumentError(); 200 if (!error.isNull()) 201 m_client->dispatchDidFailLoad(error); 202 else 203 m_client->dispatchDidFinishLoad(); 204 205 m_client->progressCompleted(); 206 return; 207 } 208 209 case FrameStateComplete: 210 // Even if already complete, we might have set a previous item on a frame that 211 // didn't do any data loading on the past transaction. Make sure to clear these out. 212 m_client->frameLoadCompleted(); 213 return; 177 214 } 178 215 179 case FrameStateCommittedPage: { 180 DocumentLoader* dl = m_documentLoader.get(); 181 if (!dl || dl->isLoadingInAPISense()) 182 return; 183 184 markLoadComplete(); 185 186 // FIXME: Is this subsequent work important if we already navigated away? 187 // Maybe there are bugs because of that, or extra work we can skip because 188 // the new page is ready. 189 190 m_client->forceLayoutForNonHTML(); 191 192 // If the user had a scroll point, scroll to it, overriding the anchor point if any. 193 // if ((isBackForwardLoadType(m_loadType) || m_loadType == FrameLoadTypeReload) 194 // && m_client->hasBackForwardList()) 195 // m_client->restoreScrollPositionAndViewState(); 196 197 // if (error) 198 // m_client->dispatchDidFailLoad(error); 199 // else 200 m_client->dispatchDidFinishLoad(); 201 202 m_client->progressCompleted(); 203 return; 204 } 205 206 case FrameStateComplete: 207 // Even if already complete, we might have set a previous item on a frame that 208 // didn't do any data loading on the past transaction. Make sure to clear these out. 209 m_client->frameLoadCompleted(); 210 return; 211 } 212 216 ASSERT_NOT_REACHED(); 213 217 } 214 218 -
trunk/WebCore/page/qt/FrameQtClient.cpp
r18744 r18765 73 73 ASSERT(m_frame); 74 74 75 // m_frame->loader()->load(url); 76 m_frame->loader()->didOpenURL(url); 77 78 if (!m_frame->document()) { 79 m_frame->loader()->createEmptyDocument(); 80 m_frame->loader()->didOpenURL(url); 81 } 82 83 84 ASSERT(m_frame->document()); 85 86 ResourceRequest request(url); 87 RefPtr<ResourceHandle> loader = ResourceHandle::create(request, this, m_frame, false); 88 loader.get()->ref(); 75 m_frame->loader()->load(url); 89 76 } 90 77 -
trunk/WebKitQt/ChangeLog
r18757 r18765 1 2007-01-11 Lars Knoll <lars@trolltech.com> 2 3 Reviewed by Darin 4 5 Start using the loader in the Qt port. 6 7 * QtLauncher/main.cpp: 8 (main): 9 * WebCoreSupport/FrameLoaderClientQt.cpp: 10 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 11 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt): 12 (WebCore::FrameLoaderClientQt::setFrame): 13 (WebCore::FrameLoaderClientQt::detachFrameLoader): 14 (WebCore::FrameLoaderClientQt::makeDocumentView): 15 (WebCore::FrameLoaderClientQt::makeRepresentation): 16 (WebCore::FrameLoaderClientQt::setCopiesOnScroll): 17 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 18 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 19 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 20 (WebCore::FrameLoaderClientQt::progressStarted): 21 (WebCore::FrameLoaderClientQt::progressCompleted): 22 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 23 (WebCore::FrameLoaderClientQt::clearArchivedResources): 24 (WebCore::FrameLoaderClientQt::canShowMIMEType): 25 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 26 (WebCore::FrameLoaderClientQt::provisionalLoadStarted): 27 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 28 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 29 (WebCore::FrameLoaderClientQt::canHandleRequest): 30 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 31 (WebCore::FrameLoaderClientQt::canCachePage): 32 (WebCore::FrameLoaderClientQt::committedLoad): 33 (WebCore::FrameLoaderClientQt::cancelledError): 34 (WebCore::FrameLoaderClientQt::cannotShowURLError): 35 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 36 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 37 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 38 (WebCore::FrameLoaderClientQt::shouldFallBack): 39 (WebCore::FrameLoaderClientQt::createDocumentLoader): 40 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 41 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 42 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 43 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 44 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 45 (WebCore::FrameLoaderClientQt::willUseArchive): 46 * WebCoreSupport/FrameLoaderClientQt.h: 47 1 48 2007-01-11 George Staikos <staikos@kde.org> 2 49 -
trunk/WebKitQt/QtLauncher/main.cpp
r18196 r18765 89 89 Page* page = new Page(new ChromeClientQt(), new ContextMenuClientQt(), 90 90 new EditorClientQt()); 91 Frame* frame = new FrameQt(page, 0, new FrameQtClient(), new FrameLoaderClientQt()); 91 FrameLoaderClientQt *frameLoaderClient = new FrameLoaderClientQt(); 92 FrameQt* frame = new FrameQt(page, 0, new FrameQtClient(), frameLoaderClient); 93 frameLoaderClient->setFrame(frame); 92 94 93 95 FrameView* frameView = new FrameView(frame); -
trunk/WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp
r18650 r18765 30 30 #include "FrameLoaderClientQt.h" 31 31 #include "DocumentLoader.h" 32 #include "ResourceResponse.h" 33 #include "qdebug.h" 32 34 33 35 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", __FILE__, __LINE__, __FUNCTION__); } while(0) 34 36 37 35 38 namespace WebCore 36 39 { 37 40 38 41 FrameLoaderClientQt::FrameLoaderClientQt() 39 { 40 notImplemented(); 42 : m_frame(0) 43 { 41 44 } 42 45 … … 44 47 FrameLoaderClientQt::~FrameLoaderClientQt() 45 48 { 46 notImplemented(); 47 } 48 49 } 50 51 void FrameLoaderClientQt::setFrame(FrameQt *frame) 52 { 53 m_frame = frame; 54 } 49 55 50 56 void FrameLoaderClientQt::detachFrameLoader() 51 57 { 52 notImplemented();58 m_frame = 0; 53 59 } 54 60 … … 119 125 void FrameLoaderClientQt::makeDocumentView() 120 126 { 121 notImplemented(); 127 qDebug() << "FrameLoaderClientQt::makeDocumentView" << m_frame->document(); 128 129 // if (!m_frame->document()) 130 // m_frame->loader()->createEmptyDocument(); 122 131 } 123 132 … … 125 134 void FrameLoaderClientQt::makeRepresentation(DocumentLoader*) 126 135 { 127 notImplemented();136 // don't need this for now I think. 128 137 } 129 138 … … 179 188 void FrameLoaderClientQt::setCopiesOnScroll() 180 189 { 181 notImplemented();190 // apparently mac specific 182 191 } 183 192 … … 278 287 void FrameLoaderClientQt::dispatchDidStartProvisionalLoad() 279 288 { 280 notImplemented();289 // we're not interested in this neither I think 281 290 } 282 291 … … 314 323 void FrameLoaderClientQt::cancelPolicyCheck() 315 324 { 316 notImplemented();317 } 318 319 320 void FrameLoaderClientQt::dispatchWillSubmitForm(FramePolicyFunction ,325 // don't need to do anything here as long as we don't start doing asyncronous policy checks 326 } 327 328 329 void FrameLoaderClientQt::dispatchWillSubmitForm(FramePolicyFunction function, 321 330 PassRefPtr<FormState>) 322 331 { 323 notImplemented(); 332 // FIXME: This is surely too simple 333 if (!m_frame) 334 return; 335 (m_frame->loader()->*function)(PolicyUse); 324 336 } 325 337 … … 358 370 void FrameLoaderClientQt::progressStarted() 359 371 { 360 notImplemented();372 // no progress notification for now 361 373 } 362 374 … … 364 376 void FrameLoaderClientQt::progressCompleted() 365 377 { 366 notImplemented();367 } 368 369 370 void FrameLoaderClientQt::setMainFrameDocumentReady(bool )371 { 372 notImplemented();378 // no progress notification for now 379 } 380 381 382 void FrameLoaderClientQt::setMainFrameDocumentReady(bool b) 383 { 384 // this is only interesting once we provide an external API for the DOM 373 385 } 374 386 … … 419 431 void FrameLoaderClientQt::clearArchivedResources() 420 432 { 421 notImplemented();433 // don't think we need to do anything here currently 422 434 } 423 435 … … 425 437 bool FrameLoaderClientQt::canShowMIMEType(const String& MIMEType) const 426 438 { 427 notImplemented(); 428 return false; 429 } 430 431 432 bool FrameLoaderClientQt::representationExistsForURLScheme( 433 const String& URLScheme) const 434 { 435 notImplemented(); 439 // FIXME: This is not good enough in the general case 440 qDebug() << "FrameLoaderClientQt::canShowMIMEType" << MIMEType; 441 return true; 442 } 443 444 445 bool FrameLoaderClientQt::representationExistsForURLScheme(const String& URLScheme) const 446 { 447 notImplemented(); 448 qDebug() << " scheme is" << URLScheme; 436 449 return false; 437 450 } … … 459 472 void FrameLoaderClientQt::provisionalLoadStarted() 460 473 { 461 notImplemented();474 // don't need to do anything here 462 475 } 463 476 … … 484 497 void FrameLoaderClientQt::prepareForDataSourceReplacement() 485 498 { 486 notImplemented();499 m_frame->loader()->detachChildren(); 487 500 } 488 501 … … 506 519 void FrameLoaderClientQt::frameLoaderDestroyed() 507 520 { 508 notImplemented(); 521 m_frame = 0; 522 delete this; 509 523 } 510 524 511 525 bool FrameLoaderClientQt::canHandleRequest(const WebCore::ResourceRequest&) const 512 526 { 513 notImplemented();527 return true; 514 528 } 515 529 … … 537 551 { 538 552 notImplemented(); 553 return false; 539 554 } 540 555 … … 551 566 bool FrameLoaderClientQt::canCachePage() const 552 567 { 553 notImplemented(); 568 // don't do any caching for now 569 return false; 554 570 } 555 571 … … 559 575 } 560 576 561 void FrameLoaderClientQt::committedLoad(WebCore::DocumentLoader*, const char*, int) 562 { 563 notImplemented(); 577 void FrameLoaderClientQt::committedLoad(WebCore::DocumentLoader* loader, const char* data, int length) 578 { 579 qDebug() << "FrameLoaderClientQt::committedLoad" << length; 580 if (!m_frame) 581 return; 582 FrameLoader *fl = loader->frameLoader(); 583 fl->setEncoding(m_response.textEncodingName(), false); 584 fl->addData(data, length); 564 585 } 565 586 … … 567 588 { 568 589 notImplemented(); 590 return ResourceError(); 569 591 } 570 592 … … 572 594 { 573 595 notImplemented(); 596 return ResourceError(); 574 597 } 575 598 … … 577 600 { 578 601 notImplemented(); 602 return ResourceError(); 579 603 } 580 604 … … 582 606 { 583 607 notImplemented(); 608 return ResourceError(); 584 609 } 585 610 … … 587 612 { 588 613 notImplemented(); 614 return ResourceError(); 589 615 } 590 616 … … 592 618 { 593 619 notImplemented(); 594 } 595 596 WTF::PassRefPtr<WebCore::DocumentLoader> FrameLoaderClientQt::createDocumentLoader(const WebCore::ResourceRequest&) 597 { 598 notImplemented(); 620 return false; 621 } 622 623 WTF::PassRefPtr<WebCore::DocumentLoader> FrameLoaderClientQt::createDocumentLoader(const WebCore::ResourceRequest& request) 624 { 625 RefPtr<DocumentLoader> loader = new DocumentLoader(request); 626 return loader.release(); 599 627 } 600 628 … … 604 632 } 605 633 606 void FrameLoaderClientQt::dispatchWillSendRequest(WebCore::DocumentLoader*, void*, WebCore::ResourceRequest&, const WebCore::ResourceResponse&) 607 { 608 notImplemented(); 609 } 610 611 void FrameLoaderClientQt::dispatchDidReceiveResponse(WebCore::DocumentLoader*, void*, const WebCore::ResourceResponse&) 612 { 613 notImplemented(); 634 void FrameLoaderClientQt::dispatchWillSendRequest(WebCore::DocumentLoader*, void*, WebCore::ResourceRequest& request, const WebCore::ResourceResponse& response) 635 { 636 // seems like the Mac code doesn't do anything here by default neither 637 qDebug() << "FrameLoaderClientQt::dispatchWillSendRequest" << request.isNull() << request.url().url(); 638 } 639 640 void FrameLoaderClientQt::dispatchDidReceiveResponse(WebCore::DocumentLoader*, void*, const WebCore::ResourceResponse& response) 641 { 642 643 m_response = response; 644 m_firstData = true; 645 qDebug() << " got response from" << response.url().url(); 614 646 } 615 647 … … 649 681 } 650 682 651 void FrameLoaderClientQt::dispatchDecidePolicyForMIMEType(void (WebCore::FrameLoader::*)(WebCore::PolicyAction), const WebCore::String&, const WebCore::ResourceRequest&) 652 { 653 notImplemented(); 654 } 655 656 void FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction(void (WebCore::FrameLoader::*)(WebCore::PolicyAction), const WebCore::NavigationAction&, const WebCore::ResourceRequest&, const WebCore::String&) 657 { 658 notImplemented(); 659 } 660 661 void FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(void (WebCore::FrameLoader::*)(WebCore::PolicyAction), const WebCore::NavigationAction&, const WebCore::ResourceRequest&) 662 { 663 notImplemented(); 683 void FrameLoaderClientQt::dispatchDecidePolicyForMIMEType(FramePolicyFunction function, const WebCore::String&, const WebCore::ResourceRequest&) 684 { 685 if (!m_frame) 686 return; 687 // FIXME: This is maybe too simple 688 (m_frame->loader()->*function)(PolicyUse); 689 } 690 691 void FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const WebCore::NavigationAction&, const WebCore::ResourceRequest&, const WebCore::String&) 692 { 693 if (!m_frame) 694 return; 695 // FIXME: This is maybe too simple 696 (m_frame->loader()->*function)(PolicyIgnore); 697 } 698 699 void FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(FramePolicyFunction function, const WebCore::NavigationAction&, const WebCore::ResourceRequest&) 700 { 701 if (!m_frame) 702 return; 703 // FIXME: This is maybe too simple 704 (m_frame->loader()->*function)(PolicyUse); 664 705 } 665 706 … … 692 733 { 693 734 notImplemented(); 694 } 695 696 697 } 698 699 735 return false; 736 } 737 738 739 } 740 741 -
trunk/WebKitQt/WebCoreSupport/FrameLoaderClientQt.h
r18650 r18765 34 34 #include "FrameLoader.h" 35 35 #include "Shared.h" 36 #include "ResourceResponse.h" 36 37 37 38 namespace WebCore { … … 50 51 FrameLoaderClientQt(); 51 52 ~FrameLoaderClientQt(); 53 void setFrame(FrameQt *frame); 52 54 virtual void detachFrameLoader(); 53 55 … … 179 181 virtual void dispatchDidFailLoad(const WebCore::ResourceError&); 180 182 virtual WebCore::Frame* dispatchCreatePage(); 181 virtual void dispatchDecidePolicyForMIMEType( void (WebCore::FrameLoader::*)(WebCore::PolicyAction), const WebCore::String&, const WebCore::ResourceRequest&);182 virtual void dispatchDecidePolicyForNewWindowAction( void (WebCore::FrameLoader::*)(WebCore::PolicyAction), const WebCore::NavigationAction&, const WebCore::ResourceRequest&, const WebCore::String&);183 virtual void dispatchDecidePolicyForNavigationAction( void (WebCore::FrameLoader::*)(WebCore::PolicyAction), const WebCore::NavigationAction&, const WebCore::ResourceRequest&);183 virtual void dispatchDecidePolicyForMIMEType(FramePolicyFunction function, const WebCore::String&, const WebCore::ResourceRequest&); 184 virtual void dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function, const WebCore::NavigationAction&, const WebCore::ResourceRequest&, const WebCore::String&); 185 virtual void dispatchDecidePolicyForNavigationAction(FramePolicyFunction function, const WebCore::NavigationAction&, const WebCore::ResourceRequest&); 184 186 virtual void dispatchUnableToImplementPolicy(const WebCore::ResourceError&); 185 187 virtual void incrementProgress(void*, const WebCore::ResourceResponse&); … … 191 193 // FIXME: This should probably not be here, but it's needed for the tests currently 192 194 virtual void partClearedInBegin(); 193 195 196 197 private: 198 Frame *m_frame; 199 ResourceResponse m_response; 200 bool m_firstData; 194 201 }; 195 202 -
trunk/WebKitTools/ChangeLog
r18640 r18765 1 2007-01-11 Lars Knoll <lars@trolltech.com> 2 3 Reviewed by Darin. 4 5 Adjust to loader changes. 6 7 * DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.cpp: 8 (WebCore::DumpRenderTree::DumpRenderTree): 9 1 10 2007-01-06 George Staikos <staikos@kde.org> 2 11 -
trunk/WebKitTools/DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.cpp
r18519 r18765 79 79 Page* page = new Page(new ChromeClientQt(), new ContextMenuClientQt(), new EditorClientQt()); 80 80 m_frame = new FrameQt(page, 0, new FrameQtClient(), m_client); 81 m_client->setFrame(m_frame); 81 82 82 83 FrameView* view = new FrameView(m_frame);
Note: See TracChangeset
for help on using the changeset viewer.