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

Issue 2147803002: Clean up some OOPIF-related naming and comments in Fullscreen. (Closed)

Created:
4 years, 5 months ago by alexmos
Modified:
4 years, 5 months ago
Reviewers:
bokan, foolip
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, rwlbuis, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up some OOPIF-related naming and comments in Fullscreen. m_forCrossProcessAncestor was intended to mean that fullscreen was entered for an iframe container which is an ancestor of the actual fullscreen element, which also mirrors the :-webkit-full-screen-ancestor style that the container will gain. But on the flipside, this naming can also be confusing: if an ancestor of a cross-process iframe goes fullscreen, that iframe doesn't need to know about this at all, and instead it only needs to know when an element in a descendant frame goes fullscreen. It might make more sense to name this flag to reflect where the actual fullscreen element is, rather than how m_fullscreenElement relates to it, so this CL renames the flag to m_forCrossProcessDescendant and updates comments. BUG=550497 Committed: https://crrev.com/e8a038c24159f7938949c5c82fdd35c4c0be039e Cr-Commit-Position: refs/heads/master@{#405287}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Resolve conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -25 lines) Patch
M third_party/WebKit/Source/core/dom/Fullscreen.h View 1 4 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 7 chunks +17 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/web/FullscreenController.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
alexmos
Philip, please take a look. This is the renaming that we discussed. I also moved ...
4 years, 5 months ago (2016-07-12 23:28:48 UTC) #2
foolip
LGTM, thanks! If you get conflicts just try again, and if I see this in ...
4 years, 5 months ago (2016-07-13 08:58:14 UTC) #3
alexmos
Thanks! [also +site-isolation-reviews, which I forgot to include initially] https://codereview.chromium.org/2147803002/diff/1/third_party/WebKit/Source/core/dom/Fullscreen.cpp File third_party/WebKit/Source/core/dom/Fullscreen.cpp (right): https://codereview.chromium.org/2147803002/diff/1/third_party/WebKit/Source/core/dom/Fullscreen.cpp#newcode508 third_party/WebKit/Source/core/dom/Fullscreen.cpp:508: ...
4 years, 5 months ago (2016-07-13 17:52:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147803002/1
4 years, 5 months ago (2016-07-13 17:52:53 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/167207) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 18:03:27 UTC) #8
alexmos
bokan@: can you please review the trivial rename in Source/web/FullscreenController.cpp for OWNERS?
4 years, 5 months ago (2016-07-13 18:36:29 UTC) #10
bokan
rslgtm
4 years, 5 months ago (2016-07-13 18:37:18 UTC) #11
bokan
rs lgtm, rather
4 years, 5 months ago (2016-07-13 18:37:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147803002/20001
4 years, 5 months ago (2016-07-13 19:44:40 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-13 21:26:29 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 21:27:01 UTC) #17
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e8a038c24159f7938949c5c82fdd35c4c0be039e Cr-Commit-Position: refs/heads/master@{#405287}
4 years, 5 months ago (2016-07-13 21:28:14 UTC) #19
foolip
4 years, 5 months ago (2016-07-13 21:40:30 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2147803002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/dom/Fullscreen.cpp (right):

https://codereview.chromium.org/2147803002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/dom/Fullscreen.cpp:516: // that contains the
actual fullscreen element.   Hence, it must also set
On 2016/07/13 17:52:18, alexmos wrote:
> On 2016/07/13 08:58:14, foolip wrote:
> > I'm really looking forward to getting rid of :-webkit-full-screen-ancestor
:)
> 
> That sounds great. :)  I guess that's because it isn't part of the spec
anymore?
>  Do we have/need counters that existing web content isn't relying on it?  I
see
> that Mozilla just did this too, which is exciting:
>
https://www.fxsitecompat.com/en-CA/docs/2016/moz-full-screen-ancestor-has-bee...

It was completely necessary before in order to get the ancestor elements out of
the way, but now the ancestor elements won't be ancestor layout objects so there
won't be much useful you can do with :-webkit-full-screen-ancestor. The use
counter is https://www.chromestatus.com/metrics/feature/timeline/popularity/628
but I don't think that's a good predictor of risk, I'd have to search
httparchive before attempting a removal.

The last remaining thing that depends on it is to remove scrollbars, but I think
that could be done without the selector.

Powered by Google App Engine
This is Rietveld 408576698