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

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

Issue 23847002: Have StyleElement API take Document as a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/html/HTMLStyleElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLStyleElement.cpp
diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp
index acf9820853529fa080e3aee225c1a22fc3aa2726..f726525a26af4d8a8fe30d89e36eaa32eab9c272 100644
--- a/Source/core/html/HTMLStyleElement.cpp
+++ b/Source/core/html/HTMLStyleElement.cpp
@@ -59,7 +59,7 @@ HTMLStyleElement::~HTMLStyleElement()
{
// During tear-down, willRemove isn't called, so m_scopedStyleRegistrationState may still be RegisteredAsScoped or RegisteredInShadowRoot here.
// Therefore we can't ASSERT(m_scopedStyleRegistrationState == NotRegistered).
- StyleElement::clearDocumentData(&document(), this);
+ StyleElement::clearDocumentData(document(), this);
styleLoadEventSender().cancelEvent(this);
}
@@ -202,12 +202,12 @@ void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
}
if (insertionPoint->inDocument())
- StyleElement::removedFromDocument(&document(), this, scope);
+ StyleElement::removedFromDocument(document(), this, scope);
}
void HTMLStyleElement::didNotifySubtreeInsertions(ContainerNode* insertionPoint)
{
- StyleElement::processStyleSheet(&document(), this);
+ StyleElement::processStyleSheet(document(), this);
}
void HTMLStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
« no previous file with comments | « Source/core/html/HTMLStyleElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698