2010-02-01 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher. Web Inspector: Syntax highlighting in source view of Resources pane stops half-way. There were two problems here: (1) styles for html highlighter were not added into the css file (they used to be injected manually in the SourceFrame before). (2) 'Tag' needed to be lexer's state, not parser's. Otherwise unbalanced quotes in the text nodes were matching too match into the string tokens. https://bugs.webkit.org/show_bug.cgi?id=34359 * inspector/front-end/NativeTextViewer.js: (WebInspector.NativeTextViewer.prototype._createLineDivs): (WebInspector.NativeTextViewer.prototype._lineHeight): (WebInspector.NativeTextViewer.prototype.initFontMetrics): * inspector/front-end/SourceFrame.js: (WebInspector.SourceFrame.prototype._createEditorIfNeeded): * inspector/front-end/SourceHTMLTokenizer.js: (WebInspector.SourceHTMLTokenizer): (WebInspector.SourceHTMLTokenizer.prototype.nextToken): * inspector/front-end/SourceHTMLTokenizer.re2js: * inspector/front-end/TextEditor.js: (WebInspector.TextEditor.prototype.initFontMetrics): (WebInspector.TextEditor.prototype._registerShortcuts): * inspector/front-end/inspectorSyntaxHighlight.css: git-svn-id: svn://svn.chromium.org/blink/trunk@54139 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
This diff is collapsed.
Please register or sign in to comment