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

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

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.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.h b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.h
index e3998f9435d0dc094badf8ea3d0f7d642e311213..1fee76787721fe71cd375e694e4a3af3e3d203d5 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.h
+++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.h
@@ -27,6 +27,7 @@
#ifndef DocumentStyleSheetCollector_h
#define DocumentStyleSheetCollector_h
+#include "core/css/ActiveStyleSheets.h"
#include "platform/heap/Handle.h"
#include "wtf/HashSet.h"
#include "wtf/Vector.h"
@@ -46,11 +47,10 @@ class DocumentStyleSheetCollector {
public:
friend class ImportedDocumentStyleSheetCollector;
- DocumentStyleSheetCollector(HeapVector<Member<StyleSheet>>& sheetsForList, HeapVector<Member<CSSStyleSheet>>& activeList, HeapHashSet<Member<Document>>&);
+ DocumentStyleSheetCollector(HeapVector<Member<StyleSheet>>& sheetsForList, ActiveStyleSheetVector&, HeapHashSet<Member<Document>>&);
~DocumentStyleSheetCollector();
- void appendActiveStyleSheets(const HeapVector<Member<CSSStyleSheet>>&);
- void appendActiveStyleSheet(CSSStyleSheet*);
+ void appendActiveStyleSheet(const ActiveStyleSheet&);
void appendSheetForList(StyleSheet*);
bool hasVisited(Document* document) const { return m_visitedDocuments.contains(document); }
@@ -58,7 +58,7 @@ public:
private:
HeapVector<Member<StyleSheet>>& m_styleSheetsForStyleSheetList;
- HeapVector<Member<CSSStyleSheet>>& m_activeAuthorStyleSheets;
+ ActiveStyleSheetVector& m_activeAuthorStyleSheets;
HeapHashSet<Member<Document>>& m_visitedDocuments;
};

Powered by Google App Engine
This is Rietveld 408576698