Closed Bug 716855 Opened 13 years ago Closed 12 years ago

[Page Thumbnails] Screenshots should contain the the top-left corner

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 12

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

Attachments

(1 file)

The crop rectangle for thumbnails is currently determined by a simple panning algorithm that also adds an x+y offset. Remove that offset so that thumbnails always contain the top-left corner.
Attached patch patch v1Splinter Review
Simple patch removing the x and y offset when determining the crop rectangle/size.
Attachment #587294 - Flags: review?(dietrich)
Comment on attachment 587294 [details] [diff] [review]
patch v1

Review of attachment 587294 [details] [diff] [review]:
-----------------------------------------------------------------

changes look, r=me. is a test needed, or will current tests cover this change?
Attachment #587294 - Flags: review?(dietrich) → review+
(In reply to Dietrich Ayala (:dietrich) from comment #2)
> changes look, r=me. is a test needed, or will current tests cover this
> change?

We currently have tests that only check single-color pages (so they see no difference). Not sure if we should add a test for this while we're still searching for the ideal thumbnailing algorithm.
https://hg.mozilla.org/integration/fx-team/rev/e3e1d313f956

We'll create more specific tests for the thumbnail algorithm once we figured out what seems the right fit for us.
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 12
(In reply to Tim Taubert [:ttaubert] from comment #4)
> We'll create more specific tests for the thumbnail algorithm once we figured
> out what seems the right fit for us.

Filed bug 721329.
https://hg.mozilla.org/mozilla-central/rev/e3e1d313f956
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: