Changeset 211336 in webkit


Ignore:
Timestamp:
Jan 28, 2017 7:19:59 AM (7 years ago)
Author:
akling@apple.com
Message:

Avoid synchronous style recalc in dispatchUnloadEvents().
<https://webkit.org/b/167551>

Reviewed by Antti Koivisto.

It shouldn't be necessary to force a synchronous style resolution in an unloading document.
This call has been here since the import of KHTMLPart.

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::dispatchUnloadEvents):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211335 r211336  
     12017-01-28  Andreas Kling  <akling@apple.com>
     2
     3        Avoid synchronous style recalc in dispatchUnloadEvents().
     4        <https://webkit.org/b/167551>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        It shouldn't be necessary to force a synchronous style resolution in an unloading document.
     9        This call has been here since the import of KHTMLPart.
     10
     11        * loader/FrameLoader.cpp:
     12        (WebCore::FrameLoader::dispatchUnloadEvents):
     13
    1142017-01-28  Andreas Kling  <akling@apple.com>
    215
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r211256 r211336  
    29422942        }
    29432943        m_pageDismissalEventBeingDispatched = PageDismissalType::None;
    2944         if (m_frame.document())
    2945             m_frame.document()->updateStyleIfNeeded();
    29462944        m_wasUnloadEventEmitted = true;
    29472945    }
Note: See TracChangeset for help on using the changeset viewer.