From 1d6de4e8b9343847d16c72fb087a69744dbe942e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 6 Dec 2011 08:49:22 +0000 Subject: [PATCH] Fix problem where images loaded using the background-image CSS attribute sometimes do not display on Mac after browsing back to the page (issue #447). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@403 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- patch/patch.cfg | 5 +++++ patch/patches/webcore_cachedresource.patch | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 patch/patches/webcore_cachedresource.patch diff --git a/patch/patch.cfg b/patch/patch.cfg index 632f560dd..70bb6382e 100644 --- a/patch/patch.cfg +++ b/patch/patch.cfg @@ -31,6 +31,11 @@ patches = [ 'name': 'webcore_subresloader', 'path': '../third_party/WebKit/Source/WebCore/loader/', }, + { + # https://bugs.webkit.org/show_bug.cgi?id=73760 + 'name': 'webcore_cachedresource', + 'path': '../third_party/WebKit/Source/WebCore/loader/cache/', + }, { # http://code.google.com/p/chromiumembedded/issues/detail?id=364 'name': 'spi_webcore_364', diff --git a/patch/patches/webcore_cachedresource.patch b/patch/patches/webcore_cachedresource.patch new file mode 100644 index 000000000..e0cb15c6f --- /dev/null +++ b/patch/patches/webcore_cachedresource.patch @@ -0,0 +1,14 @@ +Index: CachedResource.cpp +=================================================================== +--- CachedResource.cpp (revision 100508) ++++ CachedResource.cpp (working copy) +@@ -365,6 +365,9 @@ + + void CachedResource::addClient(CachedResourceClient* client) + { ++ if (isPurgeable()) ++ makePurgeable(false); ++ + addClientToSet(client); + didAddClient(client); + }