Document should throttle style recalc even when m_pendingStyleRecalcShouldForce is...
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2018 20:42:53 +0000 (20:42 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2018 20:42:53 +0000 (20:42 +0000)
commit76d75ac82ff2e6558e42acae536bad6d14f6d1e2
treede646ff704ec78d2bd87b2667f9907d45d64853e
parentc9ae25a91b8d5ff1da7f87d7f77ee1da4132ac9f
Document should throttle style recalc even when m_pendingStyleRecalcShouldForce is true.
https://bugs.webkit.org/show_bug.cgi?id=191695

Reviewed by Zalan Bujtas.

* dom/Document.cpp:
(WebCore::Document::scheduleStyleRecalc):

Don't test for m_pendingStyleRecalcShouldForce.

(WebCore::Document::hasPendingStyleRecalc const):
(WebCore::Document::hasPendingForcedStyleRecalc const):

Don't base the pending status of these function on whether the timer is running.
Instead check if the style is invalid.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp