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

Unified Diff: third_party/WebKit/Source/core/dom/StyleSheetCollection.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/StyleSheetCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp
index 9dcd328264fefc2a37b4acf5a8ed2d4e97332f78..f25b2d62a3acf2f810fa14384198e67424fd8dd2 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp
@@ -29,7 +29,6 @@
#include "core/dom/StyleSheetCollection.h"
#include "core/css/CSSStyleSheet.h"
-#include "core/css/RuleSet.h"
namespace blink {
@@ -53,9 +52,20 @@
::blink::swap(m_styleSheetsForStyleSheetList, sheets, this);
}
-void StyleSheetCollection::appendActiveStyleSheet(
- const ActiveStyleSheet& activeSheet) {
- m_activeAuthorStyleSheets.append(activeSheet);
+void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet) {
+ m_activeAuthorStyleSheets.append(sheet);
+}
+
+void StyleSheetCollection::appendActiveStyleSheets(
+ const HeapVector<Member<CSSStyleSheet>>& sheets) {
+ m_activeAuthorStyleSheets.appendVector(sheets);
+}
+
+void StyleSheetCollection::appendActiveStyleSheets(
+ const HeapVector<TraceWrapperMember<CSSStyleSheet>>& sheets) {
+ for (CSSStyleSheet* sheet : sheets) {
+ m_activeAuthorStyleSheets.append(sheet);
+ }
}
void StyleSheetCollection::appendSheetForList(StyleSheet* sheet) {

Powered by Google App Engine
This is Rietveld 408576698