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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.h

Issue 2559653002: Remove ContextLifecycleObserver from ActiveDOMCallback (Closed)
Patch Set: Created 4 years 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/bindings/core/v8/V8MutationCallback.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.h b/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.h
index 69bd90a53aec4f9779a85bfe835f756e09a1b540..5dc0f7a134eab9e25ab564e93bf56e3948c4db89 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.h
@@ -28,6 +28,7 @@
#include "bindings/core/v8/ActiveDOMCallback.h"
#include "bindings/core/v8/ScopedPersistent.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/MutationCallback.h"
#include "wtf/RefPtr.h"
#include <v8.h>
@@ -35,7 +36,6 @@
namespace blink {
class ExecutionContext;
-class ScriptState;
class V8MutationCallback final : public MutationCallback,
public ActiveDOMCallback {
@@ -51,8 +51,9 @@ class V8MutationCallback final : public MutationCallback,
void call(const HeapVector<Member<MutationRecord>>&,
MutationObserver*) override;
+
ExecutionContext* getExecutionContext() const override {
- return ContextLifecycleObserver::getExecutionContext();
+ return m_scriptState->getExecutionContext();
}
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698