| Index: third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| index 028b48bccd0f718544382728f435bf662eb1a3a8..5dd079acb7e773daad4141caab0362cc39f06a44 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| @@ -40,7 +40,7 @@ namespace blink {
|
| DocumentStyleSheetCollection::DocumentStyleSheetCollection(TreeScope& treeScope)
|
| : TreeScopeStyleSheetCollection(treeScope)
|
| {
|
| - ASSERT(treeScope.rootNode() == treeScope.rootNode().document());
|
| + DCHECK_EQ(treeScope.rootNode(), treeScope.rootNode().document());
|
| }
|
|
|
| void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine& engine, DocumentStyleSheetCollector& collector)
|
| @@ -48,7 +48,7 @@ void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine&
|
| for (Node* n : m_styleSheetCandidateNodes) {
|
| StyleSheetCandidate candidate(*n);
|
|
|
| - ASSERT(!candidate.isXSL());
|
| + DCHECK(!candidate.isXSL());
|
| if (candidate.isImport()) {
|
| Document* document = candidate.importedDocument();
|
| if (!document)
|
| @@ -81,7 +81,7 @@ void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine&
|
|
|
| void DocumentStyleSheetCollection::collectStyleSheets(StyleEngine& engine, DocumentStyleSheetCollector& collector)
|
| {
|
| - ASSERT(&document().styleEngine() == &engine);
|
| + DCHECK_EQ(&document().styleEngine(), &engine);
|
| collector.appendActiveStyleSheets(engine.injectedAuthorStyleSheets());
|
| collectStyleSheetsFromCandidates(engine, collector);
|
| }
|
| @@ -105,7 +105,7 @@ void DocumentStyleSheetCollection::updateActiveStyleSheets(StyleEngine& engine,
|
| engine.clearFontCache();
|
| } else if (StyleResolver* styleResolver = engine.resolver()) {
|
| if (change.styleResolverUpdateType != Additive) {
|
| - ASSERT(change.styleResolverUpdateType == Reset);
|
| + DCHECK_EQ(change.styleResolverUpdateType, Reset);
|
| styleResolver->resetAuthorStyle(treeScope());
|
| engine.removeFontFaceRules(change.fontFaceRulesToRemove);
|
| styleResolver->removePendingAuthorStyleSheets(m_activeAuthorStyleSheets);
|
|
|