зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2e6eb3d56f
Коммит
843ab7ff70
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче