Bug 930904 - Remove some old code for android that is now no-op'd. r=tn

This commit is contained in:
Kartikaya Gupta 2013-11-04 21:40:05 -05:00
parent 62598956e6
commit 428e4969a8

View File

@ -702,15 +702,6 @@ static void RecordFrameMetrics(nsIFrame* aForFrame,
nsPresContext* parentContext = curPresShell->GetPresContext()->GetParentPresContext();
curPresShell = parentContext ? parentContext->GetPresShell() : nullptr;
}
#ifdef MOZ_WIDGET_ANDROID
if (presContext->IsRootContentDocument() && aScrollFrame == presShell->GetRootScrollFrame()) {
// On Android we set the resolution on a different presshell (bug 732971) so we
// need some special handling here to make things work properly. Once bug 732971 is
// fixed we should remove this ifdef block, and adjust any other pieces that need
// adjusting to make this work properly.
metrics.mResolution.scale = metrics.mCumulativeResolution.scale;
}
#endif
metrics.mDevPixelsPerCSSPixel = CSSToLayoutDeviceScale(
(float)nsPresContext::AppUnitsPerCSSPixel() / auPerDevPixel);