Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 13a6b1ddfcb06175ad207b80ce914ea76963901d
https://github.com/WebKit/WebKit/commit/13a6b1ddfcb06175ad207b80ce914ea76963901d
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M Source/WebCore/rendering/svg/SVGRenderingContext.cpp
Log Message:
-----------
[SVG] Remove redundant duplicate condition in
SVGRenderingContext::prepareToRenderSVGContent
https://bugs.webkit.org/show_bug.cgi?id=318082
rdar://180876883
Reviewed by Rob Buis.
In prepareToRenderSVGContent() the inner `if` guarding the transparency
layer setup tested the exact same condition as the enclosing `if`
(opacity < 1 || hasBlendMode || isolateMaskForBlending || hasIsolation).
The inner check can never be false when reached, so it was dead code.
Remove the redundant nested condition. No behavior change.
* Source/WebCore/rendering/svg/SVGRenderingContext.cpp:
(WebCore::SVGRenderingContext::prepareToRenderSVGContent):
Canonical link: https://commits.webkit.org/316004@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications