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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp

Issue 2557533005: Collect active stylesheets and and apply asynchronously. (Closed)
Patch Set: Rebased. 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/dom/DocumentStyleSheetCollector.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp
index 7a0325253faff78225c9027ea568dcbdd1674167..17abbb9dc966195e73d4a7421de5e399e11dddfd 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp
@@ -30,6 +30,7 @@
#include "core/css/CSSStyleSheet.h"
#include "core/css/StyleSheet.h"
+#include "core/dom/Document.h"
#include "core/dom/DocumentStyleSheetCollection.h"
namespace blink {
@@ -44,13 +45,8 @@ DocumentStyleSheetCollector::DocumentStyleSheetCollector(
DocumentStyleSheetCollector::~DocumentStyleSheetCollector() {}
-void DocumentStyleSheetCollector::appendActiveStyleSheets(
- const HeapVector<TraceWrapperMember<CSSStyleSheet>>& sheets) {
- DCHECK(m_collection);
- m_collection->appendActiveStyleSheets(sheets);
-}
-
-void DocumentStyleSheetCollector::appendActiveStyleSheet(CSSStyleSheet* sheet) {
+void DocumentStyleSheetCollector::appendActiveStyleSheet(
+ const ActiveStyleSheet& sheet) {
DCHECK(m_collection);
m_collection->appendActiveStyleSheet(sheet);
}

Powered by Google App Engine
This is Rietveld 408576698