Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: third_party/WebKit/Source/core/css/FontFace.cpp

Issue 1615133002: Implement API for accessing fonts installed locally on the system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add file reading failure checking. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6f908043004e40ca67323933b181fe063ba08cd5..82f8f30a06a578a0dbaab256e20f7f75e4734c05 100644
--- a/third_party/WebKit/Source/core/css/FontFace.cpp
+++ b/third_party/WebKit/Source/core/css/FontFace.cpp
@@ -643,4 +643,9 @@ bool FontFace::hasPendingActivity() const
return m_status == Loading && executionContext() && !executionContext()->activeDOMObjectsAreStopped();
}
+ScriptPromise FontFace::binaryData(ScriptState* scriptState) const
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
esprehn 2016/02/09 19:29:56 we really should support this for web fonts...
Daniel Nishi 2016/02/11 00:23:50 I'll investigate this. For a first pass, it should
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698