[webkit-changes] [WebKit/WebKit] 66ee16: Nodes with display::none should be considered sear...

megangardner noreply at github.com
Wed Sep 14 16:24:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 66ee16990695ad226e81dc8571801e9741031fa7
      https://github.com/WebKit/WebKit/commit/66ee16990695ad226e81dc8571801e9741031fa7
  Author: Megan Gardner <megan_gardner at apple.com>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    A LayoutTests/http/tests/scroll-to-text-fragment/word-display-none-expected.html
    A LayoutTests/http/tests/scroll-to-text-fragment/word-display-none.html
    M Source/WebCore/dom/FragmentDirectiveRangeFinder.cpp

  Log Message:
  -----------
  Nodes with display::none should be considered search invisible.
https://bugs.webkit.org/show_bug.cgi?id=245170
<rdar://99905766>

Reviewed by Devin Rousso.

Address a FIXME from the spec implementation, nodes with display::none should be
considered search-invisible and not considered valid for a fragment.

* LayoutTests/http/tests/scroll-to-text-fragment/word-display-none-expected.html: Added.
* LayoutTests/http/tests/scroll-to-text-fragment/word-display-none.html: Added.
* Source/WebCore/dom/FragmentDirectiveRangeFinder.cpp:
(WebCore::FragmentDirectiveRangeFinder::isSearchInvisible):

Canonical link: https://commits.webkit.org/254498@main




More information about the webkit-changes mailing list