forked from mirrors/gecko-dev
Bug 1899042 - Remove untested and unimplemented align="char" value for tables. r=jfkthame,layout-reviewers
Other engines also don't implement it, so moderately sure this is safe. Differential Revision: https://phabricator.services.mozilla.com/D212549
This commit is contained in:
parent
ae567c7141
commit
0526c2a5c0
3 changed files with 5 additions and 8 deletions
|
|
@ -1222,9 +1222,11 @@ bool nsGenericHTMLElement::ParseAlignValue(const nsAString& aString,
|
|||
//----------------------------------------
|
||||
|
||||
static const nsAttrValue::EnumTable kTableHAlignTable[] = {
|
||||
{"left", StyleTextAlign::Left}, {"right", StyleTextAlign::Right},
|
||||
{"center", StyleTextAlign::Center}, {"char", StyleTextAlign::Char},
|
||||
{"justify", StyleTextAlign::Justify}, {nullptr, 0}};
|
||||
{"left", StyleTextAlign::Left},
|
||||
{"right", StyleTextAlign::Right},
|
||||
{"center", StyleTextAlign::Center},
|
||||
{"justify", StyleTextAlign::Justify},
|
||||
{nullptr, 0}};
|
||||
|
||||
bool nsGenericHTMLElement::ParseTableHAlignValue(const nsAString& aString,
|
||||
nsAttrValue& aResult) {
|
||||
|
|
@ -1238,7 +1240,6 @@ static const nsAttrValue::EnumTable kTableCellHAlignTable[] = {
|
|||
{"left", StyleTextAlign::MozLeft},
|
||||
{"right", StyleTextAlign::MozRight},
|
||||
{"center", StyleTextAlign::MozCenter},
|
||||
{"char", StyleTextAlign::Char},
|
||||
{"justify", StyleTextAlign::Justify},
|
||||
{"middle", StyleTextAlign::MozCenter},
|
||||
{"absmiddle", StyleTextAlign::Center},
|
||||
|
|
|
|||
|
|
@ -3273,7 +3273,6 @@ void nsLineLayout::TextAlignLine(nsLineBox* aLine, bool aIsLastLine) {
|
|||
}
|
||||
|
||||
case StyleTextAlign::Start:
|
||||
case StyleTextAlign::Char:
|
||||
// Default alignment is to start edge so do nothing, except to apply
|
||||
// any "reverse-hang" amount resulting from reversed-direction trailing
|
||||
// space.
|
||||
|
|
|
|||
|
|
@ -404,9 +404,6 @@ pub enum TextAlignKeyword {
|
|||
Right,
|
||||
Center,
|
||||
Justify,
|
||||
#[css(skip)]
|
||||
#[cfg(feature = "gecko")]
|
||||
Char,
|
||||
End,
|
||||
#[parse(aliases = "-webkit-center")]
|
||||
MozCenter,
|
||||
|
|
|
|||
Loading…
Reference in a new issue