Changeset 80190 in webkit
- Timestamp:
- Mar 2, 2011 5:38:21 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r80188 r80190 1 2011-03-02 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 WKPageSetMemoryCacheClientCallsEnabled doesn't persist if web process crashes 6 https://bugs.webkit.org/show_bug.cgi?id=55635 7 8 * Shared/WebPageCreationParameters.cpp: 9 (WebKit::WebPageCreationParameters::encode): 10 (WebKit::WebPageCreationParameters::decode): 11 Encode and decode areMemoryCacheClientCallsEnabled. 12 13 * Shared/WebPageCreationParameters.h: 14 Add areMemoryCacheClientCallsEnabled member variable. 15 16 * UIProcess/WebPageProxy.cpp: 17 (WebKit::WebPageProxy::WebPageProxy): 18 Initialize m_areMemoryCacheClientCallsEnabled. 19 20 (WebKit::WebPageProxy::setMemoryCacheClientCallsEnabled): 21 Update m_areMemoryCacheClientCallsEnabled. Send a message if necessary. 22 23 (WebKit::WebPageProxy::creationParameters): 24 Set areMemoryCacheClientCallsEnabled. 25 26 * WebProcess/WebPage/WebPage.cpp: 27 (WebKit::WebPage::WebPage): 28 Call WebPage::setMemoryCacheMessagesEnabled. 29 1 30 2011-03-02 Timothy Hatcher <timothy@apple.com> 2 31 -
trunk/Source/WebKit2/Shared/WebPageCreationParameters.cpp
r79803 r80190 44 44 encoder->encode(drawsBackground); 45 45 encoder->encode(drawsTransparentBackground); 46 encoder->encode(areMemoryCacheClientCallsEnabled); 46 47 encoder->encode(useFixedLayout); 47 48 encoder->encode(fixedLayoutSize); … … 81 82 if (!decoder->decode(parameters.drawsTransparentBackground)) 82 83 return false; 84 if (!decoder->decode(parameters.areMemoryCacheClientCallsEnabled)) 85 return false; 83 86 if (!decoder->decode(parameters.useFixedLayout)) 84 87 return false; -
trunk/Source/WebKit2/Shared/WebPageCreationParameters.h
r79803 r80190 59 59 bool drawsTransparentBackground; 60 60 61 bool areMemoryCacheClientCallsEnabled; 62 61 63 bool useFixedLayout; 62 64 WebCore::IntSize fixedLayoutSize; -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r80188 r80190 124 124 , m_drawsBackground(true) 125 125 , m_drawsTransparentBackground(false) 126 , m_areMemoryCacheClientCallsEnabled(true) 126 127 , m_useFixedLayout(false) 127 128 , m_isValid(true) … … 1097 1098 void WebPageProxy::setMemoryCacheClientCallsEnabled(bool memoryCacheClientCallsEnabled) 1098 1099 { 1100 if (m_areMemoryCacheClientCallsEnabled == memoryCacheClientCallsEnabled) 1101 return; 1102 1103 m_areMemoryCacheClientCallsEnabled = memoryCacheClientCallsEnabled; 1099 1104 process()->send(Messages::WebPage::SetMemoryCacheMessagesEnabled(memoryCacheClientCallsEnabled), m_pageID); 1100 1105 } … … 2598 2603 parameters.drawsBackground = m_drawsBackground; 2599 2604 parameters.drawsTransparentBackground = m_drawsTransparentBackground; 2605 parameters.areMemoryCacheClientCallsEnabled = m_areMemoryCacheClientCallsEnabled; 2600 2606 parameters.useFixedLayout = m_useFixedLayout; 2601 2607 parameters.fixedLayoutSize = m_fixedLayoutSize; -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r80188 r80190 663 663 bool m_drawsTransparentBackground; 664 664 665 bool m_areMemoryCacheClientCallsEnabled; 666 665 667 bool m_useFixedLayout; 666 668 WebCore::IntSize m_fixedLayoutSize; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r80188 r80190 199 199 setDrawsTransparentBackground(parameters.drawsTransparentBackground); 200 200 201 setMemoryCacheMessagesEnabled(parameters.areMemoryCacheClientCallsEnabled); 202 201 203 setActive(parameters.isActive); 202 204 setFocused(parameters.isFocused);
Note: See TracChangeset
for help on using the changeset viewer.