Closed
Bug 426738
Opened 17 years ago
Closed 17 years ago
SVG text in hyperlink appears to have incorrect length
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: duncan.loveday, Assigned: longsonr)
References
Details
(Keywords: regression, testcase)
Attachments
(2 files, 2 obsolete files)
465 bytes,
image/svg+xml
|
Details | |
1.21 KB,
patch
|
roc
:
review+
roc
:
superreview+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008040112 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008040112 Minefield/3.0pre
Some SVG hyperlinks containing text appear to have a "mouse active" region (if that is the right term) not covering the whole of the text.
Reproducible: Always
Steps to Reproduce:
1. Open this attachment https://bugzilla.mozilla.org/attachment.cgi?id=312910 from bug 425662
2. Click on the word "me" within "click me"
3.
Actual Results:
Nothing happens
Expected Results:
The hyperlink should activate, displaying an alert.
The hyperlink is only activated when clicking on the word "click" within "click me".
Reporter | ||
Comment 1•17 years ago
|
||
Regressed at the same time as bug 425662, i.e. between
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2008-03-18-06-trunk/firefox-3.0b5pre.en-US.win32.installer.exe
and
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2008-03-19-05-trunk/firefox-3.0b5pre.en-US.win32.installer.exe
Depends on: 425662
Keywords: regression,
testcase
Assignee | ||
Comment 2•17 years ago
|
||
Assignee: nobody → longsonr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #313408 -
Flags: superreview?(roc)
Attachment #313408 -
Flags: review?(roc)
Assignee | ||
Updated•17 years ago
|
Assignee | ||
Updated•17 years ago
|
Hmm, why is this correct? MeasureText returns appunits, so shouldn't we be doing SetupForMetrics?
Assignee | ||
Comment 4•17 years ago
|
||
Assignee | ||
Comment 5•17 years ago
|
||
Attachment #313789 -
Attachment is obsolete: true
Assignee | ||
Updated•17 years ago
|
Attachment #313408 -
Flags: superreview?(roc)
Attachment #313408 -
Flags: review?(roc)
Assignee | ||
Comment 6•17 years ago
|
||
(In reply to comment #3)
> Hmm, why is this correct? MeasureText returns appunits, so shouldn't we be
> doing SetupForMetrics?
>
My new testcase shows you are right. The patch breaks textPath (which currently works). I'll try to figure out what it is about textPath that is working when text is not.
![]() |
||
Updated•17 years ago
|
Flags: wanted1.9+
Assignee | ||
Comment 7•17 years ago
|
||
The advance width is in app units.
Attachment #313408 -
Attachment is obsolete: true
Attachment #313955 -
Flags: superreview?(roc)
Attachment #313955 -
Flags: review?(roc)
Comment on attachment 313955 [details] [diff] [review]
corrected patch
Bingo! Good work!
Attachment #313955 -
Flags: superreview?(roc)
Attachment #313955 -
Flags: superreview+
Attachment #313955 -
Flags: review?(roc)
Attachment #313955 -
Flags: review+
Assignee | ||
Comment 9•17 years ago
|
||
Comment on attachment 313955 [details] [diff] [review]
corrected patch
Simple fix for a recent regression.
Attachment #313955 -
Flags: approval1.9?
Comment 10•17 years ago
|
||
Comment on attachment 313955 [details] [diff] [review]
corrected patch
a1.9=beltzner
Attachment #313955 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 11•17 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•