mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 930904 - Remove some old code for android that is now no-op'd. r=tn
This commit is contained in:
parent
62598956e6
commit
428e4969a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user