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

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

Issue 1913833002: Current work-in-progress crbug.com/567021 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More assert fixes Created 4 years, 7 months 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 6edbc564b799db0c97e06c3d2e3822eba6c980b5..510a53443f668426c4c0ae34aefad549a322091b 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp
@@ -27,12 +27,14 @@
#include "core/dom/DocumentStyleSheetCollector.h"
#include "core/css/CSSStyleSheet.h"
+#include "core/css/RuleSet.h"
#include "core/css/StyleSheet.h"
+#include "core/dom/Document.h"
#include "core/dom/DocumentStyleSheetCollection.h"
namespace blink {
-DocumentStyleSheetCollector::DocumentStyleSheetCollector(HeapVector<Member<StyleSheet>>& sheetsForList, HeapVector<Member<CSSStyleSheet>>& activeList, HeapHashSet<Member<Document>>& visitedDocuments)
+DocumentStyleSheetCollector::DocumentStyleSheetCollector(HeapVector<Member<StyleSheet>>& sheetsForList, ActiveStyleSheetVector& activeList, HeapHashSet<Member<Document>>& visitedDocuments)
: m_styleSheetsForStyleSheetList(sheetsForList)
, m_activeAuthorStyleSheets(activeList)
, m_visitedDocuments(visitedDocuments)
@@ -43,14 +45,9 @@ DocumentStyleSheetCollector::~DocumentStyleSheetCollector()
{
}
-void DocumentStyleSheetCollector::appendActiveStyleSheets(const HeapVector<Member<CSSStyleSheet>>& sheets)
+void DocumentStyleSheetCollector::appendActiveStyleSheet(const ActiveStyleSheet& activeSheet)
{
- m_activeAuthorStyleSheets.appendVector(sheets);
-}
-
-void DocumentStyleSheetCollector::appendActiveStyleSheet(CSSStyleSheet* sheet)
-{
- m_activeAuthorStyleSheets.append(sheet);
+ m_activeAuthorStyleSheets.append(activeSheet);
}
void DocumentStyleSheetCollector::appendSheetForList(StyleSheet* sheet)
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.h ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698