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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

Attachments

(1 file)

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.
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
Attachment #8386702 - Flags: review?(botond)
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+
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.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
No longer blocks: 985477
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: