Web Inspector: Styles Sidebar highlights "translate" but not "translateX"
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2016 21:07:52 +0000 (21:07 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2016 21:07:52 +0000 (21:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=163613
<rdar://problem/28829610>

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

* UserInterface/Models/CSSCompletions.js:
(WebInspector.CSSCompletions.requestCSSCompletions):
The hash table objects we pass to CodeMirror expects keys to be lowercased.

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js

index 84c4545..bad9926 100644 (file)
@@ -1,5 +1,17 @@
 2016-10-18  Joseph Pecoraro  <pecoraro@apple.com>
 
+        Web Inspector: Styles Sidebar highlights "translate" but not "translateX"
+        https://bugs.webkit.org/show_bug.cgi?id=163613
+        <rdar://problem/28829610>
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Models/CSSCompletions.js:
+        (WebInspector.CSSCompletions.requestCSSCompletions):
+        The hash table objects we pass to CodeMirror expects keys to be lowercased.
+
+2016-10-18  Joseph Pecoraro  <pecoraro@apple.com>
+
         Web Inspector: CSS Autocompletion sometimes adds extra unexpected characters
         https://bugs.webkit.org/show_bug.cgi?id=163612
         <rdar://problem/28829557>
index d2b4eaa..8cab966 100644 (file)
@@ -104,7 +104,7 @@ WebInspector.CSSCompletions = class CSSCompletions
             {
                 // CodeMirror parses the vendor prefix separate from the property or keyword name,
                 // so we need to strip vendor prefixes from our names. Also strip function parenthesis.
-                return name.replace(/^-[^-]+-/, "").replace(/\(\)$/, "");
+                return name.replace(/^-[^-]+-/, "").replace(/\(\)$/, "").toLowerCase();
             }
 
             function collectPropertyNameForCodeMirror(propertyName)