2007-12-16 Grace Kloba <klobag@gmail.com>
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2007 01:26:46 +0000 (01:26 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2007 01:26:46 +0000 (01:26 +0000)
        Reviewed by Darin Adler.

        Fix http://bugs.webkit.org/show_bug.cgi?id=16433.
        Bug 16433: LOW_BANDWIDTH_DISPLAY build is broken

        * dom/Document.cpp:
        (WebCore::Document::Document):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::addLowBandwidthDisplayRequest):
        (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28784 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/dom/Document.cpp
WebCore/loader/FrameLoader.cpp

index acf6cc8..8352c8f 100644 (file)
@@ -1,3 +1,16 @@
+2007-12-16  Grace Kloba  <klobag@gmail.com>
+
+        Reviewed by Darin Adler.
+
+        Fix http://bugs.webkit.org/show_bug.cgi?id=16433.
+        Bug 16433: LOW_BANDWIDTH_DISPLAY build is broken
+
+        * dom/Document.cpp:
+        (WebCore::Document::Document):
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::addLowBandwidthDisplayRequest):
+        (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
+
 2007-12-16  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Darin.
index ec23715..d31ef1c 100644 (file)
@@ -280,11 +280,11 @@ Document::Document(DOMImplementation* impl, Frame* frame, bool isXHTML)
     , m_inPageCache(false)
     , m_isAllowedToLoadLocalResources(false)
     , m_useSecureKeyboardEntryWhenActive(false)
+    , m_isXHTML(isXHTML)
+    , m_numNodeLists(0)
 #if USE(LOW_BANDWIDTH_DISPLAY)
     , m_inLowBandwidthDisplay(false)
 #endif
-    , m_isXHTML(isXHTML)
-    , m_numNodeLists(0)
 {
     m_document.resetSkippingRef(this);
 
index 5711cfe..5e76a57 100644 (file)
@@ -4723,6 +4723,7 @@ bool FrameLoader::addLowBandwidthDisplayRequest(CachedResource* cache)
             cache->ref(this);
             return true;
         case CachedResource::ImageResource:
+        case CachedResource::FontResource:
 #if ENABLE(XSLT)
         case CachedResource::XSLStyleSheet:
 #endif
@@ -4780,14 +4781,14 @@ void FrameLoader::switchOutLowBandwidthDisplayIfReady()
             
             // similar to begin(), should be refactored to share more code
             RefPtr<Document> newDoc = DOMImplementation::instance()->
-                createDocument(m_responseMIMEType, m_frame->view(), m_frame->inViewSourceMode());
+                createDocument(m_responseMIMEType, m_frame, m_frame->inViewSourceMode());
             m_frame->setDocument(newDoc);
             newDoc->setURL(m_URL.url());
             newDoc->setBaseURL(m_URL.url());
             if (m_decoder)
                 newDoc->setDecoder(m_decoder.get());
             restoreDocumentState();
-            partClearedInBegin();         
+            dispatchWindowObjectAvailable();         
             newDoc->implicitOpen();
 
             // swap DocLoader ownership