Unreviewed follow-up fix for r250693 to address assertion hits in debug.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Oct 2019 18:16:32 +0000 (18:16 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Oct 2019 18:16:32 +0000 (18:16 +0000)
commit54ab4bc065eb9684350d0996a0fd49a53df67668
tree6fe00d74e0a218942682b94c50c25e4a1a254203
parent2b54303c10a2acc785cc2a79117c868ab263944a
Unreviewed follow-up fix for r250693 to address assertion hits in debug.

* css/FontFaceSet.cpp:
(WebCore::FontFaceSet::didFirstLayout):
(WebCore::FontFaceSet::completedLoading):
Make sure the ready promise is not already resolved before resolving it.

* platform/SuspendableTaskQueue.cpp:
(WebCore::SuspendableTaskQueue::SuspendableTaskQueue):
* platform/SuspendableTaskQueue.h:
(WebCore::SuspendableTaskQueue::create):
Add a new constructor that takes in a Document since the ActiveDOMObject's
constructor taking a Document has some useful logic.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/FontFaceSet.cpp
Source/WebCore/platform/SuspendableTaskQueue.cpp
Source/WebCore/platform/SuspendableTaskQueue.h