| 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 765bcc4cfa0814faaf6b428cf0db93657b1f0ad6..30c757486cb9a2b913ef40a8078cfb7bc8e54c4a 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| @@ -469,15 +469,16 @@ WebInspector.StylesSidebarPane.prototype = {
|
| {
|
| if (!styleSheetHeader)
|
| return;
|
| - styleSheetHeader.requestContent(onStyleSheetContent.bind(this, styleSheetHeader.id));
|
| + styleSheetHeader.requestContent().then(onStyleSheetContent.bind(this, styleSheetHeader.id));
|
|
|
| /**
|
| * @param {string} styleSheetId
|
| - * @param {string} text
|
| + * @param {?string} text
|
| * @this {WebInspector.StylesSidebarPane}
|
| */
|
| function onStyleSheetContent(styleSheetId, text)
|
| {
|
| + text = text || "";
|
| var lines = text.split("\n");
|
| var range = WebInspector.TextRange.createFromLocation(lines.length - 1, lines[lines.length - 1].length);
|
| this._addBlankSection(this._sectionBlocks[0].sections[0], styleSheetId, range);
|
|
|