Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ec22c1f4973c3e5c71a3c31d2f1644854c00b1cc
      
https://github.com/WebKit/WebKit/commit/ec22c1f4973c3e5c71a3c31d2f1644854c00b1cc
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-05-14 (Thu, 14 May 2026)

  Changed paths:
    M Source/WebCore/svg/graphics/SVGImage.cpp

  Log Message:
  -----------
  Remove redundant frame resize in SVGImage::setContainerSize()
https://bugs.webkit.org/show_bug.cgi?id=314799
rdar://177049202

Reviewed by Brent Fulgham.

setContainerSize() resized the frame view to containerSize() before
updating the renderer's container size. Since containerSize() reads
from the renderer (which hasn't been updated yet), this resized the
view to its existing size — a no-op in steady state.

Additionally, SVGImage::draw() already calls view->resize(containerSize())
before painting, after the renderer has the new size. Both internal call
sites (drawForContainer and nativeImage) invoke draw() shortly after,
so the intermediate resize is redundant.

No new test, since this just removes a redundant intermediate resize.

* Source/WebCore/svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::setContainerSize):

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



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

Reply via email to