mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-21 02:35:21 +00:00
Don't set 'center' alignment for new hrule element, part of fix to bug 83335, r=sfraser, sr=kin, a=asa-drivers
This commit is contained in:
parent
8c8d5a18fa
commit
4956e3c3c6
@ -2870,7 +2870,6 @@ nsHTMLEditor::CreateElementWithDefaults(const nsAReadableString& aTagName, nsIDO
|
||||
if (TagName.EqualsWithConversion("hr"))
|
||||
{
|
||||
// Note that we read the user's attributes for these from prefs (in InsertHLine JS)
|
||||
newElement->SetAttribute(NS_LITERAL_STRING("align"),NS_LITERAL_STRING("center"));
|
||||
newElement->SetAttribute(NS_LITERAL_STRING("width"),NS_LITERAL_STRING("100%"));
|
||||
newElement->SetAttribute(NS_LITERAL_STRING("size"),NS_LITERAL_STRING("2"));
|
||||
} else if (TagName.EqualsWithConversion("table"))
|
||||
|
@ -2870,7 +2870,6 @@ nsHTMLEditor::CreateElementWithDefaults(const nsAReadableString& aTagName, nsIDO
|
||||
if (TagName.EqualsWithConversion("hr"))
|
||||
{
|
||||
// Note that we read the user's attributes for these from prefs (in InsertHLine JS)
|
||||
newElement->SetAttribute(NS_LITERAL_STRING("align"),NS_LITERAL_STRING("center"));
|
||||
newElement->SetAttribute(NS_LITERAL_STRING("width"),NS_LITERAL_STRING("100%"));
|
||||
newElement->SetAttribute(NS_LITERAL_STRING("size"),NS_LITERAL_STRING("2"));
|
||||
} else if (TagName.EqualsWithConversion("table"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user