1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00

DDC fix for Edge

Patch from zjd.

R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2780903004 .
This commit is contained in:
Vijay Menon 2017-03-29 12:22:42 -07:00
parent b4dbe8eba0
commit 84864e3415
10 changed files with 24 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -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") {