зеркало из https://github.com/mozilla/gecko-dev.git
Bug 702283 - Remove dead code RegionMark (left behind by bug 614732 attachment 563617 (changeset 8ddd09649e13)) since now we use GetMarkBBoxContribution (which doesn't need to update the covered regions of a mark's content). r=longsonr.
This commit is contained in:
Родитель
0f6c2ebd98
Коммит
83b0c897d2
|
@ -175,37 +175,6 @@ nsSVGMarkerFrame::PaintMark(nsSVGRenderState *aContext,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsRect
|
||||
nsSVGMarkerFrame::RegionMark(nsSVGPathGeometryFrame *aMarkedFrame,
|
||||
const nsSVGMark *aMark, float aStrokeWidth)
|
||||
{
|
||||
// If the flag is set when we get here, it means this marker frame
|
||||
// has already been used in calculating the current mark region, and
|
||||
// the document has a marker reference loop.
|
||||
if (mInUse)
|
||||
return nsRect(0,0,0,0);
|
||||
|
||||
AutoMarkerReferencer markerRef(this, aMarkedFrame);
|
||||
|
||||
mStrokeWidth = aStrokeWidth;
|
||||
mX = aMark->x;
|
||||
mY = aMark->y;
|
||||
mAutoAngle = aMark->angle;
|
||||
|
||||
// Force children to update their covered region
|
||||
for (nsIFrame* kid = mFrames.FirstChild();
|
||||
kid;
|
||||
kid = kid->GetNextSibling()) {
|
||||
nsISVGChildFrame* child = do_QueryFrame(kid);
|
||||
if (child)
|
||||
child->UpdateCoveredRegion();
|
||||
}
|
||||
|
||||
// Now get the combined covered region
|
||||
return nsSVGUtils::GetCoveredRegion(mFrames);
|
||||
}
|
||||
|
||||
gfxRect
|
||||
nsSVGMarkerFrame::GetMarkBBoxContribution(const gfxMatrix &aToBBoxUserspace,
|
||||
PRUint32 aFlags,
|
||||
|
|
|
@ -92,9 +92,6 @@ public:
|
|||
nsSVGMark *aMark,
|
||||
float aStrokeWidth);
|
||||
|
||||
nsRect RegionMark(nsSVGPathGeometryFrame *aMarkedFrame,
|
||||
const nsSVGMark *aMark, float aStrokeWidth);
|
||||
|
||||
gfxRect GetMarkBBoxContribution(const gfxMatrix &aToBBoxUserspace,
|
||||
PRUint32 aFlags,
|
||||
nsSVGPathGeometryFrame *aMarkedFrame,
|
||||
|
|
Загрузка…
Ссылка в новой задаче