mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2765 - Part 1: Scrollbar width should be treated as a non-inherited property
Note: non-inherited properties are stored in "reset" style structs. Previous implementation treats it as an inherited property, which doesn't match the spec. This also fixes the incorrect behavior when using the `unset` value for this property by specifying SETVAL_UNSET_INITIAL in the mask.
This commit is contained in:
parent
80b542efc3
commit
8236eec152
7 changed files with 24 additions and 24 deletions
|
|
@ -5377,14 +5377,6 @@ nsRuleNode::ComputeUserInterfaceData(void* aStartStruct,
|
|||
// caret-color: auto, color, inherit
|
||||
setComplexColor(aRuleData->ValueForCaretColor(),
|
||||
&nsStyleUserInterface::mCaretColor);
|
||||
|
||||
// scrollbar-width: auto, thin, none
|
||||
SetValue(*aRuleData->ValueForScrollbarWidth(),
|
||||
ui->mScrollbarWidth,
|
||||
conditions,
|
||||
SETVAL_ENUMERATED,
|
||||
parentUI->mScrollbarWidth,
|
||||
StyleScrollbarWidth::Auto);
|
||||
|
||||
COMPUTE_END_INHERITED(UserInterface, ui)
|
||||
}
|
||||
|
|
@ -5434,6 +5426,14 @@ nsRuleNode::ComputeUIResetData(void* aStartStruct,
|
|||
parentUI->mWindowShadow,
|
||||
NS_STYLE_WINDOW_SHADOW_DEFAULT);
|
||||
|
||||
// scrollbar-width: auto, thin, none
|
||||
SetValue(*aRuleData->ValueForScrollbarWidth(),
|
||||
ui->mScrollbarWidth,
|
||||
conditions,
|
||||
SETVAL_ENUMERATED | SETVAL_UNSET_INITIAL,
|
||||
parentUI->mScrollbarWidth,
|
||||
StyleScrollbarWidth::Auto);
|
||||
|
||||
COMPUTE_END_RESET(UIReset, ui)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue