Closed
Bug 979973
Opened 11 years ago
Closed 11 years ago
Aligning to tile boundaries is incorrect when the resolution is about to change
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: cwiiis, Assigned: cwiiis)
References
Details
Attachments
(1 file)
1.76 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
It would appear, though I've yet to deeply investigate, that when we change the zoom level, we don't also set a new displayport. This is pretty bad, as when you zoom in far, we end up with a *much* larger displayport than we intend, and can easily blow through available RAM.
This sounds to me like a relatively easy fix, so I'll be looking at this tomorrow.
Assignee | ||
Comment 1•11 years ago
|
||
erk, so this is the fault of my code :) LayersPixelsPerCSSPixel() is wrong when the resolution is about to change as the resolution/cumulative resolution aren't updated, so the align to tile boundaries ends up making the displayport much bigger when zooming in. It also won't be at all aligned to tiles when zooming in/out either, which isn't fantastic...
Pretty easy fix, thankfully, patch incoming.
Summary: We don't appear to set a new displayport when zooming → Aligning to tile boundaries is incorrect when the resolution is about to change
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8386702 -
Flags: review?(botond)
Comment 3•11 years ago
|
||
Comment on attachment 8386702 [details] [diff] [review]
Fix displayport tile-alignment when zooming
Review of attachment 8386702 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch!
Attachment #8386702 -
Flags: review?(botond) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/5de7483b01d2
Comment 5•11 years ago
|
||
It would be nice if there was a clean separation of which fields/properties on a FrameMetrics are up to date and which are outdated so bugs like this don't crop up.
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•