Fix up SVG frames that never call nsFrame::Init to still notify their content

that it now has a frame.  Bug 287424, r=tor
This commit is contained in:
bzbarsky%mit.edu 2005-03-25 04:25:30 +00:00
Родитель 2e6eb3d56f
Коммит 843ab7ff70
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -256,6 +256,10 @@ nsSVGGlyphFrame::Init(nsPresContext* aPresContext,
NS_IF_ADDREF(mContent);
mParent = aParent;
if (mContent) {
mContent->SetMayHaveFrame(PR_TRUE);
}
// construct our glyphmetrics & glyphgeometry objects:
nsISVGOuterSVGFrame* outerSVGFrame = GetOuterSVGFrame();
if (!outerSVGFrame) {

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

@ -117,6 +117,10 @@ nsSVGPathGeometryFrame::Init(nsPresContext* aPresContext,
NS_IF_ADDREF(mContent);
mParent = aParent;
if (mContent) {
mContent->SetMayHaveFrame(PR_TRUE);
}
Init();
SetStyleContext(aPresContext, aContext);