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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart

Issue 2780903004: DDC fix for Edge (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
index b0ca1891d6ba154435a35b7053acf4c8a551752e..d286d36f055915bfb2b7a18dab219a7e4bd624ac 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
@@ -64,7 +64,10 @@ final global_ = JS(
window.AudioSourceNode = MediaElementAudioSourceNode.__proto__;
}
if (typeof FontFaceSet == "undefined") {
- window.FontFaceSet = document.fonts.__proto__.constructor;
+ // CSS Font Loading is not supported on Edge.
+ if (typeof document.fonts != "undefined") {
+ window.FontFaceSet = document.fonts.__proto__.constructor;
+ }
}
if (typeof MemoryInfo == "undefined") {
if (typeof window.performance.memory != "undefined") {
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698