mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #2694 - Improve nested grid layout performance by caching.
This improves performance by caching the grid items' block axis measurement, avoiding potentially exponential calculations and reflows. Resolves #2694
This commit is contained in:
parent
2da039daac
commit
25570dc572
3 changed files with 132 additions and 1 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#include "nsLayoutUtils.h"
|
||||
#include "LayoutLogging.h"
|
||||
#include "mozilla/RestyleManager.h"
|
||||
#include "nsGridContainerFrame.h"
|
||||
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsISelection.h"
|
||||
|
|
@ -4382,6 +4383,8 @@ nsFrame::MarkIntrinsicISizesDirty()
|
|||
if (GetStateBits() & NS_FRAME_FONT_INFLATION_FLOW_ROOT) {
|
||||
nsFontInflationData::MarkFontInflationDataTextDirty(this);
|
||||
}
|
||||
|
||||
RemoveProperty(nsGridContainerFrame::CachedBAxisMeasurement::Prop());
|
||||
}
|
||||
|
||||
/* virtual */ nscoord
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue