Closed
Bug 353872
Opened 18 years ago
Closed 18 years ago
font-size-adjust broken on windows
Categories
(Core :: Graphics, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: bugzilla1, Assigned: masayuki)
References
(Depends on 1 open bug, )
Details
(Keywords: regression, testcase)
Attachments
(1 file, 1 obsolete file)
6.68 KB,
patch
|
pavlov
:
review+
|
Details | Diff | Splinter Review |
See url for hixie's testcases from 2001
Assignee | ||
Comment 1•18 years ago
|
||
fix.
Assignee | ||
Comment 2•18 years ago
|
||
We should check whether the mAdjustedSize is not zero.
Attachment #247327 -
Attachment is obsolete: true
Attachment #248218 -
Flags: review?(pavlov)
Attachment #247327 -
Flags: review?(pavlov)
Assignee | ||
Comment 3•18 years ago
|
||
Stuart:
Would you review this too? This is very simple.
Updated•18 years ago
|
Attachment #248218 -
Flags: review?(pavlov) → review+
Assignee | ||
Comment 4•18 years ago
|
||
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 5•18 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070105 Minefield/3.0a2pre ID:2007010512 [cairo]
http://hixie.ch/tests/adhoc/css/fonts/size-adjust/004.xml
http://hixie.ch/tests/adhoc/css/fonts/size-adjust/005.xml
http://hixie.ch/tests/adhoc/css/fonts/size-adjust/006.xml
http://hixie.ch/tests/adhoc/css/fonts/size-adjust/009.xml
still fail.
I don't know if you want to reopen this bug or open another one ?
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070105
> Minefield/3.0a2pre ID:2007010512 [cairo]
>
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/004.xml
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/005.xml
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/006.xml
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/009.xml
>
> still fail.
Wow, thank you for the report. I see. The font-size is rounded to zero at calculating. I'll attach the patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•18 years ago
|
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 7•18 years ago
|
||
(In reply to comment #6)
> I see. The font-size is rounded to zero at calculating.
>
Please ignore this comment.
Assignee | ||
Comment 8•18 years ago
|
||
(In reply to comment #5)
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070105
> Minefield/3.0a2pre ID:2007010512 [cairo]
>
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/004.xml
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/005.xml
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/006.xml
> http://hixie.ch/tests/adhoc/css/fonts/size-adjust/009.xml
>
> still fail.
>
> I don't know if you want to reopen this bug or open another one ?
>
Oops, I may have a misread the spec of CSS2. Should the all line-height of the testcases be calculated from actual value of the line (i.e., the adjusted size by font-size-adjust)? If so, the old gfx has same problem. (I believed that the old gfx is correct, but it's wrong?)
Comment 9•18 years ago
|
||
(In reply to comment #8)
> Oops, I may have a misread the spec of CSS2. Should the all line-height of the
> testcases be calculated from actual value of the line (i.e., the adjusted size
> by font-size-adjust)? If so, the old gfx has same problem. (I believed that the
> old gfx is correct, but it's wrong?)
Don't ask me, I just wanted to verify this bug and noted that a part of the testcases you gave as reference still failed.
Assignee | ||
Comment 10•18 years ago
|
||
dbaron:
Should the line-height value be computed from adjusted font size? or from computed value of font-size? I believed that it is computed from font-size, but Peter said that the patch still fails textcase 4, 5, 6 and 9. The line-heights are calculated from the computed value of font-size. This behavior is same as old gfx (win32). But on old gfx, the 'ex' is calculated from adjusted font size... What is a correct result??
# I think that I need to re-create the patch for linux in bug 363410.
Assignee | ||
Comment 11•18 years ago
|
||
I'm waiting the answer from dbaron.
But if the line-heights should be calculating from adjusted font size, it may not be this bug. Because in nsRuleNode.cpp, http://lxr.mozilla.org/mozilla/source/layout/style/nsRuleNode.cpp#219
the font-size value is used for the calculating except 'ex'.
Assignee | ||
Comment 12•18 years ago
|
||
I filed bug 366138 for the 'issue' for testcases 4, 5, 6 and 9.
Please check the bug for them.
marking to FIXED.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago → 18 years ago
No longer depends on: 366138
Resolution: --- → FIXED
Updated•18 years ago
|
Status: RESOLVED → VERIFIED
Comment 13•17 years ago
|
||
Could someone please take a look at bug 413137 and triage it appropriately?
You need to log in
before you can comment on or make changes to this bug.
Description
•