Closed Bug 107530 Opened 24 years ago Closed 24 years ago

[FIX] Error in transformation in nsTransform2D.cpp

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.6

People

(Reporter: jonitis, Assigned: attinasi)

Details

(Whiteboard: Patch provided)

Attachments

(2 files)

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.
Whiteboard: Patch provided
Target Milestone: --- → mozilla0.9.6
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch, review
Attached patch Diff using -uSplinter Review
Comment on attachment 55920 [details] [diff] [review] Diff using -u This is definitely just a bug r=mkaply
Attachment #55920 - Flags: review+
Target Milestone: mozilla0.9.6 → mozilla0.9.7
So, is this code just not being exercised currently (it is so wrong)?
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.7 → mozilla0.9.6
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.
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
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.

Attachment

General

Creator:
Created:
Updated:
Size: