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

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

Issue 2319763004: DevTools: (DO NOT COMMIT) Add shadow swatches to Sources, work in progress (Closed)
Patch Set: 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..e283ee7a67e7e81f5b6a8e2b09c0c4f7eaea24a7 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.setText(text);
+ new WebInspector.BezierPopoverIcon(this, swatchPopoverHelper, swatch);
+ return swatch;
},
/**

Powered by Google App Engine
This is Rietveld 408576698