Skip to content
Permalink
Browse files
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):


Canonical link: https://commits.webkit.org/184580@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Andreas Kling committed Jan 28, 2017
1 parent b97616c commit efcfc1b4a8cd6a19839166c91e7021129a737fbb
Showing 2 changed files with 13 additions and 2 deletions.
@@ -1,3 +1,16 @@
2017-01-28 Andreas Kling <akling@apple.com>

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):

2017-01-28 Andreas Kling <akling@apple.com>

REGRESSION(r196383): Automatic shrink-to-fit of RuleSet no longer works.
@@ -2941,8 +2941,6 @@ void FrameLoader::dispatchUnloadEvents(UnloadEventPolicy unloadEventPolicy)
}
}
m_pageDismissalEventBeingDispatched = PageDismissalType::None;
if (m_frame.document())
m_frame.document()->updateStyleIfNeeded();
m_wasUnloadEventEmitted = true;
}

0 comments on commit efcfc1b

Please sign in to comment.