diff --git a/mozilla/layout/html/table/src/nsTableCellFrame.cpp b/mozilla/layout/html/table/src/nsTableCellFrame.cpp index f091f66eb58..8972716c2aa 100644 --- a/mozilla/layout/html/table/src/nsTableCellFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableCellFrame.cpp @@ -542,18 +542,6 @@ void nsTableCellFrame::MapBorderMarginPadding(nsIPresContext* aPresContext) } -void nsTableCellFrame::MapTextAttributes(nsIPresContext* aPresContext) -{ - nsHTMLValue value; - - ((nsHTMLTagContent*)mContent)->GetAttribute(nsHTMLAtoms::align, value); - if (value.GetUnit() == eHTMLUnit_Enumerated) - { - nsStyleText* text = (nsStyleText*)mStyleContext->GetMutableStyleData(eStyleStruct_Text); - text->mTextAlign = value.GetIntValue(); - } -} - // Subclass hook for style post processing NS_METHOD nsTableCellFrame::DidSetStyleContext(nsIPresContext* aPresContext) @@ -562,7 +550,6 @@ NS_METHOD nsTableCellFrame::DidSetStyleContext(nsIPresContext* aPresContext) printf("nsTableCellFrame::DidSetStyleContext \n"); #endif - MapTextAttributes(aPresContext); MapBorderMarginPadding(aPresContext); mStyleContext->RecalcAutomaticData(aPresContext); return NS_OK; diff --git a/mozilla/layout/html/table/src/nsTableCellFrame.h b/mozilla/layout/html/table/src/nsTableCellFrame.h index 3d3a16873a6..04b5cd9dc20 100644 --- a/mozilla/layout/html/table/src/nsTableCellFrame.h +++ b/mozilla/layout/html/table/src/nsTableCellFrame.h @@ -199,7 +199,6 @@ protected: // Subclass hook for style post processing NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext); - void MapTextAttributes(nsIPresContext* aPresContext); void MapBorderMarginPadding(nsIPresContext* aPresContext); void MapHTMLBorderStyle(nsIPresContext* aPresContext,nsStyleSpacing& aSpacingStyle, nscoord aBorderWidth); PRBool ConvertToPixelValue(nsHTMLValue& aValue, PRInt32 aDefault, PRInt32& aResult); diff --git a/mozilla/layout/tables/nsTableCellFrame.cpp b/mozilla/layout/tables/nsTableCellFrame.cpp index f091f66eb58..8972716c2aa 100644 --- a/mozilla/layout/tables/nsTableCellFrame.cpp +++ b/mozilla/layout/tables/nsTableCellFrame.cpp @@ -542,18 +542,6 @@ void nsTableCellFrame::MapBorderMarginPadding(nsIPresContext* aPresContext) } -void nsTableCellFrame::MapTextAttributes(nsIPresContext* aPresContext) -{ - nsHTMLValue value; - - ((nsHTMLTagContent*)mContent)->GetAttribute(nsHTMLAtoms::align, value); - if (value.GetUnit() == eHTMLUnit_Enumerated) - { - nsStyleText* text = (nsStyleText*)mStyleContext->GetMutableStyleData(eStyleStruct_Text); - text->mTextAlign = value.GetIntValue(); - } -} - // Subclass hook for style post processing NS_METHOD nsTableCellFrame::DidSetStyleContext(nsIPresContext* aPresContext) @@ -562,7 +550,6 @@ NS_METHOD nsTableCellFrame::DidSetStyleContext(nsIPresContext* aPresContext) printf("nsTableCellFrame::DidSetStyleContext \n"); #endif - MapTextAttributes(aPresContext); MapBorderMarginPadding(aPresContext); mStyleContext->RecalcAutomaticData(aPresContext); return NS_OK; diff --git a/mozilla/layout/tables/nsTableCellFrame.h b/mozilla/layout/tables/nsTableCellFrame.h index 3d3a16873a6..04b5cd9dc20 100644 --- a/mozilla/layout/tables/nsTableCellFrame.h +++ b/mozilla/layout/tables/nsTableCellFrame.h @@ -199,7 +199,6 @@ protected: // Subclass hook for style post processing NS_IMETHOD DidSetStyleContext(nsIPresContext* aPresContext); - void MapTextAttributes(nsIPresContext* aPresContext); void MapBorderMarginPadding(nsIPresContext* aPresContext); void MapHTMLBorderStyle(nsIPresContext* aPresContext,nsStyleSpacing& aSpacingStyle, nscoord aBorderWidth); PRBool ConvertToPixelValue(nsHTMLValue& aValue, PRInt32 aDefault, PRInt32& aResult);