|
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
Total comments: 10
Total comments: 4
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
|
Total messages: 11 (0 generated)
|