2010-01-29 Pavel Feldman <pfeldman@chromium.org>
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jan 2010 11:04:09 +0000 (11:04 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Jan 2010 11:04:09 +0000 (11:04 +0000)
commit45d06ce0c2312c94d19de8bbc31f1a5b42a726a9
tree8e9f2d0741122d4df1a8a663b6b353ddbe81c2f6
parent40389e19fd0fd045d89fddd56753b5ca21f4cf8d
2010-01-29  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: migrate to tokenizer-based highlighting in the Elements panel.

        https://bugs.webkit.org/show_bug.cgi?id=34273

        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * inspector/front-end/CSSSourceSyntaxHighlighter.js: Removed.
        * inspector/front-end/DOMSyntaxHighlighter.js: Added.
        (WebInspector.DOMSyntaxHighlighter):
        (WebInspector.DOMSyntaxHighlighter.prototype.createSpan):
        (WebInspector.DOMSyntaxHighlighter.prototype.syntaxHighlightNode):
        * inspector/front-end/ElementsTreeOutline.js:
        * inspector/front-end/JavaScriptSourceSyntaxHighlighter.js: Removed.
        * inspector/front-end/SourceCSSTokenizer.js:
        (WebInspector.SourceCSSTokenizer):
        (WebInspector.SourceCSSTokenizer.prototype.nextToken):
        * inspector/front-end/SourceCSSTokenizer.re2js:
        * inspector/front-end/SourceHTMLTokenizer.js:
        (WebInspector.SourceHTMLTokenizer):
        (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
        * inspector/front-end/SourceHTMLTokenizer.re2js:
        * inspector/front-end/SourceJavaScriptTokenizer.js:
        (WebInspector.SourceJavaScriptTokenizer):
        (WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
        * inspector/front-end/SourceJavaScriptTokenizer.re2js:
        * inspector/front-end/SourceSyntaxHighlighter.js: Removed.
        * inspector/front-end/SourceTokenizer.js: Added.
        (WebInspector.SourceTokenizer):
        (WebInspector.SourceTokenizer.prototype.set line):
        (WebInspector.SourceTokenizer.prototype.set condition):
        (WebInspector.SourceTokenizer.prototype.get condition):
        (WebInspector.SourceTokenizer.prototype.hasCondition):
        (WebInspector.SourceTokenizer.prototype.getLexCondition):
        (WebInspector.SourceTokenizer.prototype.setLexCondition):
        (WebInspector.SourceTokenizer.prototype._charAt):
        (WebInspector.SourceTokenizer.Registry):
        (WebInspector.SourceTokenizer.Registry.getInstance):
        (WebInspector.SourceTokenizer.Registry.prototype.getTokenizer):
        * inspector/front-end/TextEditorHighlighter.js:
        (WebInspector.TextEditorHighlighter):
        (WebInspector.TextEditorHighlighter.prototype.set mimeType):
        * inspector/front-end/WebKit.qrc:
        * inspector/front-end/inspector.html:
        LayoutTests:
        * inspector/syntax-highlight-css-expected.txt:
        * inspector/syntax-highlight-css.html:
        * inspector/syntax-highlight-javascript-expected.txt:
        * inspector/syntax-highlight-javascript.html:
        * inspector/syntax-highlight.js:
        (frontend_dumpSyntaxHighlight):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@54053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/syntax-highlight-css-expected.txt
LayoutTests/inspector/syntax-highlight-css.html
LayoutTests/inspector/syntax-highlight-javascript-expected.txt
LayoutTests/inspector/syntax-highlight-javascript.html
LayoutTests/inspector/syntax-highlight.js
WebCore/ChangeLog
WebCore/WebCore.gypi
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/inspector/front-end/CSSSourceSyntaxHighlighter.js [deleted file]
WebCore/inspector/front-end/DOMSyntaxHighlighter.js [new file with mode: 0644]
WebCore/inspector/front-end/ElementsTreeOutline.js
WebCore/inspector/front-end/JavaScriptSourceSyntaxHighlighter.js [deleted file]
WebCore/inspector/front-end/SourceCSSTokenizer.js
WebCore/inspector/front-end/SourceCSSTokenizer.re2js
WebCore/inspector/front-end/SourceHTMLTokenizer.js
WebCore/inspector/front-end/SourceHTMLTokenizer.re2js
WebCore/inspector/front-end/SourceJavaScriptTokenizer.js
WebCore/inspector/front-end/SourceJavaScriptTokenizer.re2js
WebCore/inspector/front-end/SourceSyntaxHighlighter.js [deleted file]
WebCore/inspector/front-end/SourceTokenizer.js [new file with mode: 0644]
WebCore/inspector/front-end/TextEditorHighlighter.js
WebCore/inspector/front-end/WebKit.qrc
WebCore/inspector/front-end/inspector.html