Bug 232706: Remove unneccesary datatypes from nsHTMLValue and cleanup AttributeToString.

r=caillon sr=jst


git-svn-id: svn://10.0.0.236/trunk@152623 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com
2004-02-11 00:38:12 +00:00
parent 15ec97ef25
commit 26c9ab7b2b
15 changed files with 35 additions and 123 deletions

View File

@@ -588,11 +588,11 @@ nsSize nsSubDocumentFrame::GetMargin()
if (NS_SUCCEEDED(rv) && content) {
nsHTMLValue value;
content->GetHTMLAttribute(nsHTMLAtoms::marginwidth, value);
if (eHTMLUnit_Pixel == value.GetUnit())
result.width = value.GetPixelValue();
if (eHTMLUnit_Integer == value.GetUnit())
result.width = value.GetIntValue();
content->GetHTMLAttribute(nsHTMLAtoms::marginheight, value);
if (eHTMLUnit_Pixel == value.GetUnit())
result.height = value.GetPixelValue();
if (eHTMLUnit_Integer == value.GetUnit())
result.height = value.GetIntValue();
}
return result;
}