mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibWeb: Rename BrowsingContext::document() => active_document()
This better matches the spec nomenclature. Note that we don't yet *retrieve* the active document according to spec.
This commit is contained in:
parent
dd82f68326
commit
84fcf879f9
10 changed files with 69 additions and 69 deletions
|
@ -92,7 +92,7 @@ void EditEventHandler::handle_delete(DOM::Range& range)
|
|||
// FIXME: When nodes are removed from the DOM, the associated layout nodes become stale and still
|
||||
// remain in the layout tree. This has to be fixed, this just causes everything to be recomputed
|
||||
// which really hurts performance.
|
||||
m_frame.document()->force_layout();
|
||||
m_frame.active_document()->force_layout();
|
||||
|
||||
m_frame.did_edit({});
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ void EditEventHandler::handle_insert(DOM::Position position, u32 code_point)
|
|||
// FIXME: When nodes are removed from the DOM, the associated layout nodes become stale and still
|
||||
// remain in the layout tree. This has to be fixed, this just causes everything to be recomputed
|
||||
// which really hurts performance.
|
||||
m_frame.document()->force_layout();
|
||||
m_frame.active_document()->force_layout();
|
||||
|
||||
m_frame.did_edit({});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue