mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
bug 7112 - do not convert align=center on table into text-align=center, r=kmcclusk.
This commit is contained in:
parent
24c946401a
commit
85da8712af
@ -1185,11 +1185,6 @@ MapAttributesInto(const nsIHTMLMappedAttributes* aAttributes,
|
|||||||
if (value.GetUnit() == eHTMLUnit_Enumerated) {
|
if (value.GetUnit() == eHTMLUnit_Enumerated) {
|
||||||
if ((NS_STYLE_TEXT_ALIGN_CENTER == value.GetIntValue()) ||
|
if ((NS_STYLE_TEXT_ALIGN_CENTER == value.GetIntValue()) ||
|
||||||
(NS_STYLE_TEXT_ALIGN_MOZ_CENTER == value.GetIntValue())) {
|
(NS_STYLE_TEXT_ALIGN_MOZ_CENTER == value.GetIntValue())) {
|
||||||
if (eCompatibility_Standard == mode) {
|
|
||||||
nsStyleText* text = (nsStyleText*)
|
|
||||||
aContext->GetMutableStyleData(eStyleStruct_Text);
|
|
||||||
text->mTextAlign = NS_STYLE_TEXT_ALIGN_CENTER;
|
|
||||||
}
|
|
||||||
nsStyleCoord otto(eStyleUnit_Auto);
|
nsStyleCoord otto(eStyleUnit_Auto);
|
||||||
spacing->mMargin.SetLeft(otto);
|
spacing->mMargin.SetLeft(otto);
|
||||||
spacing->mMargin.SetRight(otto);
|
spacing->mMargin.SetRight(otto);
|
||||||
|
@ -1185,11 +1185,6 @@ MapAttributesInto(const nsIHTMLMappedAttributes* aAttributes,
|
|||||||
if (value.GetUnit() == eHTMLUnit_Enumerated) {
|
if (value.GetUnit() == eHTMLUnit_Enumerated) {
|
||||||
if ((NS_STYLE_TEXT_ALIGN_CENTER == value.GetIntValue()) ||
|
if ((NS_STYLE_TEXT_ALIGN_CENTER == value.GetIntValue()) ||
|
||||||
(NS_STYLE_TEXT_ALIGN_MOZ_CENTER == value.GetIntValue())) {
|
(NS_STYLE_TEXT_ALIGN_MOZ_CENTER == value.GetIntValue())) {
|
||||||
if (eCompatibility_Standard == mode) {
|
|
||||||
nsStyleText* text = (nsStyleText*)
|
|
||||||
aContext->GetMutableStyleData(eStyleStruct_Text);
|
|
||||||
text->mTextAlign = NS_STYLE_TEXT_ALIGN_CENTER;
|
|
||||||
}
|
|
||||||
nsStyleCoord otto(eStyleUnit_Auto);
|
nsStyleCoord otto(eStyleUnit_Auto);
|
||||||
spacing->mMargin.SetLeft(otto);
|
spacing->mMargin.SetLeft(otto);
|
||||||
spacing->mMargin.SetRight(otto);
|
spacing->mMargin.SetRight(otto);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user