From 987375cc11b6c76b43ff41aaea05454c18612672 Mon Sep 17 00:00:00 2001 From: "darin@apple.com" Date: Wed, 25 Mar 2009 14:36:31 +0000 Subject: [PATCH] 2009-03-25 Darin Adler Reviewed by John Sullivan. Tidy up LegacyWebArchive a bit. And don't include favicons in web archives when they are being used only for selections, not an entire document. * WebCore.base.exp: Remove exported function that's not used in WebKit. * loader/archive/cf/LegacyWebArchive.cpp: (WebCore::LegacyWebArchive::createPropertyListRepresentation): Made a static member function so it can share private things with other member functions. Added some FIXME comments to a branch of code I think is dead. Changed boolean argument into a named one. Renamed to match other similar functions. (WebCore::LegacyWebArchive::createResourceResponseFromPropertyListData): Ditto. (WebCore::LegacyWebArchive::createResource): Ditto. (WebCore::LegacyWebArchive::create): Merged the create and init functions. (WebCore::LegacyWebArchive::rawDataRepresentation): Added some assertions because we should never fail to write (we can fail to read). (WebCore::LegacyWebArchive::createResourceResponseFromMacArchivedData): Made a static member function as above. (WebCore::LegacyWebArchive::createFromSelection): Ditto. (WebCore::LegacyWebArchive::create): Iterate the vector with indices rather than iterators. Only include the favicon if the first node is the document since we don't want to include the favicon when copying and pasting. * loader/archive/cf/LegacyWebArchive.h: Made one of the create functions private. Made the Mac-specific functions be static member functions. Made other helpers be static member functions. Removed the nit function. * loader/archive/cf/LegacyWebArchiveMac.mm: (WebCore::LegacyWebArchive::createResourceResponseFromMacArchivedData): Updated comment and made this a static member function. (WebCore::LegacyWebArchive::createPropertyListRepresentation): Ditto. Also made it so we only type cast in one place. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41973 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/ChangeLog | 36 +++++++ WebCore/WebCore.base.exp | 1 - WebCore/loader/archive/cf/LegacyWebArchive.cpp | 116 +++++++++++------------ WebCore/loader/archive/cf/LegacyWebArchive.h | 27 +++--- WebCore/loader/archive/cf/LegacyWebArchiveMac.mm | 20 ++-- 5 files changed, 118 insertions(+), 82 deletions(-) diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index d8171e2..a80f7ee 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,5 +1,41 @@ 2009-03-25 Darin Adler + Reviewed by John Sullivan. + + Tidy up LegacyWebArchive a bit. And don't include favicons in web archives when + they are being used only for selections, not an entire document. + + * WebCore.base.exp: Remove exported function that's not used in WebKit. + + * loader/archive/cf/LegacyWebArchive.cpp: + (WebCore::LegacyWebArchive::createPropertyListRepresentation): Made a static member + function so it can share private things with other member functions. Added some FIXME + comments to a branch of code I think is dead. Changed boolean argument into a named + one. Renamed to match other similar functions. + (WebCore::LegacyWebArchive::createResourceResponseFromPropertyListData): Ditto. + (WebCore::LegacyWebArchive::createResource): Ditto. + (WebCore::LegacyWebArchive::create): Merged the create and init functions. + (WebCore::LegacyWebArchive::rawDataRepresentation): Added some assertions because + we should never fail to write (we can fail to read). + (WebCore::LegacyWebArchive::createResourceResponseFromMacArchivedData): Made a static + member function as above. + (WebCore::LegacyWebArchive::createFromSelection): Ditto. + (WebCore::LegacyWebArchive::create): Iterate the vector with indices rather than + iterators. Only include the favicon if the first node is the document since we don't + want to include the favicon when copying and pasting. + + * loader/archive/cf/LegacyWebArchive.h: Made one of the create functions private. + Made the Mac-specific functions be static member functions. Made other helpers be + static member functions. Removed the nit function. + + * loader/archive/cf/LegacyWebArchiveMac.mm: + (WebCore::LegacyWebArchive::createResourceResponseFromMacArchivedData): Updated + comment and made this a static member function. + (WebCore::LegacyWebArchive::createPropertyListRepresentation): Ditto. Also made + it so we only type cast in one place. + +2009-03-25 Darin Adler + Reviewed by David Hyatt. Bug 24740: crash in RenderSlider::setPositionFromValue when calling pause() after setting