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

Issue 14373010: Make abspos <dialog>'s containing block be the ICB. (Closed)

Created:
7 years, 8 months ago by falken
Modified:
7 years, 7 months ago
CC:
blink-reviews, esprehn, ojan
Visibility:
Public.

Description

Make abspos <dialog>'s containing block be the ICB. With this commit, absolutely positioned dialogs are reparented by the RenderView, so that their containing block is the initial containing block. Particularly for dialogs that are laid out to be centered in the viewport, the ICB makes more sense than the usual containing block for things like percent lengths. It also eliminates the need to translate absolute to local coordinates when centering the dialog. Instead of forcibly moving the renderer, I first tried to modify containingBlock() to return RenderView, but this did not work, likely due to bad interactions with RenderLayer (see the discussion in https://codereview.chromium.org/13792002). BUG=234072 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150190

Patch Set 1 #

Total comments: 10

Patch Set 2 : sync #

Patch Set 3 : review comments #

Total comments: 4

Patch Set 4 : sync #

Patch Set 5 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -69 lines) Patch
M LayoutTests/fast/dom/HTMLDialogElement/non-anchored-dialog-positioning.html View 3 chunks +26 lines, -17 lines 0 comments Download
M LayoutTests/fast/dom/HTMLDialogElement/non-anchored-dialog-positioning-expected.txt View 2 chunks +9 lines, -9 lines 0 comments Download
A LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-containing-block.html View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-containing-block-expected.html View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-scrolled-viewport.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-scrolled-viewport-expected.html View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block.html View 2 chunks +5 lines, -15 lines 0 comments Download
M LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-expected.html View 1 chunk +5 lines, -17 lines 0 comments Download
A LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-scrolled-viewport.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-scrolled-viewport-expected.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/NodeRenderingContext.cpp View 1 2 3 4 4 chunks +15 lines, -6 lines 0 comments Download
M Source/core/html/HTMLDialogElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLDialogElement.cpp View 1 2 3 2 chunks +9 lines, -5 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
falken
Hi all, Here's the reparenting by RenderView patch. Please take a look.
7 years, 8 months ago (2013-04-25 08:22:12 UTC) #1
Julien - ping for review
FWIW I think we should try to keep NodeRenderingContext::parentRenderer close to nextRenderer (that was one ...
7 years, 7 months ago (2013-05-01 23:35:48 UTC) #2
falken
Thanks for the review. I'll work on updating the patch next week (it's Golden Week ...
7 years, 7 months ago (2013-05-02 13:11:59 UTC) #3
Julien - ping for review
>> FWIW I think we should try to keep NodeRenderingContext::parentRenderer close to >> nextRenderer (that ...
7 years, 7 months ago (2013-05-02 16:27:48 UTC) #4
falken
Hi Julien, please take another look. I'm still not sure I understand what you mean ...
7 years, 7 months ago (2013-05-08 08:13:29 UTC) #5
Julien - ping for review
The change looks fine but I really would like to see more explanations about the ...
7 years, 7 months ago (2013-05-09 18:46:58 UTC) #6
falken
Thanks for the review. https://codereview.chromium.org/14373010/diff/15001/LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-scrolled-viewport.html File LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-scrolled-viewport.html (right): https://codereview.chromium.org/14373010/diff/15001/LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-scrolled-viewport.html#newcode14 LayoutTests/fast/dom/HTMLDialogElement/top-layer-containing-block-scrolled-viewport.html:14: viewport. On 2013/05/09 18:46:58, Julien ...
7 years, 7 months ago (2013-05-10 05:50:25 UTC) #7
Julien - ping for review
LGTM. I would really like if the ref-tests you are adding could be converted to ...
7 years, 7 months ago (2013-05-10 21:04:56 UTC) #8
falken
Thanks for the review! I'll convert the reftests in the next patch. https://codereview.chromium.org/14373010/diff/26001/Source/core/html/HTMLDialogElement.cpp File Source/core/html/HTMLDialogElement.cpp ...
7 years, 7 months ago (2013-05-13 03:04:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/14373010/26001
7 years, 7 months ago (2013-05-13 03:11:50 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-13 04:02:28 UTC) #11
Message was sent while issue was closed.
Change committed as 150190

Powered by Google App Engine
This is Rietveld 408576698