1. 25 Feb, 2010 1 commit
    • pfeldman@chromium.org's avatar
      2010-02-25 Pavel Feldman <pfeldman@chromium.org> · 81cf3486
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: evaluate-on-hover does not work on HTML files.
      
              https://bugs.webkit.org/show_bug.cgi?id=35378
      
              * inspector/front-end/SourceCSSTokenizer.re2js:
              * inspector/front-end/SourceHTMLTokenizer.js:
              (WebInspector.SourceHTMLTokenizer):
              (WebInspector.SourceHTMLTokenizer.prototype.set line):
              (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttribute):
              (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttributeValue):
              (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttribute):
              (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttributeValue):
              (WebInspector.SourceHTMLTokenizer.prototype._attrValueTokenType):
              (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
              * inspector/front-end/SourceHTMLTokenizer.re2js:
              * inspector/front-end/SourceJavaScriptTokenizer.js:
              (WebInspector.SourceJavaScriptTokenizer):
              * inspector/front-end/SourceJavaScriptTokenizer.re2js:
              * inspector/front-end/SourceTokenizer.js:
              (WebInspector.SourceTokenizer.prototype.set condition):
              (WebInspector.SourceTokenizer.prototype.get condition):
              (WebInspector.SourceTokenizer.prototype.get subTokenizer):
              (WebInspector.SourceTokenizer.prototype.getLexCondition):
              (WebInspector.SourceTokenizer.prototype.setLexCondition):
              * inspector/front-end/TextEditorHighlighter.js:
              (WebInspector.TextEditorHighlighter):
              (WebInspector.TextEditorHighlighter.prototype.set mimeType):
              (WebInspector.TextEditorHighlighter.prototype.highlight):
              (WebInspector.TextEditorHighlighter.prototype._highlightInChunks):
              (WebInspector.TextEditorHighlighter.prototype._highlightLines):
              (WebInspector.TextEditorHighlighter.prototype._highlightLine):
              * inspector/front-end/TextViewer.js:
              (WebInspector.TextViewer.prototype._paintLine):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81cf3486
  2. 15 Feb, 2010 1 commit
  3. 02 Feb, 2010 1 commit
    • pfeldman@chromium.org's avatar
      2010-02-02 Pavel Feldman <pfeldman@chromium.org> · d72aeb04
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: URLs are not syntax-higlighted as links in source view.
      
              This change enables linkifier in the NativeTextViewer. It adds
              "linkify" and "a_node" parse states into the highlighter in order
              to detect links and distinguish between resource and external ones.
              Contains drive-by fix for the webkit-html-* styles and moves them to the
              common location.
      
              https://bugs.webkit.org/show_bug.cgi?id=34364
      
              * inspector/front-end/NativeTextViewer.js:
              (WebInspector.NativeTextViewer):
              (WebInspector.NativeTextViewer.prototype._createSpan):
              (WebInspector.NativeTextViewer.prototype._createLink):
              (WebInspector.NativeTextViewer.prototype._rewriteHref):
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame.prototype.setContent):
              (WebInspector.SourceFrame.prototype._createEditorIfNeeded):
              * inspector/front-end/SourceHTMLTokenizer.js:
              (WebInspector.SourceHTMLTokenizer):
              (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttribute):
              (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttributeValue):
              (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttribute):
              (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttributeValue):
              (WebInspector.SourceHTMLTokenizer.prototype._stringToken):
              (WebInspector.SourceHTMLTokenizer.prototype._attrValueTokenType):
              (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
              * inspector/front-end/SourceHTMLTokenizer.re2js:
              * inspector/front-end/SourceView.js:
              (WebInspector.SourceView.prototype._contentLoaded):
              * inspector/front-end/TextEditorHighlighter.js:
              (WebInspector.TextEditorHighlighter):
              * inspector/front-end/inspector.css:
              * inspector/front-end/inspectorSyntaxHighlight.css:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d72aeb04
  4. 01 Feb, 2010 1 commit
    • pfeldman@chromium.org's avatar
      2010-02-01 Pavel Feldman <pfeldman@chromium.org> · 5a7351cf
      pfeldman@chromium.org authored
              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: http://svn.webkit.org/repository/webkit/trunk@54139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a7351cf
  5. 29 Jan, 2010 1 commit
    • pfeldman@chromium.org's avatar
      2010-01-29 Pavel Feldman <pfeldman@chromium.org> · b6cee794
      pfeldman@chromium.org authored
              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: http://svn.webkit.org/repository/webkit/trunk@54053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6cee794
  6. 27 Jan, 2010 1 commit
    • pfeldman@chromium.org's avatar
      2010-01-27 Pavel Feldman <pfeldman@chromium.org> · 46dc797e
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: Improve SourceHTMLTokenizer so that it treats script tag well.
      
              https://bugs.webkit.org/show_bug.cgi?id=34177
      
              * inspector/front-end/SourceHTMLTokenizer.js:
              (WebInspector.SourceHTMLTokenizer):
              (WebInspector.SourceHTMLTokenizer.prototype._isAttribute):
              (WebInspector.SourceHTMLTokenizer.prototype._isAttributeValue):
              (WebInspector.SourceHTMLTokenizer.prototype._setAttributeValue):
              (WebInspector.SourceHTMLTokenizer.prototype._setAttribute):
              (WebInspector.SourceHTMLTokenizer.prototype._stringToken):
              (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
              * inspector/front-end/SourceHTMLTokenizer.re2js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46dc797e
  7. 26 Jan, 2010 1 commit
    • pfeldman@chromium.org's avatar
      2010-01-26 Pavel Feldman <pfeldman@chromium.org> · d1814d0e
      pfeldman@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Web Inspector: Implement HTML and CSS highlighters.
      
              https://bugs.webkit.org/show_bug.cgi?id=34144
      
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * inspector/front-end/JavaScriptTokenizer.js: Removed.
              * inspector/front-end/JavaScriptTokenizer.re2js: Removed.
              * inspector/front-end/SourceCSSTokenizer.js: Added.
              (WebInspector.SourceCSSTokenizer):
              (WebInspector.SourceCSSTokenizer.prototype._stringToken):
              (WebInspector.SourceCSSTokenizer.prototype._isPropertyValue):
              (WebInspector.SourceCSSTokenizer.prototype.nextToken):
              * inspector/front-end/SourceCSSTokenizer.re2js: Added.
              * inspector/front-end/SourceHTMLTokenizer.js: Added.
              (WebInspector.SourceHTMLTokenizer):
              (WebInspector.SourceHTMLTokenizer.prototype._stringToken):
              (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
              * inspector/front-end/SourceHTMLTokenizer.re2js: Added.
              * inspector/front-end/SourceJavaScriptTokenizer.js: Added.
              (WebInspector.SourceJavaScriptTokenizer):
              (WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
              * inspector/front-end/SourceJavaScriptTokenizer.re2js: Added.
              * inspector/front-end/TextEditorHighlighter.js:
              (WebInspector.TextEditorHighlighter):
              (WebInspector.TextEditorHighlighter.prototype._highlightLines):
              (WebInspector.TextEditorHighlighter.Tokenizer):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype.set line):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype.set condition):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype.get condition):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype.hasCondition):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype.getLexCondition):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype.setLexCondition):
              (WebInspector.TextEditorHighlighter.Tokenizer.prototype._charAt):
              * inspector/front-end/WebKit.qrc:
              * inspector/front-end/inspector.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1814d0e