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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp b/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp
index f9e64696d88eabc642ffd84a452930ddfaf6d860..37de8e415021384990de1b5f85d605cc797eb880 100644
--- a/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp
@@ -13,10 +13,14 @@ namespace blink {
FrameRequestCallbackCollection::FrameRequestCallbackCollection(ExecutionContext* context)
: m_context(context)
{
+#if ENABLE(OILPAN)
+ ASSERT(ThreadState::forObject(m_context.get()) == ThreadState::current());
+#endif
}
FrameRequestCallbackCollection::CallbackId FrameRequestCallbackCollection::registerCallback(FrameRequestCallback* callback)
{
+ ASSERT(ThreadState::forObject(callback) == ThreadState::current());
haraken 2016/01/07 08:06:21 Is this useful?
FrameRequestCallbackCollection::CallbackId id = ++m_nextCallbackId;
callback->m_cancelled = false;
callback->m_id = id;

Powered by Google App Engine
This is Rietveld 408576698