mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Revert "LibWeb: Cache intrinsic sizes across layout runs"
This reverts commit 12c6ac78e2
.
Very large performance regression when viewing GitHub repository pages.
This commit is contained in:
parent
12c6ac78e2
commit
73a4b176cf
Notes:
github-actions[bot]
2025-03-08 11:10:16 +00:00
Author: https://github.com/awesomekling
Commit: 73a4b176cf
13 changed files with 102 additions and 108 deletions
|
@ -2100,7 +2100,7 @@ void finalize_a_cross_document_navigation(GC::Ref<Navigable> navigable, HistoryH
|
|||
// AD-HOC: If we're inside a navigable container, let's trigger a relayout in the container document.
|
||||
// This allows size negotiation between the containing document and SVG documents to happen.
|
||||
if (auto container = navigable->container()) {
|
||||
container->set_needs_layout_update(DOM::SetNeedsLayoutReason::FinalizeACrossDocumentNavigation);
|
||||
container->document().set_needs_layout(DOM::SetNeedsLayoutReason::FinalizeACrossDocumentNavigation);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2223,7 +2223,7 @@ void Navigable::set_viewport_size(CSSPixelSize size)
|
|||
if (auto document = active_document()) {
|
||||
// NOTE: Resizing the viewport changes the reference value for viewport-relative CSS lengths.
|
||||
document->invalidate_style(DOM::StyleInvalidationReason::NavigableSetViewportSize);
|
||||
document->set_needs_layout_update(DOM::SetNeedsLayoutReason::NavigableSetViewportSize);
|
||||
document->set_needs_layout(DOM::SetNeedsLayoutReason::NavigableSetViewportSize);
|
||||
}
|
||||
|
||||
if (auto document = active_document()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue