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

Changeset 245929 in webkit


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

Apply patch. rdar://problem/50801017

Location:
branches/safari-607-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebCore/ChangeLog

    r245927 r245929  
     12019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Apply patch. rdar://problem/50801017
     4
     5    2019-05-30  Brent Fulgham  <bfulgham@apple.com>
     6
     7            Improve safety of HitTest logic
     8            https://bugs.webkit.org/show_bug.cgi?id=198030
     9            <rdar://problem/50801017>
     10
     11            Reviewed by Alan Bujtas.
     12
     13            Don't use the RenderView during hit testing until after all
     14            layout is complete.
     15
     16            * rendering/RenderView.cpp:
     17            (WebCore::RenderView::hitTest):
     18
    1192019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
    220
  • branches/safari-607-branch/Source/WebCore/rendering/RenderView.cpp

    r239461 r245929  
    145145bool RenderView::hitTest(const HitTestRequest& request, const HitTestLocation& location, HitTestResult& result)
    146146{
     147    auto weakRenderView = makeWeakPtr(this);
     148
    147149    document().updateLayout();
     150
     151    if (!weakRenderView)
     152        return false;
    148153   
    149154#if !ASSERT_DISABLED
Note: See TracChangeset for help on using the changeset viewer.