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

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

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

Powered by Google App Engine
This is Rietveld 408576698