Closed
Bug 1026926
Opened 11 years ago
Closed 3 years ago
[Flame][Calendar] Dots in month view do not show correctly (not a complete circle)
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: pekochen, Unassigned)
Details
Attachments
(3 files, 3 obsolete files)
please see attached file, the dot was cropped.
Reporter | ||
Comment 1•11 years ago
|
||
Hi Gareth,
Can you please help on this issue?
thank you so much~
Peko
Flags: needinfo?(gaye)
Comment 2•11 years ago
|
||
this is some weird rounding issue, probably a Gecko bug related to the way fonts are rendered. If we change the left:-1.5rem; to any even number (eg. -1.4rem, -1.2rem, -1.6rem) the dots are displayed as a full circle.
Updated•11 years ago
|
Assignee: nobody → evanxd
Comment 3•11 years ago
|
||
Hi Jerru,
It is a Gecko issue.
We could reproduce the issue with the icon-dot app[1] in Flame device.
Could you help here?
Thanks.
[1] https://github.com/evanxd/gaia/tree/bug-1026926/apps/icon-dot
Flags: needinfo?(gaye) → needinfo?(hshih)
Updated•11 years ago
|
Assignee: evanxd → nobody
Component: Gaia::Calendar → Graphics
Product: Firefox OS → Core
Comment 4•11 years ago
|
||
The screenshot of icon-dot app shows the incomplete circle.
Comment 6•11 years ago
|
||
Thanks, Evan.
I can reproduce this issue from comment 3 at flame.
checking...
Comment 7•11 years ago
|
||
NP :)
Updated•11 years ago
|
Assignee: hshih → cku
Comment 10•11 years ago
|
||
Attachment #8453673 -
Attachment is obsolete: true
Comment 11•11 years ago
|
||
The root cause of this bug:
Only flame, 1 css pixel is equal to 1.5 device pixel.
Let's said:
1. you want to draw a 2-css-pixels-wide object at (11, 10) css position
2-css-pixels-wide = 3-device-pixels-wide
2. it maps to (11 * 1.5, 10 * 1.5) = (16.5, 15) device position.
3. We expect 4 pixels draw on the screen, from (16, 15) device position
16(blur pixel) 17 18 19(blur pixel)
but, in fact, cairo only renders 3 pixels into render target, without pixel "19", your object looks like been cut.
Attachment #8453675 -
Flags: feedback?(hshih)
Attachment #8453675 -
Attachment description: WIP position rounding before sumbit a cairo painting task → Position rounding before submit a cairo glyph rendering call
Comment 12•11 years ago
|
||
Attachment #8453675 -
Attachment is obsolete: true
Attachment #8453675 -
Flags: feedback?(hshih)
Attachment #8453708 -
Attachment description: WIP position rounding before submit a cairo glyph rendering call → Position rounding before submit a cairo glyph rendering call
Attachment #8453708 -
Flags: feedback?(hshih)
Comment 13•11 years ago
|
||
Theoretically, there should be no test case impact by this change, but since gfxFont is a high fan-in module, submit a full try:
https://tbpl.mozilla.org/?tree=Try&rev=623f5ea3ebbf
Comment 14•11 years ago
|
||
Bad luck, many test case failed because of this change
REFTEST TEST-UNEXPECTED-FAIL | http://10.26.132.20:30472/tests/layout/reftests/bidi/bidiSVG-02.svg | image comparison (==), max difference: 253, number of differing pixels: 76
REFTEST TEST-UNEXPECTED-FAIL | http://10.26.132.20:30472/tests/layout/reftests/bidi/bidiSVG-03.svg | image comparison (==), max difference: 253, number of differing pixels: 229
Comment 15•11 years ago
|
||
There are two "round" in ClampAndAlignWithPixels
http://dxr.mozilla.org/mozilla-central/source/layout/generic/nsGfxScrollFrame.cpp#1925
http://dxr.mozilla.org/mozilla-central/source/layout/generic/nsGfxScrollFrame.cpp#1930
I think it's the main reason of this failure
Updated•11 years ago
|
Attachment #8453708 -
Flags: feedback?(hshih)
Comment 16•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=fb7df423ed90
1. round off right before cario_show_glyphs.
2. All transform had been apply at this moment.
Attachment #8453708 -
Attachment is obsolete: true
Comment 17•11 years ago
|
||
this is not blocking the calendar visual refresh anymore since we used a hack to fix the problem (changed position to an even number).
No longer blocks: 1027360
Comment 19•7 years ago
|
||
No assignee, updating the status.
Comment 20•7 years ago
|
||
No assignee, updating the status.
Comment 21•7 years ago
|
||
No assignee, updating the status.
Updated•3 years ago
|
Severity: normal → S3
Comment 22•3 years ago
|
||
Closing old B2G bugs
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•