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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 | « third_party/WebKit/Source/core/dom/MutationCallback.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/MutationObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/MutationObserver.cpp b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
index c87e202b714a76b472b4d3feba60f347374c7af4..17cfe913d76d25d00d5aa9912716065a22629685 100644
--- a/third_party/WebKit/Source/core/dom/MutationObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
@@ -71,7 +71,7 @@ MutationObserver::~MutationObserver()
ASSERT(m_registrations.isEmpty());
#endif
if (!m_records.isEmpty())
- InspectorInstrumentation::didClearAllMutationRecords(m_callback->executionContext(), this);
+ InspectorInstrumentation::didClearAllMutationRecords(m_callback->getExecutionContext(), this);
}
void MutationObserver::observe(Node* node, const MutationObserverInit& observerInit, ExceptionState& exceptionState)
@@ -135,14 +135,14 @@ MutationRecordVector MutationObserver::takeRecords()
{
MutationRecordVector records;
records.swap(m_records);
- InspectorInstrumentation::didClearAllMutationRecords(m_callback->executionContext(), this);
+ InspectorInstrumentation::didClearAllMutationRecords(m_callback->getExecutionContext(), this);
return records;
}
void MutationObserver::disconnect()
{
m_records.clear();
- InspectorInstrumentation::didClearAllMutationRecords(m_callback->executionContext(), this);
+ InspectorInstrumentation::didClearAllMutationRecords(m_callback->getExecutionContext(), this);
MutationObserverRegistrationSet registrations(m_registrations);
for (auto& registration : registrations) {
// The registration may be already unregistered while iteration.
@@ -190,7 +190,7 @@ void MutationObserver::enqueueMutationRecord(PassRefPtrWillBeRawPtr<MutationReco
ASSERT(isMainThread());
m_records.append(mutation);
activateObserver(this);
- InspectorInstrumentation::didEnqueueMutationRecord(m_callback->executionContext(), this);
+ InspectorInstrumentation::didEnqueueMutationRecord(m_callback->getExecutionContext(), this);
}
void MutationObserver::setHasTransientRegistration()
@@ -209,7 +209,7 @@ WillBeHeapHashSet<RawPtrWillBeMember<Node>> MutationObserver::getObservedNodes()
bool MutationObserver::shouldBeSuspended() const
{
- return m_callback->executionContext() && m_callback->executionContext()->activeDOMObjectsAreSuspended();
+ return m_callback->getExecutionContext() && m_callback->getExecutionContext()->activeDOMObjectsAreSuspended();
}
void MutationObserver::deliver()
@@ -232,9 +232,9 @@ void MutationObserver::deliver()
MutationRecordVector records;
records.swap(m_records);
- InspectorInstrumentation::willDeliverMutationRecords(m_callback->executionContext(), this);
+ InspectorInstrumentation::willDeliverMutationRecords(m_callback->getExecutionContext(), this);
m_callback->call(records, this);
- InspectorInstrumentation::didDeliverMutationRecords(m_callback->executionContext());
+ InspectorInstrumentation::didDeliverMutationRecords(m_callback->getExecutionContext());
}
void MutationObserver::resumeSuspendedObservers()
« no previous file with comments | « third_party/WebKit/Source/core/dom/MutationCallback.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698