Issue #2124/2662: Cleaning of code

This commit is contained in:
MeladJM 2025-07-05 22:22:57 +08:00 committed by roytam1
commit dae72b452c
2 changed files with 1 additions and 9 deletions

View file

@ -6427,14 +6427,6 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
display->mOverflowY = NS_STYLE_OVERFLOW_HIDDEN;
}
// If 'visible' is specified but doesn't match the other dimension, it
// turns into 'auto'.
if (display->mOverflowX == NS_STYLE_OVERFLOW_VISIBLE) {
display->mOverflowX = NS_STYLE_OVERFLOW_AUTO;
}
if (display->mOverflowY == NS_STYLE_OVERFLOW_VISIBLE) {
display->mOverflowY = NS_STYLE_OVERFLOW_AUTO;
}
}
// When 'contain: paint', update overflow from 'visible' to 'clip'.