Bug 212793: crash when following link when a file upload box is on the screen with XSLT generated content. r=Pike, sr=jst, a=choffman

This commit is contained in:
jag%tty.nl 2003-08-07 18:58:30 +00:00
Родитель 399a4e041a
Коммит 1ba4a1c3b4
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -340,7 +340,7 @@ nsGenericHTMLElement::CopyInnerTo(nsIContent* aSrcContent,
rv = GetHTMLAttribute(nsHTMLAtoms::style, val);
if (rv == NS_CONTENT_ATTR_HAS_VALUE &&
val.GetUnit() == eHTMLUnit_ISupports) {
nsCOMPtr<nsISupports> supports(dont_AddRef(val.GetISupportsValue()));
nsCOMPtr<nsISupports> supports(val.GetISupportsValue());
nsCOMPtr<nsICSSStyleRule> rule(do_QueryInterface(supports));
if (rule) {
@ -2308,7 +2308,7 @@ nsGenericHTMLElement::GetInlineStyleRule(nsIStyleRule** aStyleRule)
nsHTMLValue value;
if (NS_CONTENT_ATTR_HAS_VALUE == mAttributes->GetAttribute(nsHTMLAtoms::style, value)) {
if (eHTMLUnit_ISupports == value.GetUnit()) {
nsCOMPtr<nsISupports> supports = getter_AddRefs(value.GetISupportsValue());
nsCOMPtr<nsISupports> supports = value.GetISupportsValue();
if (supports)
CallQueryInterface(supports, aStyleRule);
}
@ -2687,9 +2687,9 @@ nsGenericHTMLElement::GetLayoutHistoryAndKey(nsIHTMLContent* aContent,
if (docShell) {
rv = docShell->GetLayoutHistoryState(aHistory);
NS_ENSURE_SUCCESS(rv, rv);
if (!*aHistory) {
return NS_OK;
}
}
if (!*aHistory) {
return NS_OK;
}
//