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

Unified Diff: Source/core/html/HTMLLinkElement.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/frame/FrameView.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index 56a52ca82f040342dc4ddb626f679584186614c5..19b1f937d0a818888a3086ea13d5021841373e48 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -155,7 +155,7 @@ HTMLLinkElement::~HTMLLinkElement()
m_link.clear();
if (inDocument())
- document().styleEngine()->removeStyleSheetCandidateNode(this);
+ document().styleEngine().removeStyleSheetCandidateNode(this);
#endif
linkLoadEventSender().cancelEvent(this);
@@ -283,7 +283,7 @@ Node::InsertionNotificationRequest HTMLLinkElement::insertedInto(ContainerNode*
return InsertionDone;
}
- document().styleEngine()->addStyleSheetCandidateNode(this, m_createdByParser);
+ document().styleEngine().addStyleSheetCandidateNode(this, m_createdByParser);
process();
@@ -305,7 +305,7 @@ void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint)
ASSERT(!linkStyle() || !linkStyle()->hasSheet());
return;
}
- document().styleEngine()->removeStyleSheetCandidateNode(this);
+ document().styleEngine().removeStyleSheetCandidateNode(this);
RefPtrWillBeRawPtr<StyleSheet> removedSheet = sheet();
@@ -605,7 +605,7 @@ void LinkStyle::addPendingSheet(PendingSheetType type)
if (m_pendingSheetType == NonBlocking)
return;
- m_owner->document().styleEngine()->addPendingSheet();
+ m_owner->document().styleEngine().addPendingSheet();
}
void LinkStyle::removePendingSheet()
@@ -617,7 +617,7 @@ void LinkStyle::removePendingSheet()
return;
if (type == NonBlocking) {
// Tell StyleEngine to re-compute styleSheets of this m_owner's treescope.
- m_owner->document().styleEngine()->modifiedStyleSheetCandidateNode(m_owner);
+ m_owner->document().styleEngine().modifiedStyleSheetCandidateNode(m_owner);
// Document::removePendingSheet() triggers the style selector recalc for blocking sheets.
// FIXME: We don't have enough knowledge at this point to know if we're adding or removing a sheet
// so we can't call addedStyleSheet() or removedStyleSheet().
@@ -625,7 +625,7 @@ void LinkStyle::removePendingSheet()
return;
}
- m_owner->document().styleEngine()->removePendingSheet(m_owner);
+ m_owner->document().styleEngine().removePendingSheet(m_owner);
}
void LinkStyle::setDisabledState(bool disabled)
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698