Title: [207489] trunk/Source/WebInspectorUI
Revision
207489
Author
commit-qu...@webkit.org
Date
2016-10-18 14:07:52 -0700 (Tue, 18 Oct 2016)

Log Message

Web Inspector: Styles Sidebar highlights "translate" but not "translateX"
https://bugs.webkit.org/show_bug.cgi?id=163613
<rdar://problem/28829610>

Patch by Joseph Pecoraro <pecor...@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.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (207488 => 207489)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-10-18 21:03:03 UTC (rev 207488)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-10-18 21:07:52 UTC (rev 207489)
@@ -1,5 +1,17 @@
 2016-10-18  Joseph Pecoraro  <pecor...@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  <pecor...@apple.com>
+
         Web Inspector: CSS Autocompletion sometimes adds extra unexpected characters
         https://bugs.webkit.org/show_bug.cgi?id=163612
         <rdar://problem/28829557>

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js (207488 => 207489)


--- trunk/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js	2016-10-18 21:03:03 UTC (rev 207488)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js	2016-10-18 21:07:52 UTC (rev 207489)
@@ -104,7 +104,7 @@
             {
                 // 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)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to