Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js b/third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js |
| index 47ba177373bdad9ee893d742fe97ee7ca19cba45..f19ae050c5929b91b63a19e4b9071f412e5bddf2 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/CSSProperty.js |
| @@ -115,7 +115,8 @@ WebInspector.CSSProperty.prototype = { |
| var range = this.range.relativeTo(this.ownerStyle.range.startLine, this.ownerStyle.range.startColumn); |
| var indentation = this.ownerStyle.cssText ? this._detectIndentation(this.ownerStyle.cssText) : WebInspector.moduleSetting("textEditorIndent").get(); |
| var endIndentation = this.ownerStyle.cssText ? indentation.substring(0, this.ownerStyle.range.endColumn) : ""; |
| - var newStyleText = range.replaceInText(this.ownerStyle.cssText || "", String.sprintf(";%s;", propertyText)); |
| + var text = new WebInspector.Text(this.ownerStyle.cssText || ""); |
| + var newStyleText = text.replaceRange(range , String.sprintf(";%s;", propertyText)); |
|
dgozman
2016/03/16 20:36:48
style: extra space before comma
lushnikov
2016/03/16 21:04:01
Done.
|
| return self.runtime.instancePromise(WebInspector.TokenizerFactory) |
| .then(this._formatStyle.bind(this, newStyleText, indentation, endIndentation)) |