Changeset 247227 in webkit


Ignore:
Timestamp:
Jul 8, 2019 12:54:50 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

WKWebView fails to render when another view uses CoreImage filters
https://bugs.webkit.org/show_bug.cgi?id=199488
<rdar://problem/52695825>

Reviewed by Dean Jackson.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::layerHostingModeDidChange):
Update m_layerHostingMode when it changes, even if we can't message
the Web Content process. This ensures that the next time we launch
a Web Content process, WebPageCreationParameters will have the correct
layer hosting mode, and is the usual pattern for such things.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247223 r247227  
     12019-07-08  Tim Horton  <timothy_horton@apple.com>
     2
     3        WKWebView fails to render when another view uses CoreImage filters
     4        https://bugs.webkit.org/show_bug.cgi?id=199488
     5        <rdar://problem/52695825>
     6
     7        Reviewed by Dean Jackson.
     8
     9        * UIProcess/WebPageProxy.cpp:
     10        (WebKit::WebPageProxy::layerHostingModeDidChange):
     11        Update m_layerHostingMode when it changes, even if we can't message
     12        the Web Content process. This ensures that the next time we launch
     13        a Web Content process, WebPageCreationParameters will have the correct
     14        layer hosting mode, and is the usual pattern for such things.
     15
    1162019-07-08  Wenson Hsieh  <wenson_hsieh@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r247161 r247227  
    18481848void WebPageProxy::layerHostingModeDidChange()
    18491849{
    1850     if (!hasRunningProcess())
    1851         return;
    1852 
    18531850    LayerHostingMode layerHostingMode = pageClient().viewLayerHostingMode();
    18541851    if (m_layerHostingMode == layerHostingMode)
     
    18561853
    18571854    m_layerHostingMode = layerHostingMode;
    1858     m_process->send(Messages::WebPage::SetLayerHostingMode(layerHostingMode), m_pageID);
     1855
     1856    if (hasRunningProcess())
     1857        m_process->send(Messages::WebPage::SetLayerHostingMode(layerHostingMode), m_pageID);
    18591858}
    18601859
Note: See TracChangeset for help on using the changeset viewer.