Closed
Bug 107530
Opened 24 years ago
Closed 24 years ago
[FIX] Error in transformation in nsTransform2D.cpp
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla0.9.6
People
(Reporter: jonitis, Assigned: attinasi)
Details
(Whiteboard: Patch provided)
Attachments
(2 files)
|
424 bytes,
patch
|
Details | Diff | Splinter Review | |
|
760 bytes,
patch
|
mkaply
:
review+
|
Details | Diff | Splinter Review |
Bug in functions Transform () and TransformCoord () in case of MG_2DGENERAL
transformation case. In case of calculating aWidth and aHeight the aHeight is
calculated twice, but aWidth is not changed at all.
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Updated•24 years ago
|
Whiteboard: Patch provided
Target Milestone: --- → mozilla0.9.6
Updated•24 years ago
|
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
Comment on attachment 55920 [details] [diff] [review]
Diff using -u
This is definitely just a bug
r=mkaply
Attachment #55920 -
Flags: review+
Updated•24 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
| Assignee | ||
Comment 4•24 years ago
|
||
So, is this code just not being exercised currently (it is so wrong)?
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.7 → mozilla0.9.6
| Reporter | ||
Comment 5•24 years ago
|
||
In Transform () there is special case optimization for:
1. coordinate transformation only. MG_2DTRANSLATION
2. coordinate scaling only. MG_2DSCALE
3. Scaling and translation. (MG_2DSCALE | MG_2DTRANSLATION). This is used most
of the time in rendering context. Scaling does the twip->pixel conversion and
translation is changed all the time in ViewManager.
Thus MG_2DGENERAL should have rotation in the matrix to be used in Transform. I
am almost sure that this is not used in the Mozilla anywhere. There is no public
interface (yet) to change the m10 and m01 which are responsible for rotation.
No risk to change. Just an obvious bug (copy-paste) which should be fixed.
| Assignee | ||
Comment 6•24 years ago
|
||
OK, thanks for the info. Will check-in (oh yea, sr=attinasi)
Summary: Error in transformation in nsTransform2D.cpp → [FIX] Error in transformation in nsTransform2D.cpp
| Assignee | ||
Comment 7•24 years ago
|
||
Checking in nsTransform2D.cpp;
/cvsroot/mozilla/gfx/src/nsTransform2D.cpp,v <-- nsTransform2D.cpp
new revision: 3.11; previous revision: 3.10
done
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•