[webkit-changes] [WebKit/WebKit] 21f7c3: DOMTokenList should take more advantage of AtomString

Ryosuke Niwa noreply at github.com
Wed Jan 10 12:22:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 21f7c39a0c3e3d47409eb8b225c037df243c1dcd
      https://github.com/WebKit/WebKit/commit/21f7c39a0c3e3d47409eb8b225c037df243c1dcd
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

  Changed paths:
    M Source/WebCore/html/DOMTokenList.cpp
    M Source/WebCore/html/DOMTokenList.h

  Log Message:
  -----------
  DOMTokenList should take more advantage of AtomString
https://bugs.webkit.org/show_bug.cgi?id=267313

Reviewed by Yusuke Suzuki.

Take advantage of the fact updateTokensFromAttributeValue and updateAssociatedAttributeFromTokens
can both receive AtomString as arguments.

* Source/WebCore/html/DOMTokenList.cpp:
(WebCore::replaceInOrderedSet):
(WebCore::DOMTokenList::updateTokensFromAttributeValue):
(WebCore::DOMTokenList::updateAssociatedAttributeFromTokens):
(WebCore::DOMTokenList::tokens):
* Source/WebCore/html/DOMTokenList.h:
(WebCore::DOMTokenList::tokens const):

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




More information about the webkit-changes mailing list