Title: [201650] trunk/Source/WebInspectorUI
Revision
201650
Author
[email protected]
Date
2016-06-03 11:36:13 -0700 (Fri, 03 Jun 2016)

Log Message

Web Inspector: Update NativeFunctionParameters (FontFaceSet, HTMLSlotElement, EventTarget)
https://bugs.webkit.org/show_bug.cgi?id=158333

Patch by Joseph Pecoraro <[email protected]> on 2016-06-03
Reviewed by Brian Burg.

* UserInterface/Models/NativeFunctionParameters.js:
Replace FontLoader with FontFaceSet. Add HTMLSlotElement API.
EventTarget is now actually in the prototype chain, so add it as
a first class citizen and keep mixing it in for legacy backends.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (201649 => 201650)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-06-03 18:22:10 UTC (rev 201649)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-06-03 18:36:13 UTC (rev 201650)
@@ -1,3 +1,15 @@
+2016-06-03  Joseph Pecoraro  <[email protected]>
+
+        Web Inspector: Update NativeFunctionParameters (FontFaceSet, HTMLSlotElement, EventTarget)
+        https://bugs.webkit.org/show_bug.cgi?id=158333
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Models/NativeFunctionParameters.js:
+        Replace FontLoader with FontFaceSet. Add HTMLSlotElement API.
+        EventTarget is now actually in the prototype chain, so add it as
+        a first class citizen and keep mixing it in for legacy backends.
+
 2016-06-02  Joseph Pecoraro  <[email protected]>
 
         Web Inspector: Modernize Array.prototype.every/some callsites to arrow functions

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js (201649 => 201650)


--- trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js	2016-06-03 18:22:10 UTC (rev 201649)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js	2016-06-03 18:36:13 UTC (rev 201650)
@@ -838,10 +838,11 @@
         __proto__: null,
     },
 
-    FontLoader: {
-        checkFont: "font, [text]",
-        loadFont: "params",
-        notifyWhenFontsReady: "callback",
+    FontFaceSet: {
+        add: "font",
+        check: "font, [text=\" \"]",
+        delete: "font",
+        load: "font, [text=\" \"]",
         __proto__: null,
     },
 
@@ -955,6 +956,11 @@
         __proto__: null,
     },
 
+    HTMLSlotElement: {
+        assignedNodes: "[options]",
+        __proto__: null,
+    },
+
     HTMLTableElement: {
         deleteRow: "[index]",
         insertRow: "[index]",
@@ -2142,24 +2148,27 @@
         updateIce: "configuration",
         __proto__: null,
     },
-};
 
-(function() {
-    var EventTarget = {
+    EventTarget: {
         addEventListener: "type, listener, [useCapture=false]",
         removeEventListener: "type, listener, [useCapture=false]",
         dispatchEvent: "event",
-    };
+        __proto__: null,
+    },
+};
 
+(function() {
+    // COMPATIBILITY (iOS 9): EventTarget properties were on instances, now there
+    // is an actual EventTarget prototype in the chain.
+    var EventTarget = WebInspector.NativePrototypeFunctionParameters.EventTarget;
     var eventTargetTypes = [
         "Node", "Window",
-        "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader", "FontLoader",
+        "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader",
         "MediaController", "MediaStreamTrack", "MessagePort", "Notification", "RTCDTMFSender",
         "SpeechSynthesisUtterance", "TextTrack", "TextTrackCue", "TextTrackList",
         "VideoTrackList", "WebKitMediaKeySession", "WebKitNamedFlow", "WebSocket",
         "WorkerGlobalScope", "XMLHttpRequest", "webkitMediaStream", "webkitRTCPeerConnection"
     ];
-
     for (var type of eventTargetTypes)
         Object.assign(WebInspector.NativePrototypeFunctionParameters[type], EventTarget);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to