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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2638883002: Document::shutdown(): remove unnecessary static_cast<>. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 8dd0107b17f40243126d5ebf82ac2ec8a0e5a7b0..b01315f53008be759dfe3ba74705782312ab29b4 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2487,9 +2487,8 @@ void Document::shutdown() {
frameHost()->eventHandlerRegistry().documentDetached(*this);
- // Since |Document| class has multiple |LifecycleNotifier| as base class,
- // we need to have |static_cast<SynchronousMutationNotifier>| here.
- static_cast<SynchronousMutationNotifier*>(this)->notifyContextDestroyed();
+ // Signal destruction to mutation observers.
+ SynchronousMutationNotifier::notifyContextDestroyed();
m_frame->selection().documentDetached(*this);
// If this Document is associated with a live DocumentLoader, the
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698