[webkit-changes] [WebKit/WebKit] f4a09a: Avoid hash map look up in InputType::createIfDiffe...

Ryosuke Niwa noreply at github.com
Fri Sep 16 01:28:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f4a09a78399bfe6e2964cf93745aa26c90b189aa
      https://github.com/WebKit/WebKit/commit/f4a09a78399bfe6e2964cf93745aa26c90b189aa
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M Source/WebCore/html/InputType.cpp

  Log Message:
  -----------
  Avoid hash map look up in InputType::createIfDifferent when possible
https://bugs.webkit.org/show_bug.cgi?id=245234

Reviewed by Darin Adler.

Added an early exit for when the current input type is equal to the new type.

* Source/WebCore/html/InputType.cpp:
(WebCore::InputType::createIfDifferent):

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




More information about the webkit-changes mailing list