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

Issue 788073004: Replace RenderFullscreen with top layer - Take II (Closed)

Created:
6 years ago by Julien - ping for review
Modified:
5 years, 2 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-rendering, dglazkov+blink, Dominik Röttsches, eae+blinkwatch, ed+blinkwatch_opera.com, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, sof, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Replace RenderFullscreen with top layer - Take II This patch is strongly inspired by https://codereview.chromium.org/134753003/ but is a complete rewrite of the change to: - understand why every bits was needed (some were not). - better document the differences we have with the specification so that we can track and fix them. The issue with re-attaching plugins went away due to https://codereview.chromium.org/23618022, which moved the plugin's lifecycle to the DOM. The tests' changes are because fullscreen doesn't center by default anymore but stretches the element to the viewport's size. Some tests were also not accounting for the backdrop and where thus modified. BUG=240576, 246077, 398599

Patch Set 1 #

Total comments: 15

Patch Set 2 : Updated after review comments. #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -495 lines) Patch
M LayoutTests/fast/css/invalidation/fullscreen.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/invalidation/fullscreen-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fullscreen/enter-exit-full-screen-hover.html View 2 chunks +9 lines, -1 line 0 comments Download
M LayoutTests/fullscreen/full-screen-iframe-zIndex-expected.html View 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-is-in-top-layer.html View 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-is-in-top-layer-expected.html View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-render-inline-expected.html View 1 chunk +1 line, -2 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-video-has-backdrop.html View 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fullscreen/full-screen-video-has-backdrop-expected.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
M LayoutTests/fullscreen/full-screen-zIndex-expected.html View 1 chunk +5 lines, -6 lines 0 comments Download
M LayoutTests/fullscreen/parent-flow-inline-with-block-child-expected.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fullscreen/resources/empty.html View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/css/fullscreen.css View 1 1 chunk +30 lines, -47 lines 1 comment Download
M Source/core/css/resolver/StyleAdjuster.cpp View 2 chunks +17 lines, -2 lines 2 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 chunk +1 line, -1 line 1 comment Download
M Source/core/dom/Document.cpp View 1 1 chunk +7 lines, -3 lines 0 comments Download
M Source/core/dom/Fullscreen.h View 1 4 chunks +2 lines, -6 lines 2 comments Download
M Source/core/dom/Fullscreen.cpp View 8 chunks +10 lines, -50 lines 1 comment Download
M Source/core/dom/RenderTreeBuilder.cpp View 2 chunks +0 lines, -7 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/rendering/RenderBox.h View 2 chunks +4 lines, -4 lines 0 comments Download
D Source/core/rendering/RenderFullScreen.h View 1 chunk +0 lines, -63 lines 0 comments Download
D Source/core/rendering/RenderFullScreen.cpp View 1 chunk +0 lines, -214 lines 0 comments Download
M Source/core/rendering/RenderInline.cpp View 2 chunks +0 lines, -12 lines 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.h View 3 chunks +1 line, -7 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderVideo.h View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/rendering/RenderVideo.cpp View 2 chunks +0 lines, -42 lines 0 comments Download
M Source/web/FullscreenController.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/FullscreenController.cpp View 1 chunk +4 lines, -3 lines 2 comments Download
M Source/web/tests/WebFrameTest.cpp View 4 chunks +37 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (3 generated)
Julien - ping for review
Time to revive sync'ing fullscreen with the specification. @falken: I removed some part of your ...
6 years ago (2014-12-13 00:08:29 UTC) #2
falken
Thanks so much for reviving this. The challenge I had with the old patch was ...
6 years ago (2014-12-15 08:19:51 UTC) #3
rune
https://codereview.chromium.org/788073004/diff/1/LayoutTests/fast/css/invalidation/fullscreen-expected.txt File LayoutTests/fast/css/invalidation/fullscreen-expected.txt (right): https://codereview.chromium.org/788073004/diff/1/LayoutTests/fast/css/invalidation/fullscreen-expected.txt#newcode7 LayoutTests/fast/css/invalidation/fullscreen-expected.txt:7: PASS internals.updateStyleAndReturnAffectedElementCount() is 3 This is due to a ...
6 years ago (2014-12-15 09:39:51 UTC) #5
esprehn
This won't work as-is, you'll make flash restart on reattach which breaks a bunch of ...
6 years ago (2014-12-15 09:45:32 UTC) #6
rune
On 2014/12/15 at 09:45:32, esprehn wrote: > https://codereview.chromium.org/788073004/diff/1/Source/web/FullscreenController.cpp#newcode174 > Source/web/FullscreenController.cpp:174: document->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::FullScreen)); > On 2014/12/15 ...
6 years ago (2014-12-15 09:56:41 UTC) #7
rune
On 2014/12/15 at 09:56:41, rune wrote: > On 2014/12/15 at 09:45:32, esprehn wrote: > > ...
6 years ago (2014-12-15 10:08:20 UTC) #8
Julien - ping for review
On 2014/12/15 at 08:19:51, falken wrote: > Thanks so much for reviving this. The challenge ...
6 years ago (2014-12-15 16:49:22 UTC) #9
rune
On 2014/12/15 at 10:08:20, rune wrote: > On 2014/12/15 at 09:56:41, rune wrote: > > ...
6 years ago (2014-12-15 16:58:31 UTC) #10
rune
On 2014/12/15 at 16:58:31, rune wrote: > https://codereview.chromium.org/807473002 > https://codereview.chromium.org/803133002 > > Latter depending on ...
6 years ago (2014-12-15 17:02:13 UTC) #11
Julien - ping for review
On 2014/12/15 at 09:45:32, esprehn wrote: > This won't work as-is, you'll make flash restart ...
6 years ago (2014-12-15 17:02:43 UTC) #12
Julien - ping for review
https://codereview.chromium.org/788073004/diff/1/LayoutTests/fast/css/invalidation/fullscreen-expected.txt File LayoutTests/fast/css/invalidation/fullscreen-expected.txt (right): https://codereview.chromium.org/788073004/diff/1/LayoutTests/fast/css/invalidation/fullscreen-expected.txt#newcode7 LayoutTests/fast/css/invalidation/fullscreen-expected.txt:7: PASS internals.updateStyleAndReturnAffectedElementCount() is 3 On 2014/12/15 09:39:51, rune wrote: ...
6 years ago (2014-12-15 17:02:53 UTC) #13
Julien - ping for review
> I will need to test but I thought that https://codereview.chromium.org/23618022 would have taken of ...
6 years ago (2014-12-15 21:32:03 UTC) #14
rune
https://codereview.chromium.org/788073004/diff/1/Source/web/FullscreenController.cpp File Source/web/FullscreenController.cpp (right): https://codereview.chromium.org/788073004/diff/1/Source/web/FullscreenController.cpp#newcode174 Source/web/FullscreenController.cpp:174: document->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::FullScreen)); On 2014/12/15 17:02:53, Julien Chaffraix - PST ...
6 years ago (2014-12-16 14:22:14 UTC) #15
Julien - ping for review
On 2014/12/16 at 14:22:14, rune wrote: > https://codereview.chromium.org/788073004/diff/1/Source/web/FullscreenController.cpp > File Source/web/FullscreenController.cpp (right): > > https://codereview.chromium.org/788073004/diff/1/Source/web/FullscreenController.cpp#newcode174 ...
6 years ago (2014-12-16 17:00:59 UTC) #16
rune
https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp#newcode187 Source/core/css/resolver/StyleAdjuster.cpp:187: style->setHeight(Length(viewportSize.height(), Fixed)); This looks very weird to me. If ...
6 years ago (2014-12-16 19:10:24 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp File Source/core/css/resolver/StyleAdjuster.cpp (right): https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp#newcode187 Source/core/css/resolver/StyleAdjuster.cpp:187: style->setHeight(Length(viewportSize.height(), Fixed)); On 2014/12/16 19:10:24, rune wrote: > This ...
6 years ago (2014-12-16 19:34:33 UTC) #18
rune
On 2014/12/16 at 19:34:33, aelias wrote: > https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp > File Source/core/css/resolver/StyleAdjuster.cpp (right): > > https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleAdjuster.cpp#newcode187 ...
6 years ago (2014-12-16 19:54:25 UTC) #19
aelias_OOO_until_Jul13
On 2014/12/16 at 19:54:25, rune wrote: > > We don't support pinch zoom in fullscreen; ...
6 years ago (2014-12-16 20:07:31 UTC) #20
rune
On 2014/12/16 at 20:07:31, aelias wrote: > On 2014/12/16 at 19:54:25, rune wrote: > > ...
6 years ago (2014-12-16 20:22:19 UTC) #21
rune
On 2014/12/16 at 17:00:59, jchaffraix wrote: > On 2014/12/16 at 14:22:14, rune wrote: > > ...
6 years ago (2014-12-16 20:25:52 UTC) #22
rune
On 2014/12/16 at 20:25:52, rune wrote: > On 2014/12/16 at 17:00:59, jchaffraix wrote: > > ...
6 years ago (2014-12-16 20:33:38 UTC) #23
philipj_slow
Sorry for being late to the party, I'm actually very excited about this change! Source/core/css/fullscreen.css, ...
5 years, 10 months ago (2015-02-12 08:19:17 UTC) #24
esprehn
https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/788073004/diff/20001/Source/core/css/resolver/StyleResolver.cpp#newcode736 Source/core/css/resolver/StyleResolver.cpp:736: if (pseudoId != BACKDROP && !parentRenderer->canHaveGeneratedChildren()) The parentRenderer for ...
5 years, 10 months ago (2015-02-20 06:23:45 UTC) #25
rune
https://codereview.chromium.org/788073004/diff/20001/Source/web/FullscreenController.cpp File Source/web/FullscreenController.cpp (right): https://codereview.chromium.org/788073004/diff/20001/Source/web/FullscreenController.cpp#newcode174 Source/web/FullscreenController.cpp:174: document->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::FullScreen)); On 2015/02/20 06:23:45, esprehn wrote: > Doing ...
5 years, 10 months ago (2015-02-23 10:23:31 UTC) #26
esprehn
On 2015/02/23 at 10:23:31, rune wrote: > https://codereview.chromium.org/788073004/diff/20001/Source/web/FullscreenController.cpp > File Source/web/FullscreenController.cpp (right): > > https://codereview.chromium.org/788073004/diff/20001/Source/web/FullscreenController.cpp#newcode174 ...
5 years, 10 months ago (2015-02-23 16:41:19 UTC) #27
esprehn
On 2015/02/23 at 10:23:31, rune wrote: > https://codereview.chromium.org/788073004/diff/20001/Source/web/FullscreenController.cpp > File Source/web/FullscreenController.cpp (right): > > https://codereview.chromium.org/788073004/diff/20001/Source/web/FullscreenController.cpp#newcode174 ...
5 years, 10 months ago (2015-02-23 16:41:24 UTC) #28
dsinclair
On 2014/12/15 at 21:32:03, jchaffraix wrote: > > I will need to test but I ...
5 years, 7 months ago (2015-05-07 20:47:31 UTC) #29
falken
On 2015/05/07 20:47:31, dsinclair wrote: > On 2014/12/15 at 21:32:03, jchaffraix wrote: > > > ...
5 years, 7 months ago (2015-05-08 05:48:47 UTC) #30
dsinclair
On 2015/05/08 at 05:48:47, falken wrote: > On 2015/05/07 20:47:31, dsinclair wrote: > > On ...
5 years, 7 months ago (2015-05-08 18:51:24 UTC) #31
falken
On 2015/05/08 18:51:24, (OOO until May 19th) dsinclair wrote: > On 2015/05/08 at 05:48:47, falken ...
5 years, 7 months ago (2015-05-11 03:25:01 UTC) #32
dsinclair
5 years, 4 months ago (2015-08-05 18:16:20 UTC) #34
Julien - ping for review
5 years, 2 months ago (2015-10-01 15:39:00 UTC) #35
This is super seeded by Dan's patch in
https://codereview.chromium.org/1363023005

Powered by Google App Engine
This is Rietveld 408576698