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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user