Fix build bustage on non-SVG builds

This commit is contained in:
roc+%cs.cmu.edu 2006-02-21 01:07:59 +00:00
Родитель a36f54304e
Коммит 453f4c1b55
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -499,6 +499,7 @@ nsLayoutUtils::GetEventCoordinatesRelativeTo(nsEvent* aEvent, nsIFrame* aFrame)
// then we need to do extra work
nsIFrame* rootFrame;
for (nsIFrame* f = aFrame; f; f = GetCrossDocParentFrame(f)) {
#ifdef MOZ_SVG_FOREIGNOBJECT
if (f->IsFrameOfType(nsIFrame::eSVGForeignObject)) {
nsSVGForeignObjectFrame* fo = NS_STATIC_CAST(nsSVGForeignObjectFrame*, f);
nsIFrame* outer;
@ -507,6 +508,7 @@ nsLayoutUtils::GetEventCoordinatesRelativeTo(nsEvent* aEvent, nsIFrame* aFrame)
GetEventCoordinatesRelativeTo(aEvent, outer)) -
aFrame->GetOffsetTo(fo);
}
#endif
rootFrame = f;
}