mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
Bug 1626152 - Clear cached result instead of removing the property. r=dholbert
This saves an allocation. Differential Revision: https://phabricator.services.mozilla.com/D69030 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
522595339d
commit
9c2fc7df65
@ -1768,7 +1768,9 @@ class nsFlexContainerFrame::CachedFlexItemData {
|
||||
|
||||
void nsFlexContainerFrame::MarkCachedFlexMeasurementsDirty(
|
||||
nsIFrame* aItemFrame) {
|
||||
aItemFrame->RemoveProperty(CachedFlexItemData::Prop());
|
||||
if (auto* cache = aItemFrame->GetProperty(CachedFlexItemData::Prop())) {
|
||||
cache->mBAxisMeasurement.reset();
|
||||
}
|
||||
}
|
||||
|
||||
const CachedBAxisMeasurement&
|
||||
|
Loading…
x
Reference in New Issue
Block a user