Changeset 84437 in webkit
- Timestamp:
- Apr 20, 2011 4:50:20 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r84434 r84437 1 2011-04-20 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Don't discard backing stores for hung web processes 6 https://bugs.webkit.org/show_bug.cgi?id=59039 7 <rdar://problem/9237090> 8 9 * UIProcess/WebPageProxy.cpp: 10 (WebKit::WebPageProxy::viewStateDidChange): 11 (WebKit::WebPageProxy::processDidBecomeUnresponsive): 12 (WebKit::WebPageProxy::processDidBecomeResponsive): 13 Call updateBackingStoreDiscardableState. 14 15 (WebKit::WebPageProxy::updateBackingStoreDiscardableState): 16 Never mark the backing store as discardable if the web process is hung 17 1 18 2011-04-20 Maciej Stachowiak <mjs@apple.com> 2 19 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r84304 r84437 620 620 621 621 if (flags & (ViewWindowIsActive | ViewIsVisible)) 622 m_drawingArea->setBackingStoreIsDiscardable(!m_pageClient->isViewWindowActive() || !isViewVisible());622 updateBackingStoreDiscardableState(); 623 623 } 624 624 … … 2715 2715 void WebPageProxy::processDidBecomeUnresponsive() 2716 2716 { 2717 updateBackingStoreDiscardableState(); 2718 2717 2719 m_loaderClient.processDidBecomeUnresponsive(this); 2718 2720 } … … 2720 2722 void WebPageProxy::processDidBecomeResponsive() 2721 2723 { 2724 updateBackingStoreDiscardableState(); 2725 2722 2726 m_loaderClient.processDidBecomeResponsive(this); 2723 2727 } … … 3005 3009 } 3006 3010 3011 void WebPageProxy::updateBackingStoreDiscardableState() 3012 { 3013 bool isDiscardable; 3014 3015 if (!process()->responsivenessTimer()->isResponsive()) 3016 isDiscardable = false; 3017 else 3018 isDiscardable = !m_pageClient->isViewWindowActive() || !isViewVisible(); 3019 3020 m_drawingArea->setBackingStoreIsDiscardable(isDiscardable); 3021 } 3022 3007 3023 Color WebPageProxy::viewUpdatesFlashColor() 3008 3024 { -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r84304 r84437 705 705 void performDragControllerAction(DragControllerAction, WebCore::DragData*, const String& dragStorageName, const SandboxExtension::Handle&); 706 706 707 void updateBackingStoreDiscardableState(); 708 707 709 PageClient* m_pageClient; 708 710 WebLoaderClient m_loaderClient;
Note: See TracChangeset
for help on using the changeset viewer.