Closed
Bug 839956
Opened 11 years ago
Closed 11 years ago
underlines in SVG text drawn with the wrong size
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(2 files, 1 obsolete file)
1.60 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
9.58 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
With svg.text.css-frames.enabled true, text decorations don't seem to be rendered with the correct thickness. Try opening layout/reftests/svg/text/simple-underline.txt and pressing {Cmd,Ctrl}+Plus and notice that the underline stays at its original thickness.
Comment 2•11 years ago
|
||
See http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObjectApproved/text-text-03-b.html too where the decoration is basically invisible when the SVG document is shown embedded in the html page but appears when you select view in tab.
Assignee | ||
Comment 3•11 years ago
|
||
Also if you view http://www.w3.org/Graphics/SVG/Test/20110816/svg/text-text-03-b.svg the strike through decoration is not positioned correctly. If I disable font size scaling by making UpdateFontSizeScaleFactor return early, then the decorations all look OK.
Blocks: svgtext
Assignee | ||
Updated•11 years ago
|
Summary: underlines in SVG text drawn with the wrong size when full page zoom is active → underlines in SVG text drawn with the wrong size
Assignee | ||
Comment 4•11 years ago
|
||
The font size scale factor should not have taken the CSS:device pixel ratio into account. This fixes the decoration thickness, but not the position of the strike through decoration, which I'll look into with a separate patch.
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #735686 -
Attachment is obsolete: true
Attachment #735686 -
Flags: review?(longsonr)
Attachment #735687 -
Flags: review?(longsonr)
Updated•11 years ago
|
Attachment #735687 -
Flags: review?(longsonr) → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ff1755d6359
Whiteboard: [leave open]
Assignee | ||
Comment 7•11 years ago
|
||
Text decoration size/position is currently only correct when mFontSizeScaleFactor is 1. The patch above just ensures that we get 1 for normal-ish font-sizes on text that hasn't been scaled.
Assignee | ||
Comment 8•11 years ago
|
||
Here's the solution for that. We weren't getting in to the nsLayoutUtils::GetInflationFor code that looks at the SVG text's font size scale factor. So get it here, when we get the inflated metrics for text decorations.
Attachment #736155 -
Flags: review?(roc)
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0ff1755d6359
Attachment #736155 -
Flags: review?(roc) → review+
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ebbf1484ca37
Whiteboard: [leave open]
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ebbf1484ca37
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•