2011-03-17 Jay Civelli <jcivelli@chromium.org>
authorjcivelli@chromium.org <jcivelli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Mar 2011 19:49:26 +0000 (19:49 +0000)
committerjcivelli@chromium.org <jcivelli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Mar 2011 19:49:26 +0000 (19:49 +0000)
commit05b3abb93a9d5bb8f0d1ab8533c12742c41ac087
tree3b5ac0b26f9d43232cd97507343abc493dfd8fb7
parenteb43b2cbdab63f5ec7f131acce74d4a325462421
2011-03-17  Jay Civelli  <jcivelli@chromium.org>

        Reviewed by David Levin.

        Adding a contains method to Vector.
        https://bugs.webkit.org/show_bug.cgi?id=55859

        * wtf/Vector.h:
        (WTF::::operator):
        (WTF::::contains):
2011-03-17  Jay Civelli  <jcivelli@chromium.org>

        Reviewed by David Levin.

        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: 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@81377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/Vector.h
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: 0644]