Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bb5eb07e81555e7b03f44a760c2554cfc3bba93f
      
https://github.com/WebKit/WebKit/commit/bb5eb07e81555e7b03f44a760c2554cfc3bba93f
  Author: Ruthvik Konda <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/WebCore/Modules/model-element/HTMLModelElement.cpp

  Log Message:
  -----------
  Use `URL::operator==` in `HTMLModelElement::setEnvironmentMap`
https://bugs.webkit.org/show_bug.cgi?id=313071
rdar://175377211

Reviewed by Mike Wyrzykowski.

`URL::operator==` is defined inline in `WTF/wtf/URL.h` as
`a.string() == b.string()`, so `url.string() == m_environmentMapURL.string()`
already performs the same comparison but with two extra `String`
temporaries visible at the call site. Use the operator directly.

No new tests needed (no behavioral change).

* Source/WebCore/Modules/model-element/HTMLModelElement.cpp:
(WebCore::HTMLModelElement::setEnvironmentMap):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to