2011-03-23 Jay Civelli <jcivelli@chromium.org>
authorjcivelli@chromium.org <jcivelli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Mar 2011 02:43:55 +0000 (02:43 +0000)
committerjcivelli@chromium.org <jcivelli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Mar 2011 02:43:55 +0000 (02:43 +0000)
commit3daf7405c9bfe448b960fb42ba3d67fe23c4548f
tree07ff02e4d79712a1d40e6486a027b5168773a390
parentb3ddc01f51c72d2f83bd23d59acd21f3cdc7e215
2011-03-23  Jay Civelli  <jcivelli@chromium.org>

        Reviewed by David Levin.

        Relanding:
        Moving the method that is used to retrieve all the resources in
        a page from the Chromium code (dom_operations.cc) to WebKit.
        https://bugs.webkit.org/show_bug.cgi?id=55859

        * WebKit.gyp:
        * public/WebPageSerializer.h:
        * public/WebURL.h:
        (WebKit::operator==):
        (WebKit::operator!=):
        * public/WebVector.h:
        (WebKit::WebVector::contains):
        * src/WebDataSourceImpl.cpp:
        (WebKit::WebDataSourceImpl::WebDataSourceImpl):
        * src/WebPageSerializer.cpp:
        (WebCore::getSubResourceURLFromElement):
        (WebCore::retrieveResourcesForElement):
        (WebCore::retrieveResourcesForFrame):
        (WebKit::WebPageSerializer::retrieveAllResources):
        * tests/WebFrameTest.cpp:
        * tests/WebPageSerializerTest.cpp: Added.
        * tests/data/pageserialization/awesome.png: Added.
        * tests/data/pageserialization/embed_iframe.html: Added.
        * tests/data/pageserialization/object_iframe.html: Added.
        * tests/data/pageserialization/simple_iframe.html: Added.
        * tests/data/pageserialization/simple_page.html: Added.
        * tests/data/pageserialization/top_frame.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@81846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/WebKit.gyp
Source/WebKit/chromium/public/WebPageSerializer.h
Source/WebKit/chromium/public/WebURL.h
Source/WebKit/chromium/public/WebVector.h
Source/WebKit/chromium/src/WebDataSourceImpl.cpp
Source/WebKit/chromium/src/WebPageSerializer.cpp
Source/WebKit/chromium/tests/WebFrameTest.cpp
Source/WebKit/chromium/tests/WebPageSerializerTest.cpp [new file with mode: 0644]
Source/WebKit/chromium/tests/data/pageserialization/awesome.png [new file with mode: 0644]
Source/WebKit/chromium/tests/data/pageserialization/embed_iframe.html [new file with mode: 0644]
Source/WebKit/chromium/tests/data/pageserialization/object_iframe.html [new file with mode: 0644]
Source/WebKit/chromium/tests/data/pageserialization/simple_iframe.html [new file with mode: 0644]
Source/WebKit/chromium/tests/data/pageserialization/simple_page.html [new file with mode: 0644]
Source/WebKit/chromium/tests/data/pageserialization/top_frame.html [new file with mode: 0755]