Index: third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp |
index c48e4cbdbb092041cdfa36468d72c3f6335553a2..9905cdffed1dbcb7e146cf5f5a6a57112e1acf67 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp |
@@ -137,6 +137,13 @@ void DOMWrapperWorld::allWorldsInMainThread(Vector<RefPtr<DOMWrapperWorld>>& wor |
worlds.append(it->value); |
} |
+Vector<RefPtr<DOMWrapperWorld>>& DOMWrapperWorld::originWorldStack() |
+{ |
+ ASSERT(isMainThread()); |
+ DEFINE_STATIC_LOCAL(Vector<RefPtr<DOMWrapperWorld>>, worldStack, ()); |
+ return worldStack; |
+} |
+ |
DOMWrapperWorld::~DOMWrapperWorld() |
{ |
ASSERT(!isMainWorld()); |