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

Unified Diff: sky/engine/core/dom/DocumentStyleSheetCollector.h

Issue 778743003: Merge StyleSheet into CSSStyleSheet. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: sort headers. Created 6 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: sky/engine/core/dom/DocumentStyleSheetCollector.h
diff --git a/sky/engine/core/dom/DocumentStyleSheetCollector.h b/sky/engine/core/dom/DocumentStyleSheetCollector.h
index e04cbfbf5e40e5bce3745f6f526ffabd926975b6..922910e473dc6f8433aa54777385b67d8aa38a9f 100644
--- a/sky/engine/core/dom/DocumentStyleSheetCollector.h
+++ b/sky/engine/core/dom/DocumentStyleSheetCollector.h
@@ -34,9 +34,8 @@
namespace blink {
-class CSSStyleSheet;
class Document;
-class StyleSheet;
+class CSSStyleSheet;
class StyleSheetCollection;
class DocumentStyleSheetCollector {
@@ -47,18 +46,18 @@ class DocumentStyleSheetCollector {
public:
friend class ImportedDocumentStyleSheetCollector;
- DocumentStyleSheetCollector(Vector<RefPtr<StyleSheet> >& sheetsForList, Vector<RefPtr<CSSStyleSheet> >& activeList, HashSet<RawPtr<Document> >&);
+ DocumentStyleSheetCollector(Vector<RefPtr<CSSStyleSheet> >& sheetsForList, Vector<RefPtr<CSSStyleSheet> >& activeList, HashSet<RawPtr<Document> >&);
~DocumentStyleSheetCollector();
void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&);
void appendActiveStyleSheet(CSSStyleSheet*);
- void appendSheetForList(StyleSheet*);
+ void appendSheetForList(CSSStyleSheet*);
bool hasVisited(Document* document) const { return m_visitedDocuments.contains(document); }
void willVisit(Document* document) { m_visitedDocuments.add(document); }
private:
- Vector<RefPtr<StyleSheet> >& m_styleSheetsForStyleSheetList;
+ Vector<RefPtr<CSSStyleSheet> >& m_styleSheetsForStyleSheetList;
Vector<RefPtr<CSSStyleSheet> >& m_activeAuthorStyleSheets;
HashSet<RawPtr<Document> >& m_visitedDocuments;
};
@@ -72,7 +71,7 @@ private:
class ImportedDocumentStyleSheetCollector final : public DocumentStyleSheetCollector {
public:
- ImportedDocumentStyleSheetCollector(DocumentStyleSheetCollector&, Vector<RefPtr<StyleSheet> >&);
+ ImportedDocumentStyleSheetCollector(DocumentStyleSheetCollector&, Vector<RefPtr<CSSStyleSheet> >&);
};
} // namespace blink
« no previous file with comments | « sky/engine/core/dom/DocumentStyleSheetCollection.cpp ('k') | sky/engine/core/dom/DocumentStyleSheetCollector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698