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

Unified Diff: sky/engine/core/dom/StyleSheetCollection.cpp

Issue 803673003: Delete StyleSheetList and support code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/StyleSheetCollection.cpp
diff --git a/sky/engine/core/dom/StyleSheetCollection.cpp b/sky/engine/core/dom/StyleSheetCollection.cpp
index 2c241d9b282986e9ebf40527f3873110cd3e0cba..8a864d908e05469b02a7d8f5b7b09438c6686c9d 100644
--- a/sky/engine/core/dom/StyleSheetCollection.cpp
+++ b/sky/engine/core/dom/StyleSheetCollection.cpp
@@ -41,17 +41,9 @@ StyleSheetCollection::~StyleSheetCollection()
void StyleSheetCollection::swap(StyleSheetCollection& other)
{
- m_styleSheetsForStyleSheetList.swap(other.m_styleSheetsForStyleSheetList);
m_activeAuthorStyleSheets.swap(other.m_activeAuthorStyleSheets);
}
-void StyleSheetCollection::swapSheetsForSheetList(Vector<RefPtr<CSSStyleSheet> >& sheets)
-{
- // Only called for collection of HTML Imports that never has active sheets.
- ASSERT(m_activeAuthorStyleSheets.isEmpty());
- m_styleSheetsForStyleSheetList.swap(sheets);
-}
-
void StyleSheetCollection::appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >& sheets)
{
m_activeAuthorStyleSheets.appendVector(sheets);
@@ -62,9 +54,4 @@ void StyleSheetCollection::appendActiveStyleSheet(CSSStyleSheet* sheet)
m_activeAuthorStyleSheets.append(sheet);
}
-void StyleSheetCollection::appendSheetForList(CSSStyleSheet* sheet)
-{
- m_styleSheetsForStyleSheetList.append(sheet);
-}
-
}

Powered by Google App Engine
This is Rietveld 408576698