Skip to content

Commit

Permalink
Merge r221835 - Fix double resolve assertion in FontFaceSet seen whil…
Browse files Browse the repository at this point in the history
…e running tests

https://bugs.webkit.org/show_bug.cgi?id=176525

Reviewed by Brent Fulgham.

* css/FontFaceSet.cpp:
(WebCore::FontFaceSet::FontFaceSet): Only resolve the promise if the CSSFontFaceSet
is already loaded. Otherwise, we will resolve it later when it calls completedLoading.
  • Loading branch information
darinadler authored and carlosgcampos committed Oct 16, 2017
1 parent 089002b commit 5c6caac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,14 @@
2017-09-07 Darin Adler <darin@apple.com>

Fix double resolve assertion in FontFaceSet seen while running tests
https://bugs.webkit.org/show_bug.cgi?id=176525

Reviewed by Brent Fulgham.

* css/FontFaceSet.cpp:
(WebCore::FontFaceSet::FontFaceSet): Only resolve the promise if the CSSFontFaceSet
is already loaded. Otherwise, we will resolve it later when it calls completedLoading.

2017-09-08 Dean Jackson <dino@apple.com>

gl.detachShader breaks shader program
Expand Down
3 changes: 2 additions & 1 deletion Source/WebCore/css/FontFaceSet.cpp
Expand Up @@ -63,8 +63,9 @@ FontFaceSet::FontFaceSet(Document& document, CSSFontFaceSet& backing)
, m_backing(backing)
, m_readyPromise(*this, &FontFaceSet::readyPromiseResolve)
{
m_readyPromise.resolve(*this);
m_backing->addClient(*this);
if (m_backing->status() == CSSFontFaceSet::Status::Loaded)
m_readyPromise.resolve(*this);
}

FontFaceSet::~FontFaceSet()
Expand Down

0 comments on commit 5c6caac

Please sign in to comment.