Web Inspector: Command+Click on url(…) should go to image not source line
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Oct 2013 22:23:20 +0000 (22:23 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Oct 2013 22:23:20 +0000 (22:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=123362

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-10-25
Reviewed by Timothy Hatcher.

CodeMirror changed "url" from being type "variable-2" to "string-2".

* UserInterface/CodeMirrorAdditions.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158061 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/CodeMirrorAdditions.js

index 905656d..45a7db9 100644 (file)
@@ -1,3 +1,14 @@
+2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Command+Click on url(…) should go to image not source line
+        https://bugs.webkit.org/show_bug.cgi?id=123362
+
+        Reviewed by Timothy Hatcher.
+
+        CodeMirror changed "url" from being type "variable-2" to "string-2".
+
+        * UserInterface/CodeMirrorAdditions.js:
+
 2013-10-25  Jessie Berlin  <jberlin@apple.com>
 
         Ran update-localizable-strings after changes made in r157947.
index f874997..66c08f7 100644 (file)
         var style = this._token(stream, state);
 
         if (style) {
-            if (style === "variable-2" && stream.current() === "url") {
+            if (style === "string-2" && stream.current() === "url") {
                 // If the current text is "url" then we should expect the next string token to be a link.
                 state._expectLink = true;
             } else if (state._expectLink && style === "string") {