[webkit-changes] [WebKit/WebKit] 21b682: CSS Custom Highlights optimization add flag for wh...

Jessica Cheung noreply at github.com
Fri Aug 4 20:50:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 21b682820f4a338153863fdb544d2fc12a1daf14
      https://github.com/WebKit/WebKit/commit/21b682820f4a338153863fdb544d2fc12a1daf14
  Author: Jessica Cheung <jcheung23 at apple.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Range.cpp
    M Source/WebCore/dom/Range.h

  Log Message:
  -----------
  CSS Custom Highlights optimization add flag for when live ranges are changed
https://bugs.webkit.org/show_bug.cgi?id=259804
rdar://113361192

Reviewed by Ryosuke Niwa.

Does not collect range data for live ranges that were not changed/updated.
Before, would collect range data for all live ranges all the time, and repainting them.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::collectRangeDataFromRegister):
* Source/WebCore/dom/Range.cpp:
(WebCore::Range::setStart):
(WebCore::Range::setEnd):
(WebCore::Range::nodeChildrenChanged):
(WebCore::Range::nodeChildrenWillBeRemoved):
(WebCore::Range::nodeWillBeRemoved):
(WebCore::Range::textInserted):
(WebCore::Range::textRemoved):
(WebCore::Range::textNodesMerged):
(WebCore::Range::textNodeSplit):
* Source/WebCore/dom/Range.h:

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




More information about the webkit-changes mailing list