Bug 267037. Buttons should delegate child frames to the wrapped block, and tell the style system that legends are always blocks. Fixes a couple of crashes. r+sr=bzbarsky

This commit is contained in:
roc+%cs.cmu.edu 2005-03-07 19:08:26 +00:00
Родитель ab0c4e6b32
Коммит e29e28ebd5
2 изменённых файлов: 12 добавлений и 0 удалений

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

@ -148,6 +148,11 @@ public:
NS_IMETHOD GetProperty(nsIAtom* aName, nsAString& aValue);
NS_IMETHOD SetSuggestedSize(nscoord aWidth, nscoord aHeight);
// Inserted child content gets its frames parented by our child block
virtual nsIFrame* GetContentInsertionFrame() {
return GetFirstChild(nsnull)->GetContentInsertionFrame();
}
protected:
void ReParentFrameList(nsFrameManager* aFrameManager, nsIFrame* aFrameList);
virtual PRBool IsReset(PRInt32 type);

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

@ -87,6 +87,13 @@ center {
text-align: -moz-center;
}
legend {
/* HTML legend always builds an nsLegendFrame,
which is a block. The style system needs to
know. */
display: block !important;
}
blockquote[type=cite] {
display: block;
margin: 1em 0px;