Changeset 201650 in webkit


Ignore:
Timestamp:
Jun 3, 2016 11:36:13 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Joseph Pecoraro <Joseph Pecoraro> 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.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r201630 r201650  
     12016-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
    1132016-06-02  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js

    r201096 r201650  
    839839    },
    840840
    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=\" \"]",
    845846        __proto__: null,
    846847    },
     
    953954        namedItem: "[name]",
    954955        setCustomValidity: "error",
     956        __proto__: null,
     957    },
     958
     959    HTMLSlotElement: {
     960        assignedNodes: "[options]",
    955961        __proto__: null,
    956962    },
     
    21432149        __proto__: null,
    21442150    },
    2145 };
    2146 
    2147 (function() {
    2148     var EventTarget = {
     2151
     2152    EventTarget: {
    21492153        addEventListener: "type, listener, [useCapture=false]",
    21502154        removeEventListener: "type, listener, [useCapture=false]",
    21512155        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;
    21542164    var eventTargetTypes = [
    21552165        "Node", "Window",
    2156         "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader", "FontLoader",
     2166        "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader",
    21572167        "MediaController", "MediaStreamTrack", "MessagePort", "Notification", "RTCDTMFSender",
    21582168        "SpeechSynthesisUtterance", "TextTrack", "TextTrackCue", "TextTrackList",
     
    21602170        "WorkerGlobalScope", "XMLHttpRequest", "webkitMediaStream", "webkitRTCPeerConnection"
    21612171    ];
    2162 
    21632172    for (var type of eventTargetTypes)
    21642173        Object.assign(WebInspector.NativePrototypeFunctionParameters[type], EventTarget);
Note: See TracChangeset for help on using the changeset viewer.