summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/css/CSSFontFace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/CSSFontFace.cpp')
-rw-r--r--Source/WebCore/css/CSSFontFace.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/css/CSSFontFace.cpp b/Source/WebCore/css/CSSFontFace.cpp
index 552e99cfa..008ef8594 100644
--- a/Source/WebCore/css/CSSFontFace.cpp
+++ b/Source/WebCore/css/CSSFontFace.cpp
@@ -276,6 +276,8 @@ void CSSFontFace::setStatus(Status newStatus)
void CSSFontFace::fontLoaded(CSSFontFaceSource&)
{
+ Ref<CSSFontFace> protectedThis(*this);
+
// If the font is already in the cache, CSSFontFaceSource may report it's loaded before it is added here as a source.
// Let's not pump the state machine until we've got all our sources. font() and load() are smart enough to act correctly
// when a source is failed or succeeded before we have asked it to load.