Changeset 48034 in webkit


Ignore:
Timestamp:
Sep 3, 2009 4:10:16 PM (15 years ago)
Author:
beidson@apple.com
Message:

More partial work towards "Page Cache should support pages with Frames"
https://bugs.webkit.org/show_bug.cgi?id=13631

Reviewed by Sam Weinig.

Fix a bug where subframes weren't asked if they were cacheable.

No new tests, especially since page caching for frames isn't turned on yet.
A layout test will come in my next patch, which enables frames in the page cache.

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::canCachePageContainingThisFrame):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r48032 r48034  
     12009-09-03  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        More partial work towards "Page Cache should support pages with Frames"
     6        https://bugs.webkit.org/show_bug.cgi?id=13631
     7
     8        Fix a bug where subframes weren't asked if they were cacheable.
     9
     10        No new tests, especially since page caching for frames isn't turned on yet.
     11        A layout test will come in my next patch, which enables frames in the page cache.
     12
     13        * loader/FrameLoader.cpp:
     14        (WebCore::FrameLoader::canCachePageContainingThisFrame):
     15
    1162009-09-03  Adam Barth  <abarth@webkit.org>
    217
  • trunk/WebCore/loader/FrameLoader.cpp

    r48001 r48034  
    18121812bool FrameLoader::canCachePageContainingThisFrame()
    18131813{
     1814    for (Frame* child = m_frame->tree()->firstChild(); child; child = child->tree()->nextSibling()) {
     1815        if (!child->loader()->canCachePageContainingThisFrame())
     1816            return false;
     1817    }
     1818           
    18141819    return m_documentLoader
    18151820        && m_documentLoader->mainDocumentError().isNull()
Note: See TracChangeset for help on using the changeset viewer.