Bug 957668. Add comment based on review comment. DONTBUILD

This commit is contained in:
Timothy Nikkel 2014-03-26 21:23:14 -05:00
parent 7b608e94e0
commit 74780cdea5

View File

@ -699,6 +699,8 @@ nsLayoutUtils::GetDisplayPort(nsIContent* aContent, nsRect *aResult)
gfxSize res = presContext->PresShell()->GetCumulativeResolution();
gfxSize parentRes = res;
if (isRoot) {
// the base rect for root scroll frames is specified in the parent document
// coordinate space, so it doesn't include the local resolution.
gfxSize localRes = presContext->PresShell()->GetResolution();
parentRes.width /= localRes.width;
parentRes.height /= localRes.height;