Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 729d9bb358d1634a1e8fd98b2a824950b0efc441
      
https://github.com/WebKit/WebKit/commit/729d9bb358d1634a1e8fd98b2a824950b0efc441
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-06-28 (Sun, 28 Jun 2026)

  Changed paths:
    M Source/WebCore/rendering/BorderPainter.cpp

  Log Message:
  -----------
  Cache deviceScaleFactor in BorderPainter::drawBoxSideFromPath
https://bugs.webkit.org/show_bug.cgi?id=318051
rdar://180836330

Reviewed by Alan Baradlay.

drawBoxSideFromPath() re-fetched document().deviceScaleFactor() up to four
times per call (and the function recurses for double/groove/ridge borders),
as flagged by an existing FIXME. Compute it once at the top of the function
and reuse it.

* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::drawBoxSideFromPath const):

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



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

Reply via email to