Skip to content
  • aroben@apple.com's avatar
    Use prototypes/constructors from the inspected page when operating on... · 6a4003b8
    aroben@apple.com authored
            Use prototypes/constructors from the inspected page when operating on objects from the inspected page
    
            Reviewed by Tim Hatcher.
    
            * page/inspector/Console.js:
            (WebInspector.ConsolePanel._format): Use the Node constructor from the
            inspected Window with the instanceof operator.
            * page/inspector/ElementsPanel.js:
            (WebInspector.DOMNodeTreeElement._attributeEditingCommitted): Use the
            Element prototype from the inspected Window instead of the Element
            prototype from this Window.
            * page/inspector/inspector.js:
            (WebInspector.performSearch): Ditto for Document prototype.
            * page/inspector/utilities.js:
            (Object.type): Now takes an optional Window parameter that is used to
            find the built-in constructors.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    6a4003b8