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

Unified Diff: Source/core/dom/StyleEngine.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index e47686d0fa9f273f606b5e4e61b57f892963397e..45d245975133426b4ca9e14dc58410cf2bfe0aa0 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -407,7 +407,7 @@ void StyleEngine::updateStyleSheetsInImport(DocumentStyleSheetCollector& parentC
ASSERT(!isMaster());
WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > sheetsForList;
ImportedDocumentStyleSheetCollector subcollector(parentCollector, sheetsForList);
- documentStyleSheetCollection()->collectStyleSheets(this, subcollector);
+ documentStyleSheetCollection()->collectStyleSheets(*this, subcollector);
documentStyleSheetCollection()->swapSheetsForSheetList(sheetsForList);
}
@@ -416,7 +416,7 @@ void StyleEngine::updateActiveStyleSheetsInShadow(StyleResolverUpdateMode update
ASSERT(treeScope != m_document);
ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeStyleSheetCollection*>(styleSheetCollectionFor(*treeScope));
ASSERT(collection);
- collection->updateActiveStyleSheets(this, updateMode);
+ collection->updateActiveStyleSheets(*this, updateMode);
if (!collection->hasStyleSheetCandidateNodes()) {
treeScopesRemoved.add(treeScope);
// When removing TreeScope from ActiveTreeScopes,
@@ -434,7 +434,7 @@ void StyleEngine::updateActiveStyleSheets(StyleResolverUpdateMode updateMode)
return;
if (shouldUpdateDocumentStyleSheetCollection(updateMode))
- documentStyleSheetCollection()->updateActiveStyleSheets(this, updateMode);
+ documentStyleSheetCollection()->updateActiveStyleSheets(*this, updateMode);
if (shouldUpdateShadowTreeStyleSheetCollection(updateMode)) {
UnorderedTreeScopeSet treeScopesRemoved;
@@ -545,7 +545,7 @@ void StyleEngine::clearResolver()
void StyleEngine::clearMasterResolver()
{
if (Document* master = this->master())
- master->styleEngine()->clearResolver();
+ master->styleEngine().clearResolver();
}
unsigned StyleEngine::resolverAccessCount() const
@@ -630,7 +630,7 @@ void StyleEngine::markDocumentDirty()
{
m_documentScopeDirty = true;
if (document().importLoader())
- document().importsController()->master()->styleEngine()->markDocumentDirty();
+ document().importsController()->master()->styleEngine().markDocumentDirty();
}
static bool isCacheableForStyleElement(const StyleSheetContents& contents)
@@ -652,7 +652,7 @@ PassRefPtrWillBeRawPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const
{
RefPtrWillBeRawPtr<CSSStyleSheet> styleSheet = nullptr;
- e->document().styleEngine()->addPendingSheet();
+ e->document().styleEngine().addPendingSheet();
if (!e->document().inQuirksMode()) {
AtomicString textContent(text);
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698