mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/DOM: Update references to ancestor revealing algorithms
No behaviour changes, because we don't yet implement the actual
algorithm.
Corresponds to:
55baf054d2
This commit is contained in:
parent
15583040df
commit
d2b261d28e
Notes:
github-actions[bot]
2025-12-01 11:09:32 +00:00
Author: https://github.com/AtkinsSJ
Commit: d2b261d28e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6960
1 changed files with 4 additions and 6 deletions
|
|
@ -2896,21 +2896,19 @@ void Document::scroll_to_the_fragment()
|
|||
// 3. Set document's target element to target.
|
||||
set_target_element(target);
|
||||
|
||||
// FIXME: 4. Run the ancestor details revealing algorithm on target.
|
||||
// FIXME: 4. Run the ancestor revealing algorithm on target.
|
||||
|
||||
// FIXME: 5. Run the ancestor hidden-until-found revealing algorithm on target.
|
||||
|
||||
// 6. Scroll target into view, with behavior set to "auto", block set to "start", and inline set to "nearest". [CSSOMVIEW]
|
||||
// 5. Scroll target into view, with behavior set to "auto", block set to "start", and inline set to "nearest". [CSSOMVIEW]
|
||||
ScrollIntoViewOptions scroll_options;
|
||||
scroll_options.block = Bindings::ScrollLogicalPosition::Start;
|
||||
scroll_options.inline_ = Bindings::ScrollLogicalPosition::Nearest;
|
||||
(void)target->scroll_into_view(scroll_options);
|
||||
|
||||
// 7. Run the focusing steps for target, with the Document's viewport as the fallback target.
|
||||
// 6. Run the focusing steps for target, with the Document's viewport as the fallback target.
|
||||
// FIXME: Pass the Document's viewport somehow.
|
||||
HTML::run_focusing_steps(target);
|
||||
|
||||
// FIXME: 8. Move the sequential focus navigation starting point to target.
|
||||
// FIXME: 7. Move the sequential focus navigation starting point to target.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue