Title: [212995] trunk/Source/WebInspectorUI
Revision
212995
Author
[email protected]
Date
2017-02-24 23:50:32 -0800 (Fri, 24 Feb 2017)

Log Message

Web Inspector: Uncaught Exception: Unknown angle units "undefined"
https://bugs.webkit.org/show_bug.cgi?id=168851

Patch by Devin Rousso <[email protected]> on 2017-02-24
Reviewed by Brian Burg.

* UserInterface/Views/GradientEditor.js:
(WebInspector.GradientEditor.prototype._gradientTypeChanged):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (212994 => 212995)


--- trunk/Source/WebInspectorUI/ChangeLog	2017-02-25 07:50:08 UTC (rev 212994)
+++ trunk/Source/WebInspectorUI/ChangeLog	2017-02-25 07:50:32 UTC (rev 212995)
@@ -1,3 +1,13 @@
+2017-02-24  Devin Rousso  <[email protected]>
+
+        Web Inspector: Uncaught Exception: Unknown angle units "undefined"
+        https://bugs.webkit.org/show_bug.cgi?id=168851
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/GradientEditor.js:
+        (WebInspector.GradientEditor.prototype._gradientTypeChanged):
+
 2017-02-24  Jon Lee  <[email protected]>
 
         Alias "system-ui" for the System font name

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/GradientEditor.js (212994 => 212995)


--- trunk/Source/WebInspectorUI/UserInterface/Views/GradientEditor.js	2017-02-25 07:50:08 UTC (rev 212994)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/GradientEditor.js	2017-02-25 07:50:32 UTC (rev 212995)
@@ -186,7 +186,7 @@
         const descriptor = this._gradientTypes[this._gradientTypePicker.value];
         if (!(this._gradient instanceof descriptor.type)) {
             if (descriptor.type === WebInspector.LinearGradient) {
-                this._gradient = new WebInspector.LinearGradient(180, this._gradient.stops);
+                this._gradient = new WebInspector.LinearGradient({value: 180, units: WebInspector.LinearGradient.AngleUnits.DEG}, this._gradient.stops);
 
                 this._angleUnitsChanged();
             } else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to