Closed
Bug 1090329
Opened 10 years ago
Closed 9 years ago
reftest 1082844-1 fails on Android and B2G-emulator due to misplaced content in vertical-rl block
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: jfkthame, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
According to https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=e6519895b781, it looks like this reftest is going to go orange when we enable vertical support. :( Checking the reftest-analyzer view, this looks like a real bug, where the content of the test <div> is misplaced upwards and slightly right in the testcase, while the reference renders correctly. So this needs debugging and fixing before we can ship vertical support on mobile. Offhand, I'm not sure why this should affect mobile, while working correctly on desktop platforms.
Assignee | ||
Updated•10 years ago
|
Blocks: enable-writing-mode-dev
Assignee | ||
Comment 1•10 years ago
|
||
This appears to be triggered by incorrect (vertical) glyph advances when using the freetype backend (which also affects the GDI backend, actually, and results in terribly-spaced text). The platform-specific GetGlyphWidth method is returns the horizontal glyph width, which should never be used by GetGlyphVAdvance. (I think this code is a remnant of an early version of the vertical-text support, where I was going to instantiate separate gfxFont instances for vertical vs horizontal use.)
Assignee | ||
Comment 2•10 years ago
|
||
With this removed, the 1082844-1 test no longer fails on mobile platforms.
Attachment #8541846 -
Flags: review?(smontagu)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Comment 3•9 years ago
|
||
Comment on attachment 8541846 [details] [diff] [review] gfxHarfBuzzShaper::GetGlyphVAdvance should never use the backend-specific GetGlyphWidth method, which is for horizontal width only Review of attachment 8541846 [details] [diff] [review]: ----------------------------------------------------------------- Sounds reasonable, though I'm not exactly familiar with this code.
Attachment #8541846 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/67960aabce3a
Target Milestone: --- → mozilla37
https://hg.mozilla.org/mozilla-central/rev/67960aabce3a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•