Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp

Issue 2557533005: Collect active stylesheets and and apply asynchronously. (Closed)
Patch Set: [Mac] Missing style recalc for device scale change Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 da950e6cc5229e633febc311f582cd0594bdf2cc..656837a8dcb1262fbf5864d5d9db5d22aa11c459 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

Powered by Google App Engine
This is Rietveld 408576698