| Index: Source/devtools/front_end/StyleSheetOutlineDialog.js
|
| diff --git a/Source/devtools/front_end/StyleSheetOutlineDialog.js b/Source/devtools/front_end/StyleSheetOutlineDialog.js
|
| index b7f21e5e0e88c42371e6821b8096d456f9d09fa9..e8334d27e0eb8805a3b5a3c1acae4185b251fdd8 100644
|
| --- a/Source/devtools/front_end/StyleSheetOutlineDialog.js
|
| +++ b/Source/devtools/front_end/StyleSheetOutlineDialog.js
|
| @@ -102,27 +102,15 @@ WebInspector.StyleSheetOutlineDialog.prototype = {
|
|
|
| _requestItems: function()
|
| {
|
| - /**
|
| - * @param {?Protocol.Error} error
|
| - * @param {!Array.<!CSSAgent.CSSStyleSheetHeader>} infos
|
| - * @this {WebInspector.StyleSheetOutlineDialog}
|
| - */
|
| - function didGetAllStyleSheets(error, infos)
|
| - {
|
| - if (error)
|
| + var styleSheets = WebInspector.cssModel.allStyleSheets();
|
| + for (var i = 0; i < styleSheets.length; ++i) {
|
| + var styleSheet = styleSheets[i];
|
| + if (styleSheet.sourceURL === this._uiSourceCode.url) {
|
| + WebInspector.CSSStyleSheet.createForId(styleSheet.id, didGetStyleSheet.bind(this));
|
| return;
|
| -
|
| - for (var i = 0; i < infos.length; ++i) {
|
| - var info = infos[i];
|
| - if (info.sourceURL === this._uiSourceCode.url) {
|
| - WebInspector.CSSStyleSheet.createForId(info.styleSheetId, didGetStyleSheet.bind(this));
|
| - return;
|
| - }
|
| }
|
| }
|
|
|
| - CSSAgent.getAllStyleSheets(didGetAllStyleSheets.bind(this));
|
| -
|
| /**
|
| * @param {?WebInspector.CSSStyleSheet} styleSheet
|
| * @this {WebInspector.StyleSheetOutlineDialog}
|
|
|