Closed
Bug 1114948
Opened 10 years ago
Closed 9 years ago
Wrong positioning near the left tile boundary
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: nical, Assigned: nical)
Details
Attachments
(4 files)
1.24 MB,
video/webm
|
Details | |
3.53 KB,
patch
|
jrmuizel
:
review+
bajaj
:
approval-mozilla-b2g34+
|
Details | Diff | Splinter Review |
61.45 KB,
image/png
|
Details | |
47.49 KB,
image/png
|
Details |
A more precise wording would probably be "glpyphs that touch the left DrawTarget boundary" but this is especially noticeable with tiling, since a glyph that appears on two tiles will sometimes look slightly broken (half of the glyph being offset by one pixel (or a fraction of a pixel) to the left). This issue doesn't reproduce with the skia backend, and is the main blocker for DrawTargetTiled on android (caught by a reftest).
Assignee | ||
Comment 1•10 years ago
|
||
This shows the bug with the right prefs on Linux. Notice how the letters that are close to the tile boundary are shaking when the text moves.
Assignee | ||
Comment 2•9 years ago
|
||
Turns out it's not specific to glyphs, nor to cairo. We use NS_roundf in the tiling code with various things like the rectangles to copy between the front and the back buffer, and the valid regions. NS_roundf doesn't behave well around 0 in our use case. We actually should be using NS_lroundf which is more consistent when passing from positive to negative.
Summary: When using cairo and DrawTargetTiled, glyphs that touch the left tile boundary are positioned differently → Wrong positioning near the left tile boundary
Assignee | ||
Comment 3•9 years ago
|
||
This fixes the issue on Linux.
Assignee: nobody → nical.bugzilla
Attachment #8544547 -
Flags: review?(jmuizelaar)
Updated•9 years ago
|
Attachment #8544547 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c1917197e60f
https://hg.mozilla.org/mozilla-central/rev/c1917197e60f
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment 6•9 years ago
|
||
Comment on attachment 8544547 [details] [diff] [review] Use NS_lroundf instead of NS_roundf in the tiling code NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): - User impact if declined: subtle but frustrating display issue on some pages Testing completed: yes, manually on master Risk to taking this patch (and alternatives if risky): low -- it's on 2.2 and master for more than 1 month. String or UUID changes made by this patch: none It's kinda late to request an uplift to v2.1, but I see this too often on my 2.1 dogfooding device, and it's not nice. This is really polish, nothing is broken, but this is quite visible because happens in the middle of the screen. I'll share one screenshot with the issue.
Attachment #8544547 -
Flags: approval-mozilla-b2g34?
Comment 7•9 years ago
|
||
Look in the middle of the screen, the word 'disponibles' below 'Stockage des applications'. The "l" has one vertical line missing. Same issue on the line above, same word, but the "b" has the issue. (it just happens it's on the same vertical line). Looking closely, you can see the "B" letter of "USB" in "Stockage USB" also has a thin line missing in the extreme right.
Comment 8•9 years ago
|
||
Look at "Browsing Privacy", how the "v" is partly cut. Same for "App Permissions", with the "o".
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #6) > Comment on attachment 8544547 [details] [diff] [review] > Use NS_lroundf instead of NS_roundf in the tiling code > > NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to > better understand the B2G approval process and landings. > > [Approval Request Comment] FWIW, this patch is trivial to uplift and and really not risky.
Updated•9 years ago
|
Attachment #8544547 -
Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Comment 10•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/1cf422858f5c
status-b2g-v2.1:
--- → fixed
status-b2g-v2.2:
--- → fixed
status-firefox36:
--- → wontfix
status-firefox37:
--- → fixed
Comment 11•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g34_v2_1s/rev/1cf422858f5c
status-b2g-v2.1S:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•