Chromium Code Reviews
DescriptionMake DOMWrapperWorlds easier to use
This patch adds a DOMWrapperWorld::current() static method that
returns either the DOMWrapperWorld for the current V8 context or
null if in a Worker.
Recently-transitioned callsites that previously used WorkerContextHandle
have been updated to call DOMWrapperWorld::current() instead, and it
will be used in upcoming WorldContextHandle transitions.
This lets us remove a FIXME in toV8Context() since all non-Worker
callers now pass in a non-null DOMWrapperWorld (rather than the
old behavior of passing null as a sentinel for "main world").
R=abarth
BUG=230460
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148501
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||