Closed Bug 353872 Opened 18 years ago Closed 18 years ago

font-size-adjust broken on windows

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla1, Assigned: masayuki)

References

(Depends on 1 open bug, )

Details

(Keywords: regression, testcase)

Attachments

(1 file, 1 obsolete file)

See url for hixie's testcases from 2001
Attached patch Patch rv1.0 (obsolete) — Splinter Review
fix.
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Attachment #247327 - Flags: review?(pavlov)
Attached patch Patch rv1.1Splinter Review
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)
Stuart: Would you review this too? This is very simple.
Attachment #248218 - Flags: review?(pavlov) → review+
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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 ?
(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 → ---
Status: REOPENED → ASSIGNED
(In reply to comment #6) > I see. The font-size is rounded to zero at calculating. > Please ignore this comment.
(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?)
(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.
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.
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'.
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 ago18 years ago
No longer depends on: 366138
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
No longer blocks: 369083
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.

Attachment

General

Created:
Updated:
Size: