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

Issue 365993002: Simplify FullscreenElementStack::fullScreenChangeDelayTimerFired() (Closed)

Created:
6 years, 5 months ago by philipj_slow
Modified:
6 years, 5 months ago
Reviewers:
falken
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Project:
blink
Visibility:
Public.

Description

Simplify FullscreenElementStack::fullScreenChangeDelayTimerFired() This function was needlessly complicated: 1. A null pointer is never pushed to the queues outside of this function, so by adding a null check for the internal push, the initial null handling can be removed. 2. !node->inDocument() implies !document()->contains(node.get()), so the latter can be dropped from the condition. No observable change is expected from this simplication. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177489

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -16 lines) Patch
M Source/core/dom/FullscreenElementStack.cpp View 2 chunks +4 lines, -16 lines 4 comments Download

Messages

Total messages: 8 (0 generated)
philipj_slow
PTAL Falling back to the documentElement is still a bit weird IMHO, but removing that ...
6 years, 5 months ago (2014-07-02 20:51:39 UTC) #1
philipj_slow
(Note that falling back to document instead of documentElement doesn't fail any tests and makes ...
6 years, 5 months ago (2014-07-02 21:03:37 UTC) #2
falken
Looks like a great simplification, I have a question about the "blown away" comment. https://codereview.chromium.org/365993002/diff/1/Source/core/dom/FullscreenElementStack.cpp ...
6 years, 5 months ago (2014-07-03 01:51:42 UTC) #3
philipj_slow
https://codereview.chromium.org/365993002/diff/1/Source/core/dom/FullscreenElementStack.cpp File Source/core/dom/FullscreenElementStack.cpp (left): https://codereview.chromium.org/365993002/diff/1/Source/core/dom/FullscreenElementStack.cpp#oldcode501 Source/core/dom/FullscreenElementStack.cpp:501: // The dispatchEvent below may have blown away our ...
6 years, 5 months ago (2014-07-03 13:53:00 UTC) #4
falken
https://codereview.chromium.org/365993002/diff/1/Source/core/dom/FullscreenElementStack.cpp File Source/core/dom/FullscreenElementStack.cpp (left): https://codereview.chromium.org/365993002/diff/1/Source/core/dom/FullscreenElementStack.cpp#oldcode501 Source/core/dom/FullscreenElementStack.cpp:501: // The dispatchEvent below may have blown away our ...
6 years, 5 months ago (2014-07-03 14:48:38 UTC) #5
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 5 months ago (2014-07-03 19:23:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/365993002/1
6 years, 5 months ago (2014-07-03 19:24:05 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 19:27:08 UTC) #8
Message was sent while issue was closed.
Change committed as 177489

Powered by Google App Engine
This is Rietveld 408576698