mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 957668. Add comment based on review comment. DONTBUILD
This commit is contained in:
parent
7b608e94e0
commit
74780cdea5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user