From 85da8712af6c1eb1808dbe6093fe140400e9e703 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Thu, 16 Mar 2000 23:52:21 +0000 Subject: [PATCH] bug 7112 - do not convert align=center on table into text-align=center, r=kmcclusk. --- content/html/content/src/nsHTMLTableElement.cpp | 5 ----- layout/html/content/src/nsHTMLTableElement.cpp | 5 ----- 2 files changed, 10 deletions(-) diff --git a/content/html/content/src/nsHTMLTableElement.cpp b/content/html/content/src/nsHTMLTableElement.cpp index d794c361f59e..6a7fa985d749 100644 --- a/content/html/content/src/nsHTMLTableElement.cpp +++ b/content/html/content/src/nsHTMLTableElement.cpp @@ -1185,11 +1185,6 @@ MapAttributesInto(const nsIHTMLMappedAttributes* aAttributes, if (value.GetUnit() == eHTMLUnit_Enumerated) { if ((NS_STYLE_TEXT_ALIGN_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); spacing->mMargin.SetLeft(otto); spacing->mMargin.SetRight(otto); diff --git a/layout/html/content/src/nsHTMLTableElement.cpp b/layout/html/content/src/nsHTMLTableElement.cpp index d794c361f59e..6a7fa985d749 100644 --- a/layout/html/content/src/nsHTMLTableElement.cpp +++ b/layout/html/content/src/nsHTMLTableElement.cpp @@ -1185,11 +1185,6 @@ MapAttributesInto(const nsIHTMLMappedAttributes* aAttributes, if (value.GetUnit() == eHTMLUnit_Enumerated) { if ((NS_STYLE_TEXT_ALIGN_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); spacing->mMargin.SetLeft(otto); spacing->mMargin.SetRight(otto);