FrameView::layoutTimerFired() should update style if needed before doing layout
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Mar 2015 01:04:05 +0000 (01:04 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Mar 2015 01:04:05 +0000 (01:04 +0000)
commit5398d2287828f46689fa0c8df4300f4cb0faab06
treeddd9f4aca4ca886d2973840a5e23254d6bde7b37
parent11aa798364dddae75b28fcbd6d995af8bc05991a
FrameView::layoutTimerFired() should update style if needed before doing layout
https://bugs.webkit.org/show_bug.cgi?id=141688

Reviewed by Andreas Kling.

If the style recalc timer has been scheduled to fire after the layout timer,
when the layout timer fires, we might as well just do the style recalc
too. The call to updateStyleIfNeeded() will cancel the pending style
recalc timer.

This doesn't have much impact on the number of layouts (measured via PLT)
but seems like a reasonable thing to do.

* page/FrameView.cpp:
(WebCore::FrameView::layoutTimerFired):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/FrameView.cpp