-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute a fragmented offset for control clips of input boxes.
Boxes without control clips don't necessarily have PaintLayers, so in the current code are not necessarily fragmented. (*) Such boxes should only end up in one fragment, because fragmenting input elements or buttons doesn't make sense. This patch computes the position of that fragment, and places the control clip at that location. (*) This is being changed in another much bigger patch, but this bugfix is needed for M63. TBR=chrishtr@chromium.org (cherry picked from commit 945b31d) Bug: 772850 Change-Id: I187d3dcf9c0dea2b7703dd759bf8b5f2886d4e2e Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Reviewed-on: https://chromium-review.googlesource.com/720200 Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Reviewed-by: Tien-Ren Chen <trchen@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#508952} Reviewed-on: https://chromium-review.googlesource.com/721759 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/branch-heads/3239@{#11} Cr-Branched-From: adb61db-refs/heads/master@{#508578}
- Loading branch information
Showing
10 changed files
with
116 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
third_party/WebKit/LayoutTests/fast/multicol/input-with-overflow-second-column-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
layer at (0,0) size 800x600 | ||
LayoutView at (0,0) size 800x600 | ||
layer at (0,0) size 800x58 | ||
LayoutBlockFlow {HTML} at (0,0) size 800x58 | ||
LayoutBlockFlow {BODY} at (8,8) size 784x42 | ||
LayoutBlockFlow (anonymous) at (0,0) size 784x20 | ||
LayoutText {#text} at (0,0) size 663x19 | ||
text run at (0,0) width 663: "Passes if there is some \"testtest..\" content inside of an input box, shifted to the right into a second column." | ||
layer at (8,28) size 784x22 | ||
LayoutBlockFlow {DIV} at (0,20) size 784x22 | ||
LayoutMultiColumnSet (anonymous) at (0,0) size 784x22 | ||
layer at (8,28) size 117x88 | ||
LayoutMultiColumnFlowThread (anonymous) at (0,0) size 117.33x88 | ||
LayoutBlockFlow {DIV} at (0,0) size 117.33x50 | ||
LayoutBlockFlow (anonymous) at (0,66) size 117.33x22 | ||
LayoutTextControl {INPUT} at (0,0) size 64x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)] | ||
LayoutText {#text} at (0,0) size 0x0 | ||
layer at (10,97) size 60x16 scrollWidth 111 | ||
LayoutBlockFlow {DIV} at (2,3) size 60x16 | ||
LayoutText {#text} at (0,0) size 110x16 | ||
text run at (0,0) width 110: "testtesttesttesttest" |
9 changes: 9 additions & 0 deletions
9
third_party/WebKit/LayoutTests/fast/multicol/input-with-overflow-second-column.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!doctype HTML> | ||
Passes if there is some "testtest.." content inside of an input box, | ||
shifted to the right into a second column. | ||
<div style="column-width: 100px;"> | ||
<div style="height: 50px;"></div> | ||
<input type="text" value='testtesttesttesttest' size=5/> | ||
</div> | ||
|
||
|
Binary file added
BIN
+7.54 KB
...sts/platform/linux/fast/multicol/input-with-overflow-second-column-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.12 KB
...tform/mac-mac10.10/fast/multicol/input-with-overflow-second-column-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.11 KB
...tform/mac-mac10.11/fast/multicol/input-with-overflow-second-column-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.11 KB
...latform/mac-retina/fast/multicol/input-with-overflow-second-column-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.1 KB
...Tests/platform/mac/fast/multicol/input-with-overflow-second-column-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.05 KB
...Tests/platform/win/fast/multicol/input-with-overflow-second-column-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters