mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Make Node::parent_element return GC::Ptr
This is useful for people like myself who run with debug mode to more reliably get stacktraces without spinning up a debugger.
This commit is contained in:
parent
a14481ee05
commit
3e17b1c9ae
Notes:
github-actions[bot]
2025-04-18 09:08:36 +00:00
Author: https://github.com/shannonbooth
Commit: 3e17b1c9ae
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4393
18 changed files with 48 additions and 54 deletions
|
@ -1440,7 +1440,7 @@ void Document::update_layout(UpdateLayoutReason reason)
|
|||
if (node_invalidation.rebuild_layout_tree) {
|
||||
// We mark layout tree for rebuild starting from parent element to correctly invalidate
|
||||
// "display" property change to/from "contents" value.
|
||||
if (auto* parent_element = node.parent_element()) {
|
||||
if (auto parent_element = node.parent_element()) {
|
||||
parent_element->set_needs_layout_tree_update(true);
|
||||
} else {
|
||||
node.set_needs_layout_tree_update(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue