[webkit-changes] [WebKit/WebKit] dd81c7: Avoid branching in CSSParserToken's value() & init...

Chris Dumez noreply at github.com
Tue Sep 12 12:20:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dd81c72345be6c482cb26c05682d0fc6c1ab135b
      https://github.com/WebKit/WebKit/commit/dd81c72345be6c482cb26c05682d0fc6c1ab135b
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-09-12 (Tue, 12 Sep 2023)

  Changed paths:
    M Source/WTF/wtf/text/StringView.h
    M Source/WebCore/css/parser/CSSParserToken.h

  Log Message:
  -----------
  Avoid branching in CSSParserToken's value() & initValueFromStringView()
https://bugs.webkit.org/show_bug.cgi?id=261451

Reviewed by Darin Adler.

* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::StringView):
(WTF::StringView::rawCharacters):
* Source/WebCore/css/parser/CSSParserToken.h:
(WebCore::CSSParserToken::value const):
(WebCore::CSSParserToken::initValueFromStringView):

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




More information about the webkit-changes mailing list