Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f7089414675bf668a0d6f8b2dd2e6a01f74a328b
      
https://github.com/WebKit/WebKit/commit/f7089414675bf668a0d6f8b2dd2e6a01f74a328b
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-08-20 (Thu, 20 Aug 2026)

  Changed paths:
    M Source/WebCore/html/canvas/CanvasStyle.cpp

  Log Message:
  -----------
  Avoid copying CSSParserContext on every canvas fillStyle/strokeStyle 
assignment
https://bugs.webkit.org/show_bug.cgi?id=322159
rdar://185385917

Reviewed by Chris Dumez.

CanvasBase::cssParserContext() returns a const reference, but parseColor()
bound it to `auto` and deep-copied it. Bind a reference instead.
m_cssParserContext is only assigned by the lazy getter and never reset,
so it stays valid for the rest of the function.

No change in behavior, so no new tests.

* Source/WebCore/html/canvas/CanvasStyle.cpp:
(WebCore::parseColor):

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



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

Reply via email to