mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
Bug 1209697: Clear ancestor intrinsic sizes when our block size changes
This commit is contained in:
parent
a49be72173
commit
b706df90da
1 changed files with 6 additions and 1 deletions
|
|
@ -1634,9 +1634,14 @@ nsStylePosition::CalcDifference(const nsStylePosition& aNewData,
|
|||
// also have percentage bsizes. This is handled via
|
||||
// nsChangeHint_UpdateComputedBSize which clears intrinsic sizes
|
||||
// for frames that have such replaced elements.
|
||||
//
|
||||
// We need to use nsChangeHint_ClearAncestorIntrinsics for
|
||||
// block-size changes so we clear results of cached CSS Flex
|
||||
// measuring reflows.
|
||||
hint |= nsChangeHint_NeedReflow |
|
||||
nsChangeHint_UpdateComputedBSize |
|
||||
nsChangeHint_ReflowChangesSizeOrPosition;
|
||||
nsChangeHint_ReflowChangesSizeOrPosition |
|
||||
nsChangeHint_ClearAncestorIntrinsics;
|
||||
}
|
||||
|
||||
if (isVertical ? heightChanged : widthChanged) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue