зеркало из https://github.com/mozilla/pjs.git
bug 1374 (hometown.aol.com crash on resize)
This commit is contained in:
Родитель
4966c30661
Коммит
3f513d4bc8
|
@ -142,7 +142,7 @@ nsHTMLFrameSetElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
else if (aAttribute == nsHTMLAtoms::border) {
|
||||
nsGenericHTMLElement::ParseValue(aValue, 1, 100, aResult, eHTMLUnit_Pixel);
|
||||
nsGenericHTMLElement::ParseValue(aValue, 0, 100, aResult, eHTMLUnit_Pixel);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
return NS_CONTENT_ATTR_NOT_THERE;
|
||||
|
|
|
@ -904,6 +904,7 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
|
|||
PRInt32* childTypes; // frameset/frame distinction of children
|
||||
nsFrameborder* childFrameborder; // the frameborder attr of children
|
||||
nsFrameborder frameborder;
|
||||
frameborder = GetFrameBorder(PR_FALSE);
|
||||
nsBorderColor* childBorderColors;
|
||||
nscolor borderColor;
|
||||
if (firstTime) {
|
||||
|
@ -926,7 +927,6 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
|
|||
}
|
||||
childTypes = new PRInt32[numCells];
|
||||
childFrameborder = new nsFrameborder[numCells];
|
||||
frameborder = GetFrameBorder(PR_FALSE);
|
||||
childBorderColors = new nsBorderColor[numCells];
|
||||
borderColor = GetBorderColor();
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ nsHTMLFrameSetElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
else if (aAttribute == nsHTMLAtoms::border) {
|
||||
nsGenericHTMLElement::ParseValue(aValue, 1, 100, aResult, eHTMLUnit_Pixel);
|
||||
nsGenericHTMLElement::ParseValue(aValue, 0, 100, aResult, eHTMLUnit_Pixel);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
return NS_CONTENT_ATTR_NOT_THERE;
|
||||
|
|
|
@ -904,6 +904,7 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
|
|||
PRInt32* childTypes; // frameset/frame distinction of children
|
||||
nsFrameborder* childFrameborder; // the frameborder attr of children
|
||||
nsFrameborder frameborder;
|
||||
frameborder = GetFrameBorder(PR_FALSE);
|
||||
nsBorderColor* childBorderColors;
|
||||
nscolor borderColor;
|
||||
if (firstTime) {
|
||||
|
@ -926,7 +927,6 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
|
|||
}
|
||||
childTypes = new PRInt32[numCells];
|
||||
childFrameborder = new nsFrameborder[numCells];
|
||||
frameborder = GetFrameBorder(PR_FALSE);
|
||||
childBorderColors = new nsBorderColor[numCells];
|
||||
borderColor = GetBorderColor();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче