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

Unified Diff: third_party/WebKit/Source/core/html/HTMLStyleElement.cpp

Issue 2354773003: Make stylesheet owner node a reference instead of pointer. (Closed)
Patch Set: const Created 4 years, 3 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
Index: third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
index 430429e5d45f01c2bc4cf636e3aaec8cb7a6a1c2..3ded1dc7f03e9aa9f2143ce63dfc867521b1e878 100644
--- a/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLStyleElement.cpp
@@ -72,7 +72,7 @@ void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr
void HTMLStyleElement::finishParsingChildren()
{
- StyleElement::ProcessingResult result = StyleElement::finishParsingChildren(this);
+ StyleElement::ProcessingResult result = StyleElement::finishParsingChildren(*this);
HTMLElement::finishParsingChildren();
if (result == StyleElement::ProcessingFatalError)
notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresource);
@@ -81,26 +81,26 @@ void HTMLStyleElement::finishParsingChildren()
Node::InsertionNotificationRequest HTMLStyleElement::insertedInto(ContainerNode* insertionPoint)
{
HTMLElement::insertedInto(insertionPoint);
- StyleElement::insertedInto(this, insertionPoint);
+ StyleElement::insertedInto(*this, insertionPoint);
return InsertionShouldCallDidNotifySubtreeInsertions;
}
void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
{
HTMLElement::removedFrom(insertionPoint);
- StyleElement::removedFrom(this, insertionPoint);
+ StyleElement::removedFrom(*this, insertionPoint);
}
void HTMLStyleElement::didNotifySubtreeInsertionsToDocument()
{
- if (StyleElement::processStyleSheet(document(), this) == StyleElement::ProcessingFatalError)
+ if (StyleElement::processStyleSheet(document(), *this) == StyleElement::ProcessingFatalError)
notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresource);
}
void HTMLStyleElement::childrenChanged(const ChildrenChange& change)
{
HTMLElement::childrenChanged(change);
- if (StyleElement::childrenChanged(this) == StyleElement::ProcessingFatalError)
+ if (StyleElement::childrenChanged(*this) == StyleElement::ProcessingFatalError)
notifyLoadedSheetAndAllCriticalSubresources(ErrorOccurredLoadingSubresource);
}

Powered by Google App Engine
This is Rietveld 408576698