Index: third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
index cc5cad449795b4f6488b8634ad8df35dba86ccac..903183a7c3c5097d94e06b268e328d553d2568e2 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
@@ -200,14 +200,22 @@ WebInspector.CSSShadowSwatch.create = function() |
WebInspector.CSSShadowSwatch.prototype = { |
/** |
- * @param {!WebInspector.CSSShadowModel} cssShadowModel |
+ * @return {!WebInspector.CSSShadowModel} cssShadowModel |
*/ |
- setCSSShadow: function(cssShadowModel) |
+ model: function() |
{ |
- this._cssShadowModel = cssShadowModel; |
+ return this._model; |
+ }, |
+ |
+ /** |
+ * @param {!WebInspector.CSSShadowModel} model |
+ */ |
+ setCSSShadow: function(model) |
+ { |
+ this._model = model; |
this._colorSwatch = null; |
this._contentElement.removeChildren(); |
- var results = WebInspector.TextUtils.splitStringByRegexes(cssShadowModel.asCSSText(), [/inset/g, WebInspector.Color.Regex]); |
+ var results = WebInspector.TextUtils.splitStringByRegexes(model.asCSSText(), [/inset/g, WebInspector.Color.Regex]); |
for (var i = 0; i < results.length; i++) { |
var result = results[i]; |
if (result.regexIndex === 1) { |