Closed
Bug 548964
Opened 15 years ago
Closed 14 years ago
[DW] Spellchecker's underline is rendered incorrectly for one line text input fields. Most of the line is out of view
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
status1.9.2 | --- | unaffected |
status1.9.1 | --- | unaffected |
People
(Reporter: u88484, Assigned: masayuki)
References
Details
(Keywords: regression)
Attachments
(4 files, 1 obsolete file)
2.75 KB,
image/png
|
Details | |
172 bytes,
text/html
|
Details | |
1.17 KB,
patch
|
jfkthame
:
review+
joe
:
approval2.0+
|
Details | Diff | Splinter Review |
1.41 KB,
patch
|
masayuki
:
review+
|
Details | Diff | Splinter Review |
The spellchecker's red underline is render incorrectly in that the line is mostly out of view and only a pixel or two of the line can be seen in one line text input fields.
Comment 1•15 years ago
|
||
When did this regress? Is there a testcase or steps to reproduce?
(In reply to comment #1)
> When did this regress? Is there a testcase or steps to reproduce?
Regressed with the landing of the D2D patches. Bug only occurs when D2D is enabled. Testcase coming.
For some reason the first input field with the <form></form> code around it is needed for this bug to show up in the second input field. Makes no sense to me and took me quite a while to figure this out.
<form><span><input type="text" value="asdfqjpy"></span></form>
<span><input type="text" value="asdfqjpy" size="40"></span>
Comment 4•15 years ago
|
||
Interesting, I suspect this has something to do with the difference in font metrics between GDI fonts and DirectWrite fonts, I have no idea how the spellchecker line is rendered though, so I don't have a quick answer to where exactly the problem is.
Masayuki, can you check this out and see if you know what is going on. You did a lot of the new spellchecker's wavy underline work and this bug is sort of related to but 486778 that also dealt with the wavy line drawing incorrectly on one line text input boxes.
Assignee | ||
Comment 6•15 years ago
|
||
Oops, sorry for the delay. I missed to catch the your comment.
I cannot reproduce this bug on the testcase with latest trunk build, can you still reproduce this?
Assignee | ||
Comment 7•15 years ago
|
||
I can reproduce this bug only on some input fields which doesn't have enough height for the fonts. E.g., in the bugzilla's search page on Win7-Ja.
Assignee | ||
Comment 8•14 years ago
|
||
This must be a blocker of 2.0 final.
blocking2.0: --- → ?
status1.9.1:
--- → unaffected
status1.9.2:
--- → unaffected
Summary: Spellchecker's underline is rendered incorrectly for one line text input fields. Most of the line is out of view → [DW] Spellchecker's underline is rendered incorrectly for one line text input fields. Most of the line is out of view
Comment 9•14 years ago
|
||
Masayuki, why do you think this blocks? It's a little ugly, but I'd release with this bug. I'd take a patch though!
blocking2.0: ? → -
Assignee | ||
Comment 10•14 years ago
|
||
Joe:
Because this is a regression, and this isn't good thing for user experience.
I find the cause. The internal leading value is incorrect. It must be difference between maxHeight and emHeight because line height is computed from emHeight + internal leading + external leading. Looks like the current computed value is always 1px smaller.
This patch also fixes a bug that is the bottom of 'g' is hidden in <input>.
Comment 11•14 years ago
|
||
Comment on attachment 480857 [details] [diff] [review]
Patch v1.0
Switching the review to Jonathan here.
Attachment #480857 -
Flags: review?(jdaggett) → review?(jfkthame)
Assignee | ||
Comment 12•14 years ago
|
||
Jonathan, would you review it?
Comment 13•14 years ago
|
||
Comment on attachment 480857 [details] [diff] [review]
Patch v1.0
(Sorry for the delay.)
I notice the same calculation is done in gfxFont::CalculateDerivedMetrics() at http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxFont.cpp#1550, except that it also guards against the possibility of internalLeading becoming negative; might be worth doing the same here.
Assignee | ||
Comment 14•14 years ago
|
||
Attachment #480857 -
Attachment is obsolete: true
Attachment #486979 -
Flags: review?(jfkthame)
Attachment #480857 -
Flags: review?(jfkthame)
Comment 15•14 years ago
|
||
Comment on attachment 486979 [details] [diff] [review]
Patch v2.0
Ok, this looks like the right thing to do; I hope it won't have unwanted effects on metrics/spacing elsewhere!
Attachment #486979 -
Flags: review?(jfkthame) → review+
Assignee | ||
Comment 16•14 years ago
|
||
Comment on attachment 486979 [details] [diff] [review]
Patch v2.0
Thanks, let's take this.
Attachment #486979 -
Flags: approval2.0?
Comment 17•14 years ago
|
||
That doesn't make me feel confident. Let's wait until after FF4 unless there's some really good reason we should take this now.
Attachment #486979 -
Flags: approval2.0? → approval2.0-
Assignee | ||
Comment 18•14 years ago
|
||
Comment on attachment 486979 [details] [diff] [review]
Patch v2.0
re-nominating for b8
Attachment #486979 -
Flags: approval2.0- → approval2.0?
Comment 19•14 years ago
|
||
I'd agree that we should take this as soon as possible; I don't see any benefit to deferring it.
Comment 20•14 years ago
|
||
Comment on attachment 486979 [details] [diff] [review]
Patch v2.0
Sounds good to me.
Attachment #486979 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 21•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Assignee | ||
Comment 22•14 years ago
|
||
temporary backed out due to a orange of reftest only on Win Opt.
http://hg.mozilla.org/mozilla-central/rev/93b47121bacd
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 23•14 years ago
|
||
The reftest failure is due to a couple of antialiasing pixels at the tips of serifs that project beyond the bounds used when painting, as in bug 475968; it does not indicate a real failure in this patch.
I'm not sure what has triggered the issue in this particular case, but I think the simplest fix is to add "font-family: sans-serif" to the body style of the test and reference. This will eliminate the serifs where the excess antialiasing pixels occur.
Comment 24•14 years ago
|
||
With this change to the troublesome reftest, the original patch for DW font metrics gives a clean reftest run (all platforms) on tryserver.
Attachment #488759 -
Flags: review?
Updated•14 years ago
|
Attachment #488759 -
Flags: review? → review?(masayuki)
Assignee | ||
Comment 25•14 years ago
|
||
Comment on attachment 488759 [details] [diff] [review]
use sans-serif for bugs/433700 reftest to avoid clipped antialiasing
Great! Thank you!
Attachment #488759 -
Flags: review?(masayuki) → review+
Assignee | ||
Comment 26•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/c17742be31fb
http://hg.mozilla.org/mozilla-central/rev/5ea89aae98b5
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•