Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4448da03e085eb3bf81435bed6455d9543750134
https://github.com/WebKit/WebKit/commit/4448da03e085eb3bf81435bed6455d9543750134
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-19 (Sat, 19 Sep 2026)
Changed paths:
M Source/WebCore/dom/Document.cpp
Log Message:
-----------
Document::implicitClose() re-evaluates ownerElement() and its renderer()
multiple times in one condition
https://bugs.webkit.org/show_bug.cgi?id=324647
rdar://187892190
Reviewed by Chris Dumez.
The post-load layout guard in Document::implicitClose() called
ownerElement() three times and renderer() twice within a single
condition. The values are stable across the call (nothing between them
mutates the frame or render tree), so this is redundant re-evaluation.
Hoist the owner element and its renderer into locals, matching the
RefPtr-based idiom used elsewhere in this file. No behavior change.
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::implicitClose):
Canonical link: https://commits.webkit.org/321467@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications