Skip to content

Commit d2b261d

Browse files
committed
LibWeb/DOM: Update references to ancestor revealing algorithms
No behaviour changes, because we don't yet implement the actual algorithm. Corresponds to: whatwg/html@55baf05
1 parent 1558304 commit d2b261d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Libraries/LibWeb/DOM/Document.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,21 +2896,19 @@ void Document::scroll_to_the_fragment()
28962896
// 3. Set document's target element to target.
28972897
set_target_element(target);
28982898

2899-
// FIXME: 4. Run the ancestor details revealing algorithm on target.
2899+
// FIXME: 4. Run the ancestor revealing algorithm on target.
29002900

2901-
// FIXME: 5. Run the ancestor hidden-until-found revealing algorithm on target.
2902-
2903-
// 6. Scroll target into view, with behavior set to "auto", block set to "start", and inline set to "nearest". [CSSOMVIEW]
2901+
// 5. Scroll target into view, with behavior set to "auto", block set to "start", and inline set to "nearest". [CSSOMVIEW]
29042902
ScrollIntoViewOptions scroll_options;
29052903
scroll_options.block = Bindings::ScrollLogicalPosition::Start;
29062904
scroll_options.inline_ = Bindings::ScrollLogicalPosition::Nearest;
29072905
(void)target->scroll_into_view(scroll_options);
29082906

2909-
// 7. Run the focusing steps for target, with the Document's viewport as the fallback target.
2907+
// 6. Run the focusing steps for target, with the Document's viewport as the fallback target.
29102908
// FIXME: Pass the Document's viewport somehow.
29112909
HTML::run_focusing_steps(target);
29122910

2913-
// FIXME: 8. Move the sequential focus navigation starting point to target.
2911+
// FIXME: 7. Move the sequential focus navigation starting point to target.
29142912
}
29152913
}
29162914

0 commit comments

Comments
 (0)