mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibWeb: Rename "frame" to "browsing_context" in various places
We renamed the Frame class to BrowsingContext a while back, but forgot to update some variable names.
This commit is contained in:
parent
5dd4b3eaaa
commit
41fe02e012
7 changed files with 82 additions and 82 deletions
|
@ -33,7 +33,7 @@ void EditEventHandler::handle_delete_character_after(const DOM::Position& cursor
|
|||
builder.append(text.substring_view(cursor_position.offset() + code_point_length));
|
||||
node.set_data(builder.to_string());
|
||||
|
||||
m_frame.did_edit({});
|
||||
m_browsing_context.did_edit({});
|
||||
}
|
||||
|
||||
// This method is quite convoluted but this is necessary to make editing feel intuitive.
|
||||
|
@ -92,9 +92,9 @@ 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.active_document()->force_layout();
|
||||
m_browsing_context.active_document()->force_layout();
|
||||
|
||||
m_frame.did_edit({});
|
||||
m_browsing_context.did_edit({});
|
||||
}
|
||||
|
||||
void EditEventHandler::handle_insert(DOM::Position position, u32 code_point)
|
||||
|
@ -114,8 +114,8 @@ 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.active_document()->force_layout();
|
||||
m_browsing_context.active_document()->force_layout();
|
||||
|
||||
m_frame.did_edit({});
|
||||
m_browsing_context.did_edit({});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue