DescriptionMerge willEnter/willExitFullScreen into didEnter/didExitFullScreen
The will/did callback pairs came into being in 2011:
https://bugs.webkit.org/show_bug.cgi?id=70477
https://code.google.com/p/chromium/issues/detail?id=100264
The original problem was that the webkitfullscreenchange was
dispatched too early, but this is not affected since the did*
callbacks are the ones left in use.
The risk is that something done in the will* callbacks is too late if
done moved to the did* callbacks. That amounts to:
- Saving placeholder style and unwrapping/wrapping the renderer in
Fullscreen::willEnterFullScreenForElement().
- The overlayFullscreenVideoEnabled() bits in
HTMLMediaElement::willStopBeingFullscreenElement() and
FullscreenController::willExitFullScreen().
Since the only difference between will* and did* is that the new size
is known and events aren't fired synchronously, this seems likely to
be safe.
BUG=407002
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181218
Patch Set 1 #
Total comments: 2
Messages
Total messages: 20 (5 generated)
|