mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 18:17:29 +09:00
Issue #2124/2662: Cleaning of code
This commit is contained in:
parent
7626c99ceb
commit
dae72b452c
2 changed files with 1 additions and 9 deletions
|
|
@ -823,7 +823,7 @@ Declaration::GetPropertyValueInternal(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isCurrentColor =
|
isCurrentColor =
|
||||||
colorValue->GetUnit() == eCSSUnit_EnumColor &&
|
colorValue->GetUnit() == eCSSUnit_EnumColor &&
|
||||||
colorValue->GetIntValue() == NS_COLOR_CURRENTCOLOR;
|
colorValue->GetIntValue() == NS_COLOR_CURRENTCOLOR;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6427,14 +6427,6 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
|
||||||
display->mOverflowY = NS_STYLE_OVERFLOW_HIDDEN;
|
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'.
|
// When 'contain: paint', update overflow from 'visible' to 'clip'.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue