[webkit-changes] [WebKit/WebKit] 6f118d: [content-visibility] Improve content-visibility: a...

Rob Buis noreply at github.com
Tue Aug 22 05:00:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f118d4b6dd04b9ffcb2162d641fff1242e0c804
      https://github.com/WebKit/WebKit/commit/6f118d4b6dd04b9ffcb2162d641fff1242e0c804
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M Source/WebCore/dom/ContentVisibilityDocumentState.cpp
    M Source/WebCore/dom/ContentVisibilityDocumentState.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/Element.h
    M Source/WebCore/dom/ElementRareData.cpp
    M Source/WebCore/dom/ElementRareData.h
    M Source/WebCore/page/LocalFrameView.cpp
    M Source/WebCore/page/Page.h

  Log Message:
  -----------
  [content-visibility] Improve content-visibility: auto code
https://bugs.webkit.org/show_bug.cgi?id=236711

Reviewed by Simon Fraser.

Address review comments from r266084.

* Source/WebCore/dom/ContentVisibilityDocumentState.cpp:
(WebCore::ContentVisibilityDocumentState::unobserve):
(WebCore::ContentVisibilityDocumentState::updateRelevancyOfContentVisibilityElements):
(WebCore::ContentVisibilityDocumentState::updateContentRelevancyForScrollIfNeeded):
(WebCore::ContentVisibilityDocumentState::updateContentRelevancyStatusForScrollIfNeeded): Deleted.
* Source/WebCore/dom/ContentVisibilityDocumentState.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::setFocusedElement):
(WebCore::Document::updateRelevancyOfContentVisibilityElements):
(WebCore::Document::scheduleContentRelevancyUpdate):
(WebCore::Document::updateContentRelevancyForScrollIfNeeded):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::scrollIntoView):
(WebCore::Element::scrollIntoViewIfNeeded):
(WebCore::Element::focus):
(WebCore::Element::addToTopLayer):
(WebCore::Element::removeFromTopLayer):
(WebCore::Element::isRelevantToUser const):
(WebCore::Element::contentRelevancy const):
(WebCore::Element::setContentRelevancy):
(WebCore::Element::contentVisibilityViewportChange):
(WebCore::Element::contentRelevancyStatus const): Deleted.
(WebCore::Element::setContentRelevancyStatus): Deleted.
* Source/WebCore/dom/Element.h:
* Source/WebCore/dom/ElementRareData.cpp:
* Source/WebCore/dom/ElementRareData.h:
(WebCore::ElementRareData::contentRelevancy const):
(WebCore::ElementRareData::setContentRelevancy):
(WebCore::ElementRareData::contentRelevancyStatus const): Deleted.
(WebCore::ElementRareData::setContentRelevancyStatus): Deleted.
* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::maintainScrollPositionAtAnchor):
* Source/WebCore/page/Page.h:

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




More information about the webkit-changes mailing list