Index: third_party/WebKit/Source/core/css/FontFace.cpp |
diff --git a/third_party/WebKit/Source/core/css/FontFace.cpp b/third_party/WebKit/Source/core/css/FontFace.cpp |
index a7bb5391c6285bcfc4676f7fc424cf2899b54397..0e5afafac9369b4dff2c4776b850b93e46e4e057 100644 |
--- a/third_party/WebKit/Source/core/css/FontFace.cpp |
+++ b/third_party/WebKit/Source/core/css/FontFace.cpp |
@@ -615,9 +615,10 @@ void FontFace::initCSSFontFace(const unsigned char* data, size_t size) { |
RefPtr<SharedBuffer> buffer = SharedBuffer::create(data, size); |
BinaryDataFontFaceSource* source = |
new BinaryDataFontFaceSource(buffer.get(), m_otsParseMessage); |
- if (source->isValid()) |
- setLoadStatus(Loaded); |
- else |
+ if (source->isValid()) { |
+ m_cssFontFace->setLoadStatus(Loading); |
+ m_cssFontFace->setLoadStatus(Loaded); |
+ } else |
setError( |
DOMException::create(SyntaxError, "Invalid font data in ArrayBuffer.")); |
m_cssFontFace->addSource(source); |