Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 2298903002: DevTools: Modify BezierSwatch to follow same style as ColorSwatch (Closed)
Patch Set: Fix merge conflict Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index ccb9c9db97d012019516e7c973800e4b14de05bd..036fc632880781cf855a60d299d6f6d7775d33e4 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -2014,11 +2014,13 @@ WebInspector.StylePropertyTreeElement.prototype = {
*/
_processBezier: function(text)
{
- var geometry = WebInspector.Geometry.CubicBezier.parse(text);
- if (!geometry || !this._editable())
+ if (!this._editable() || !WebInspector.Geometry.CubicBezier.parse(text))
return createTextNode(text);
var swatchPopoverHelper = this._parentPane._swatchPopoverHelper;
- return new WebInspector.BezierPopoverIcon(this, swatchPopoverHelper, text).element();
+ var swatch = WebInspector.BezierSwatch.create();
+ swatch.setBezierText(text);
+ new WebInspector.BezierPopoverIcon(this, swatchPopoverHelper, swatch);
+ return swatch;
},
/**

Powered by Google App Engine
This is Rietveld 408576698