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

Unified Diff: Source/core/dom/ProcessingInstruction.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/Element.cpp ('k') | Source/core/dom/ShadowTreeStyleSheetCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ProcessingInstruction.cpp
diff --git a/Source/core/dom/ProcessingInstruction.cpp b/Source/core/dom/ProcessingInstruction.cpp
index 4a7a546d4ee47e3a561bc2c84520ee7875416df7..5d0cfbc8502e8b1faaf5d7723569e2ce60f3d78b 100644
--- a/Source/core/dom/ProcessingInstruction.cpp
+++ b/Source/core/dom/ProcessingInstruction.cpp
@@ -65,7 +65,7 @@ ProcessingInstruction::~ProcessingInstruction()
// However, if we add ASSERT(!inDocument()), fast/xsl/xslt-entity.xml
// crashes. We need to investigate ProcessingInstruction lifetime.
if (inDocument() && m_isCSS)
- document().styleEngine()->removeStyleSheetCandidateNode(this);
+ document().styleEngine().removeStyleSheetCandidateNode(this);
#endif
clearEventListenerForXSLT();
}
@@ -179,7 +179,7 @@ void ProcessingInstruction::process(const String& href, const String& charset)
if (resource) {
m_loading = true;
if (!m_isXSL)
- document().styleEngine()->addPendingSheet();
+ document().styleEngine().addPendingSheet();
setResource(resource);
}
}
@@ -197,7 +197,7 @@ bool ProcessingInstruction::sheetLoaded()
{
if (!isLoading()) {
if (!DocumentXSLT::sheetLoaded(document(), this))
- document().styleEngine()->removePendingSheet(this);
+ document().styleEngine().removePendingSheet(this);
return true;
}
return false;
@@ -277,7 +277,7 @@ Node::InsertionNotificationRequest ProcessingInstruction::insertedInto(Container
String charset;
bool isValid = checkStyleSheet(href, charset);
if (!DocumentXSLT::processingInstructionInsertedIntoDocument(document(), this))
- document().styleEngine()->addStyleSheetCandidateNode(this, m_createdByParser);
+ document().styleEngine().addStyleSheetCandidateNode(this, m_createdByParser);
if (isValid)
process(href, charset);
return InsertionDone;
@@ -291,7 +291,7 @@ void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint)
// No need to remove XSLStyleSheet from StyleEngine.
if (!DocumentXSLT::processingInstructionRemovedFromDocument(document(), this))
- document().styleEngine()->removeStyleSheetCandidateNode(this);
+ document().styleEngine().removeStyleSheetCandidateNode(this);
RefPtrWillBeRawPtr<StyleSheet> removedSheet = m_sheet;
if (m_sheet) {
@@ -311,7 +311,7 @@ void ProcessingInstruction::clearSheet()
{
ASSERT(m_sheet);
if (m_sheet->isLoading())
- document().styleEngine()->removePendingSheet(this);
+ document().styleEngine().removePendingSheet(this);
m_sheet.release()->clearOwnerNode();
}
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/ShadowTreeStyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698