| Index: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| index 223fad62ee6033afcf6d179eeee16614806bf2fd..52d7c2de6db375ab973f428d414853057e9e46d0 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
|
| @@ -1784,12 +1784,9 @@ InspectorStyleSheetForInlineStyle* InspectorCSSAgent::asInspectorStyleSheet(
|
| void InspectorCSSAgent::collectAllDocumentStyleSheets(
|
| Document* document,
|
| HeapVector<Member<CSSStyleSheet>>& result) {
|
| - const HeapVector<Member<CSSStyleSheet>> activeStyleSheets =
|
| - document->styleEngine().activeStyleSheetsForInspector();
|
| - for (const auto& style : activeStyleSheets) {
|
| - CSSStyleSheet* styleSheet = style.get();
|
| - InspectorCSSAgent::collectStyleSheets(styleSheet, result);
|
| - }
|
| + for (const auto& style :
|
| + document->styleEngine().activeStyleSheetsForInspector())
|
| + InspectorCSSAgent::collectStyleSheets(style.first, result);
|
| }
|
|
|
| // static
|
|
|