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

Changeset 245300 in webkit


Ignore:
Timestamp:
May 14, 2019, 1:03:46 PM (7 years ago)
Author:
Alan Bujtas
Message:

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.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245299 r245300  
     12019-05-14  Zalan Bujtas  <zalan@apple.com>
     2
     3        Do not try to issue repaint while the render tree is being destroyed.
     4        https://bugs.webkit.org/show_bug.cgi?id=197461
     5        <rdar://problem/50368992>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * http/tests/svg/crash-on-reload-with-filter-expected.txt: Added.
     10        * http/tests/svg/crash-on-reload-with-filter.html: Added.
     11        * http/tests/svg/resources/finishTest.html: Added.
     12
    1132019-05-14  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r245299 r245300  
     12019-05-14  Zalan Bujtas  <zalan@apple.com>
     2
     3        Do not try to issue repaint while the render tree is being destroyed.
     4        https://bugs.webkit.org/show_bug.cgi?id=197461
     5        <rdar://problem/50368992>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Test: http/tests/svg/crash-on-reload-with-filter.html
     10
     11        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.
     12        Also during full render tree destruction the inline tree state is undefined. We should avoid accessing it.
     13
     14        * rendering/svg/RenderSVGResourceContainer.cpp:
     15        (WebCore::RenderSVGResourceContainer::markAllClientLayersForInvalidation):
     16
    1172019-05-14  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp

    r240237 r245300  
    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.