Commit c874463
Reland "Fix scrolling into view in Treeoutline"
This is a reland of commit 1dcc489
Difference to original: I've added an await function to properly
wait for the expected scroll difference before asserting it.
Original change's description:
> Fix scrolling into view in Treeoutline
>
> The scrollable container for the Treeoutline has changed, and as a
> result, the wrong container was used for scrolling when we attempted
> to scoll an item in the tree into view.
>
> This CL changes the way we retrieve the correct scroll container.
> Instead of using the parent element, we either get the parent
> element or the shadow host.
>
> Fixed: 374592181
> Change-Id: Ib3d033b0a4d1c7f7b88e2af63f9bd1f67de452d9
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5961819
> Commit-Queue: Kim-Anh Tran <[email protected]>
> Reviewed-by: Benedikt Meurer <[email protected]>
Bug: 374592181
Change-Id: I56fa39a1473b5d40f4f1b0089302a079bf7fad53
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5969660
Auto-Submit: Kim-Anh Tran <[email protected]>
Commit-Queue: Benedikt Meurer <[email protected]>
Reviewed-by: Benedikt Meurer <[email protected]>1 parent 397bdd9 commit c874463
2 files changed
+61
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
354 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | | - | |
11 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
143 | 195 | | |
144 | 196 | | |
0 commit comments