Closed
Bug 804559
Opened 12 years ago
Closed 12 years ago
Garbage drawn in image document when zoom-out
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
VERIFIED
FIXED
mozilla20
People
(Reporter: alice0775, Assigned: joe)
References
Details
(Keywords: regression)
Attachments
(4 files)
222.57 KB,
image/jpeg
|
Details | |
1008.18 KB,
image/png
|
Details | |
1.15 MB,
image/png
|
Details | |
961 bytes,
patch
|
jrmuizel
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Build Identifier:
http://hg.mozilla.org/mozilla-central/rev/1c3e4cb1f754
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/19.0 Firefox/19.0 ID:20121022030551
Steps to reproduce:
1. Maximize browser
2. Open attached img, Click on the image to cancel autoscale if autoscaled.
3. Zoom-out(Ctrl+-) 1-2 times
Actual results:
Vertical/horizontal garbage appears at left side/bottom
Expected results:
No such garbage
Setting image.high_quality_downscaling.enabled = false helps
Reporter | ||
Comment 1•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
Blocks: 486918
Keywords: regression
Assignee | ||
Comment 2•12 years ago
|
||
That actually looks like the opposite side of the image being drawn, and is (I suspect) a rounding error.
Component: ImageLib → Graphics: Layers
Updated•12 years ago
|
Keywords: qawanted,
regressionwindow-wanted
Reporter | ||
Comment 3•12 years ago
|
||
Steps to reproduce:
1. Just to make sure,Clear recent history (Ctrl+Shift+Del), Check "Cache" and Click "Clear Now".
2. Maximize browser,
3. Open attached img, Click on the image to cancel autoscale if autoscaled.
4. Zoom-out(Ctrl+-) 1-2 times
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/ff86ec766232
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Firefox/18.0 ID:20121001112917
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/c0873dd40e2d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Firefox/18.0 ID:20121001115917
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=ff86ec766232&tochange=c0873dd40e2d
Regressed by Bug 486918
Keywords: regressionwindow-wanted
Reporter | ||
Comment 4•12 years ago
|
||
This problem happens regardless of HWA enabled/Disabled.
Reporter | ||
Comment 5•12 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/5c6b71348e20
Mozilla/5.0 (X11; Linux i686; rv:19.0) Gecko/19 Firefox/19.0a1 ID:20121104030714
Updated•12 years ago
|
Assignee: nobody → joe
Removing qawanted as I believe comment 3 addresses the request. Please re-add if there's something else needed from QA on this bug.
Keywords: qawanted
Assignee | ||
Comment 8•12 years ago
|
||
When we roll our own scale + round code, we are wrong 100% of the time.
Attachment #686766 -
Flags: review?(jmuizelaar)
Comment 10•12 years ago
|
||
Comment on attachment 686766 [details] [diff] [review]
don't roll our own rounding/scaling code
Review of attachment 686766 [details] [diff] [review]:
-----------------------------------------------------------------
::: image/src/RasterImage.cpp
@@ +163,5 @@
> +
> + nsIntRect dstRect = srcRect;
> + dstRect.ScaleRoundOut(scale.width, scale.height);
> + dstSize.width = dstRect.width;
> + dstSize.height = dstRect.height;
dstSize = dstRect.Size()
Attachment #686766 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 11•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Component: Graphics: Layers → ImageLib
Assignee | ||
Comment 12•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8c174a108843
I'll ask for mozilla19 (aurora) uplift once this has proven itself.
Target Milestone: --- → mozilla20
Comment 13•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 14•12 years ago
|
||
Triage drive-by, nominate for uplift when ready.
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Updated•12 years ago
|
Assignee | ||
Comment 15•12 years ago
|
||
Comment on attachment 686766 [details] [diff] [review]
don't roll our own rounding/scaling code
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 486918
User impact if declined: Some bad drawing on Linux and Windows when you zoom out of images (and possibly web pages).
Testing completed (on m-c, etc.): on m-c for 2 weeks.
Risk to taking this patch (and alternatives if risky): Other possible bad drawing. Not terribly risky.
String or UUID changes made by this patch: none
Attachment #686766 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Attachment #686766 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Updated•12 years ago
|
Comment 18•12 years ago
|
||
Thanks Mario, can you also verify on Firefox Aurora 20.0a2?
Comment 19•12 years ago
|
||
(In reply to Anthony Hughes, Mozilla QA (:ashughes) from comment #18)
> can you also verify on Firefox Aurora 20.0a2?
I confirm the fix is verified on Latest Aurora 20 too on Windows 7 x64.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20130131 Firefox/20.0(20130131042017)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•