⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187350 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 11:39:41 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Add custom parameter lists for new DOM append/prepend/before/after/replaceWith methods
https://bugs.webkit.org/show_bug.cgi?id=147257

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-07-24
Reviewed by Timothy Hatcher.

  • UserInterface/Models/NativeFunctionParameters.js:
Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r187280 r187350  
     12015-07-24  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Add custom parameter lists for new DOM append/prepend/before/after/replaceWith methods
     4        https://bugs.webkit.org/show_bug.cgi?id=147257
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Models/NativeFunctionParameters.js:
     9
    1102015-07-23  Matt Baker  <mattbaker@apple.com>
    211
  • trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js

    r185054 r187350  
    21152115        querySelectorAll: "selectors",
    21162116    };
    2117 
    21182117    Object.assign(WebInspector.NativePrototypeFunctionParameters.Element, ElementQueries);
    21192118    Object.assign(WebInspector.NativePrototypeFunctionParameters.Document, ElementQueries);
     2119
     2120    var ChildNode = {
     2121        after: "[node|string]...",
     2122        before: "[node|string]...",
     2123        replaceWith: "[node|string]...",
     2124    };
     2125    Object.assign(WebInspector.NativePrototypeFunctionParameters.Element, ChildNode)
     2126    Object.assign(WebInspector.NativePrototypeFunctionParameters.CharacterData, ChildNode);
     2127
     2128    var ParentNode = {
     2129        append: "[node|string]...",
     2130        prepend: "[node|string]...",
     2131    };
     2132    Object.assign(WebInspector.NativePrototypeFunctionParameters.Element, ParentNode);
     2133    Object.assign(WebInspector.NativePrototypeFunctionParameters.Document, ParentNode);
     2134    Object.assign(WebInspector.NativePrototypeFunctionParameters.DocumentFragment, ParentNode);
    21202135})();
Note: See TracChangeset for help on using the changeset viewer.