mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Add opt-in tracing of set_needs_layout() calls with reason
This commit is contained in:
parent
415079bc11
commit
2abbf99a95
Notes:
github-actions[bot]
2025-03-08 02:39:00 +00:00
Author: https://github.com/awesomekling
Commit: 2abbf99a95
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3852
9 changed files with 50 additions and 12 deletions
|
@ -146,7 +146,7 @@ WebIDL::ExceptionOr<void> CharacterData::replace_data(size_t offset, size_t coun
|
|||
if (auto* layout_node = this->layout_node(); layout_node && layout_node->is_text_node())
|
||||
static_cast<Layout::TextNode&>(*layout_node).invalidate_text_for_rendering();
|
||||
|
||||
document().set_needs_layout();
|
||||
document().set_needs_layout(SetNeedsLayoutReason::CharacterDataReplaceData);
|
||||
document().bump_character_data_version();
|
||||
|
||||
if (m_grapheme_segmenter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue