Changeset 201650 in webkit
- Timestamp:
- Jun 3, 2016 11:36:13 AM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r201630 r201650 1 2016-06-03 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Update NativeFunctionParameters (FontFaceSet, HTMLSlotElement, EventTarget) 4 https://bugs.webkit.org/show_bug.cgi?id=158333 5 6 Reviewed by Brian Burg. 7 8 * UserInterface/Models/NativeFunctionParameters.js: 9 Replace FontLoader with FontFaceSet. Add HTMLSlotElement API. 10 EventTarget is now actually in the prototype chain, so add it as 11 a first class citizen and keep mixing it in for legacy backends. 12 1 13 2016-06-02 Joseph Pecoraro <pecoraro@apple.com> 2 14 -
trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js
r201096 r201650 839 839 }, 840 840 841 FontLoader: { 842 checkFont: "font, [text]", 843 loadFont: "params", 844 notifyWhenFontsReady: "callback", 841 FontFaceSet: { 842 add: "font", 843 check: "font, [text=\" \"]", 844 delete: "font", 845 load: "font, [text=\" \"]", 845 846 __proto__: null, 846 847 }, … … 953 954 namedItem: "[name]", 954 955 setCustomValidity: "error", 956 __proto__: null, 957 }, 958 959 HTMLSlotElement: { 960 assignedNodes: "[options]", 955 961 __proto__: null, 956 962 }, … … 2143 2149 __proto__: null, 2144 2150 }, 2145 }; 2146 2147 (function() { 2148 var EventTarget = { 2151 2152 EventTarget: { 2149 2153 addEventListener: "type, listener, [useCapture=false]", 2150 2154 removeEventListener: "type, listener, [useCapture=false]", 2151 2155 dispatchEvent: "event", 2152 }; 2153 2156 __proto__: null, 2157 }, 2158 }; 2159 2160 (function() { 2161 // COMPATIBILITY (iOS 9): EventTarget properties were on instances, now there 2162 // is an actual EventTarget prototype in the chain. 2163 var EventTarget = WebInspector.NativePrototypeFunctionParameters.EventTarget; 2154 2164 var eventTargetTypes = [ 2155 2165 "Node", "Window", 2156 "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader", "FontLoader",2166 "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader", 2157 2167 "MediaController", "MediaStreamTrack", "MessagePort", "Notification", "RTCDTMFSender", 2158 2168 "SpeechSynthesisUtterance", "TextTrack", "TextTrackCue", "TextTrackList", … … 2160 2170 "WorkerGlobalScope", "XMLHttpRequest", "webkitMediaStream", "webkitRTCPeerConnection" 2161 2171 ]; 2162 2163 2172 for (var type of eventTargetTypes) 2164 2173 Object.assign(WebInspector.NativePrototypeFunctionParameters[type], EventTarget);
Note: See TracChangeset
for help on using the changeset viewer.