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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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 01fca723b68b397540dabd669ffa03ebfa113754..59fe9ddfae6c4a3826fbd743ee8d22d52c442704 100644
--- a/third_party/WebKit/Source/core/css/FontFace.cpp
+++ b/third_party/WebKit/Source/core/css/FontFace.cpp
@@ -81,8 +81,10 @@ FontFace* FontFace::Create(ExecutionContext* context,
return Create(context, family, source.getAsString(), descriptors);
if (source.isArrayBuffer())
return Create(context, family, source.getAsArrayBuffer(), descriptors);
- if (source.isArrayBufferView())
- return Create(context, family, source.getAsArrayBufferView(), descriptors);
+ if (source.isArrayBufferView()) {
+ return Create(context, family, source.getAsArrayBufferView().View(),
+ descriptors);
+ }
NOTREACHED();
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698