Skip to content
  • yurys@chromium.org's avatar
    Web Inspector: exception in heap profiler when expanding a class in summary view · dca970e2
    yurys@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=83883
    
    Moved all DOM-specific inspector utilities into DOMExtension.js
    
    Merged BinarySearch.js and PartialQuickSort.js into utilities.js, HeapSnapshotWorker.js now
    imports utilities.js which contains all required routines.
    
    Reviewed by Pavel Feldman.
    
    * WebCore.gypi:
    * WebCore.vcproj/WebCore.vcproj:
    * inspector/compile-front-end.py:
    * inspector/front-end/BinarySearch.js: Removed.
    * inspector/front-end/DOMExtension.js: Copied from Source/WebCore/inspector/front-end/utilities.js.
    (Node.prototype.rangeOfWord):
    (Node.prototype.traverseNextTextNode):
    (Node.prototype.rangeBoundaryForOffset):
    (Element.prototype.removeStyleClass):
    (Element.prototype.removeMatchingStyleClasses):
    (Element.prototype.addStyleClass):
    (Element.prototype.hasStyleClass):
    (Element.prototype.positionAt):
    (Element.prototype.pruneEmptyTextNodes):
    (Element.prototype.isScrolledToBottom):
    (Node.prototype.enclosingNodeOrSelfWithNodeNameInArray):
    (Node.prototype.enclosingNodeOrSelfWithNodeName):
    (Node.prototype.enclosingNodeOrSelfWithClass):
    (Node.prototype.enclosingNodeWithClass):
    (Element.prototype.query):
    (Element.prototype.removeChildren):
    (Element.prototype.isInsertionCaretInside):
    (Element.prototype.createChild):
    (Element.prototype.totalOffsetLeft):
    (Element.prototype.totalOffsetTop):
    (Element.prototype.totalOffset):
    (Element.prototype.scrollOffset):
    (AnchorBox):
    (Element.prototype.offsetRelativeToWindow):
    (Element.prototype.boxInWindow):
    (Element.prototype.setTextAndTitle):
    (Event.prototype.consume):
    (Text.prototype.select):
    (Element.prototype.selectionLeftOffset):
    (Node.prototype.isAncestor):
    (Node.prototype.isDescendant):
    (Node.prototype.isSelfOrAncestor):
    (Node.prototype.isSelfOrDescendant):
    (Node.prototype.traverseNextNode):
    (Node.prototype.traversePreviousNode):
    (HTMLTextAreaElement.prototype.moveCursorToEnd):
    (isEnterKey):
    (consumeEvent):
    (highlightSearchResult):
    (highlightSearchResults):
    (highlightRangesWithStyleClass):
    (applyDomChanges):
    (revertDomChanges):
    * inspector/front-end/HeapSnapshot.js: Fixed a couple of js compiler warnings
    by describing structure of heap snapshot header in the protocol.
    (WebInspector.HeapSnapshotLoader.prototype.pushJSONChunk):
    * inspector/front-end/HeapSnapshotWorker.js:
    * inspector/front-end/PartialQuickSort.js: Removed.
    * inspector/front-end/WebKit.qrc:
    * inspector/front-end/inspector.html:
    * inspector/front-end/utilities.js:
    (.):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    dca970e2