Title: [253758] trunk/Source/WebInspectorUI
Revision
253758
Author
drou...@apple.com
Date
2019-12-19 09:48:21 -0800 (Thu, 19 Dec 2019)

Log Message

Web Inspector: Elements: Styles: bezier keywords don't show a swatch
https://bugs.webkit.org/show_bug.cgi?id=205436

Reviewed by Brian Burg.

* UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype._addTimingFunctionTokens):
Check if the current token is a direct match with one of the timing function keywords.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (253757 => 253758)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-12-19 17:33:12 UTC (rev 253757)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-12-19 17:48:21 UTC (rev 253758)
@@ -1,5 +1,16 @@
 2019-12-19  Devin Rousso  <drou...@apple.com>
 
+        Web Inspector: Elements: Styles: bezier keywords don't show a swatch
+        https://bugs.webkit.org/show_bug.cgi?id=205436
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/SpreadsheetStyleProperty.js:
+        (WI.SpreadsheetStyleProperty.prototype._addTimingFunctionTokens):
+        Check if the current token is a direct match with one of the timing function keywords.
+
+2019-12-19  Devin Rousso  <drou...@apple.com>
+
         Web Inspector: Audit: importing a result with DOM nodes that don't match the inspected page appear as empty lines
         https://bugs.webkit.org/show_bug.cgi?id=205437
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js (253757 => 253758)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2019-12-19 17:33:12 UTC (rev 253757)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2019-12-19 17:48:21 UTC (rev 253758)
@@ -683,7 +683,9 @@
                     newTokens.pushAll(rawTokens);
 
                 startIndex = NaN;
-            } else if (isNaN(startIndex))
+            } else if (token.value in WI.CubicBezier.keywordValues)
+                newTokens.push(this._createInlineSwatch(WI.InlineSwatch.Type.Bezier, [token], WI.CubicBezier.fromString(token.value)));
+            else if (isNaN(startIndex))
                 newTokens.push(token);
         }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to