⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245921 in webkit


Ignore:
Timestamp:
May 30, 2019, 5:30:01 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r245300. rdar://problem/51264763

Do not try to issue repaint while the render tree is being destroyed.
https://bugs.webkit.org/show_bug.cgi?id=197461
<rdar://problem/50368992>

Reviewed by Simon Fraser.

Source/WebCore:

Test: http/tests/svg/crash-on-reload-with-filter.html

We don't need to compute repaint rects when the render tree is getting torn down. We'll issue a full repaint at some point.
Also during full render tree destruction the inline tree state is undefined. We should avoid accessing it.

  • rendering/svg/RenderSVGResourceContainer.cpp: (WebCore::RenderSVGResourceContainer::markAllClientLayersForInvalidation):

LayoutTests:

  • http/tests/svg/crash-on-reload-with-filter-expected.txt: Added.
  • http/tests/svg/crash-on-reload-with-filter.html: Added.
  • http/tests/svg/resources/finishTest.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245300 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/LayoutTests/ChangeLog

    r245917 r245921  
     12019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r245300. rdar://problem/51264763
     4
     5    Do not try to issue repaint while the render tree is being destroyed.
     6    https://bugs.webkit.org/show_bug.cgi?id=197461
     7    <rdar://problem/50368992>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    Source/WebCore:
     12   
     13    Test: http/tests/svg/crash-on-reload-with-filter.html
     14   
     15    We don't need to compute repaint rects when the render tree is getting torn down. We'll issue a full repaint at some point.
     16    Also during full render tree destruction the inline tree state is undefined. We should avoid accessing it.
     17   
     18    * rendering/svg/RenderSVGResourceContainer.cpp:
     19    (WebCore::RenderSVGResourceContainer::markAllClientLayersForInvalidation):
     20   
     21    LayoutTests:
     22   
     23    * http/tests/svg/crash-on-reload-with-filter-expected.txt: Added.
     24    * http/tests/svg/crash-on-reload-with-filter.html: Added.
     25    * http/tests/svg/resources/finishTest.html: Added.
     26   
     27    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     28
     29    2019-05-14  Zalan Bujtas  <zalan@apple.com>
     30
     31            Do not try to issue repaint while the render tree is being destroyed.
     32            https://bugs.webkit.org/show_bug.cgi?id=197461
     33            <rdar://problem/50368992>
     34
     35            Reviewed by Simon Fraser.
     36
     37            * http/tests/svg/crash-on-reload-with-filter-expected.txt: Added.
     38            * http/tests/svg/crash-on-reload-with-filter.html: Added.
     39            * http/tests/svg/resources/finishTest.html: Added.
     40
    1412019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
    242
  • branches/safari-607-branch/Source/WebCore/ChangeLog

    r245916 r245921  
     12019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r245300. rdar://problem/51264763
     4
     5    Do not try to issue repaint while the render tree is being destroyed.
     6    https://bugs.webkit.org/show_bug.cgi?id=197461
     7    <rdar://problem/50368992>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    Source/WebCore:
     12   
     13    Test: http/tests/svg/crash-on-reload-with-filter.html
     14   
     15    We don't need to compute repaint rects when the render tree is getting torn down. We'll issue a full repaint at some point.
     16    Also during full render tree destruction the inline tree state is undefined. We should avoid accessing it.
     17   
     18    * rendering/svg/RenderSVGResourceContainer.cpp:
     19    (WebCore::RenderSVGResourceContainer::markAllClientLayersForInvalidation):
     20   
     21    LayoutTests:
     22   
     23    * http/tests/svg/crash-on-reload-with-filter-expected.txt: Added.
     24    * http/tests/svg/crash-on-reload-with-filter.html: Added.
     25    * http/tests/svg/resources/finishTest.html: Added.
     26   
     27    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     28
     29    2019-05-14  Zalan Bujtas  <zalan@apple.com>
     30
     31            Do not try to issue repaint while the render tree is being destroyed.
     32            https://bugs.webkit.org/show_bug.cgi?id=197461
     33            <rdar://problem/50368992>
     34
     35            Reviewed by Simon Fraser.
     36
     37            Test: http/tests/svg/crash-on-reload-with-filter.html
     38
     39            We don't need to compute repaint rects when the render tree is getting torn down. We'll issue a full repaint at some point.
     40            Also during full render tree destruction the inline tree state is undefined. We should avoid accessing it.
     41
     42            * rendering/svg/RenderSVGResourceContainer.cpp:
     43            (WebCore::RenderSVGResourceContainer::markAllClientLayersForInvalidation):
     44
    1452019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
    246
  • branches/safari-607-branch/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp

    r232018 r245921  
    123123void RenderSVGResourceContainer::markAllClientLayersForInvalidation()
    124124{
     125    if (m_clientLayers.isEmpty())
     126        return;
     127    if ((*m_clientLayers.begin())->renderer().renderTreeBeingDestroyed())
     128        return;
    125129    for (auto* clientLayer : m_clientLayers)
    126130        clientLayer->filterNeedsRepaint();
Note: See TracChangeset for help on using the changeset viewer.