Closed
Bug 604723
Opened 14 years ago
Closed 14 years ago
Wrong svg:image position
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla2.0b7
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta8+ |
People
(Reporter: mash, Assigned: dholbert)
References
Details
(Keywords: regression)
Attachments
(4 files)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101015 Firefox/4.0b8pre
Build Identifier:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 85 85">
<image xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="firefox.png"
x="0" y="0"
width="100%" height="100%"/>
</svg>
Wrong svg:image position.
Reproducible: Always
![]() |
||
Comment 1•14 years ago
|
||
Can you please either point to a web page showing the problem, or attach the full SVG file and image needed to reproduce the issue?
Reporter | ||
Comment 2•14 years ago
|
||
Reporter | ||
Updated•14 years ago
|
Summary: Wrong svn:image position → Wrong svg:image position
![]() |
||
Comment 3•14 years ago
|
||
Ah, indeed. Looks like a regression from 3.6.
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Ever confirmed: true
Reporter | ||
Comment 4•14 years ago
|
||
Regression window:
ok: 2010-10-11-03-mozilla-central
bad: 2010-10-12-03-mozilla-central
Assignee | ||
Comment 5•14 years ago
|
||
This testcase demonstrates the bug. It looks like, for <svg> embedded in HTML, we set the "0,0" position to be the upper-left corner of the _host_ document, rather than the upper-left corner of the <svg> node.
Assignee | ||
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
![]() |
||
Comment 6•14 years ago
|
||
yeah, indeed:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5a41a70eb631&tochange=2593c8c8af8b
It's gotta be bug 598798.
Blocks: 598798
blocking2.0: ? → beta8+
OS: All → Mac OS X
Hardware: All → x86
Version: Trunk → unspecified
![]() |
||
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•14 years ago
|
||
This testcase replaces the <image> element with a <circle>. No bug here.
Assignee | ||
Comment 8•14 years ago
|
||
(so, specific to <image> painting --> definitely bug 598798.)
Assignee | ||
Comment 9•14 years ago
|
||
Trivial fix. I should have used ctx->Multiply() instead of SetMatrix(), to match the behavior in nsSVGUtils::CompositeSurfaceMatrix() (the method we used to use for applying the matrix & drawing). This fixes that and fixes the bug.
Attachment #483590 -
Flags: review?
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 483590 [details] [diff] [review]
fix
(RE the svg/image/reftest.list change -- this patch just adds one line to that file, though I also increased indentation on other lines, so the reference cases would still line up nicely.)
Attachment #483590 -
Flags: review? → review?(jwatt)
Assignee | ||
Comment 12•14 years ago
|
||
Comment on attachment 483590 [details] [diff] [review]
fix
additional-r?'ing longsonr in case he gets to this first.
Attachment #483590 -
Flags: review?(longsonr)
Updated•14 years ago
|
Attachment #483590 -
Flags: review?(longsonr) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #483590 -
Flags: review?(jwatt)
Assignee | ||
Comment 13•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Keywords: regression
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Comment 14•14 years ago
|
||
(In reply to comment #11)
> *** Bug 605416 has been marked as a duplicate of this bug. ***
There are still some not got fixed,
see Bug 606418
Updated•14 years ago
|
Target Milestone: mozilla2.0b8 → mozilla2.0b7
You need to log in
before you can comment on or make changes to this bug.
Description
•