Commit 46633d3f authored by mrowe@apple.com's avatar mrowe@apple.com

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):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bcf22bdc
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.
......
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment