radio, checkbox padding done through MapAttributesInto

git-svn-id: svn://10.0.0.236/trunk@3264 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze
1998-06-04 21:34:41 +00:00
parent 5669e4858d
commit 0d4b1a5121
9 changed files with 77 additions and 73 deletions

View File

@@ -283,7 +283,7 @@ void nsInput::CacheAttribute(const nsString& aValue, PRInt32 aMinValue, PRInt32&
void nsInput::SetAttribute(nsIAtom* aAttribute, const nsString& aValue)
{
if (aAttribute == nsHTMLAtoms::type) { // You cannot set the type of a form element
return;
;
}
else if (aAttribute == nsHTMLAtoms::name) {
CacheAttribute(aValue, mName);
@@ -305,9 +305,8 @@ void nsInput::SetAttribute(nsIAtom* aAttribute, const nsString& aValue)
}
return;
}
else {
nsInputSuper::SetAttribute(aAttribute, aValue);
}
// XXX the following is necessary so that MapAttributesInto gets called
nsInputSuper::SetAttribute(aAttribute, aValue);
}
nsContentAttr nsInput::GetCacheAttribute(nsString* const& aLoc, nsHTMLValue& aValue) const