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

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

Issue 2449103002: binding: Makes event listener attributes use the relevant realm. (Closed)
Patch Set: Created 4 years, 2 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 | third_party/WebKit/Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptState.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
index 3ec85d0ffbac1831023e388afbdd697e0d2b74b4..b0b0fd8530be5f9b3711f8272a63d42d98737c63 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
@@ -76,6 +76,11 @@ class CORE_EXPORT ScriptState : public RefCounted<ScriptState> {
return from(info.Holder()->CreationContext());
}
+ static ScriptState* forReceiverObject(
+ const v8::PropertyCallbackInfo<void>& info) {
+ return from(info.Holder()->CreationContext());
+ }
+
// Debugger context doesn't have associated ScriptState and when current
// context is debugger it should be treated as if context stack was empty.
static bool hasCurrentScriptState(v8::Isolate* isolate) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698