Closed Bug 929673 Opened 11 years ago Closed 11 years ago

rename some variables/functions that use -moz- CSS prefixes in their names

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(3 files)

There's some code dating from bug 706179 and from bug 435293 that uses "mozOrigin" or "mozTransformOrigin" where it should be using "transformOrigin" as a variable name.  We shouldn't be putting CSS prefixes in variable names -- and we especially shouldn't be removing the important part of the variable name and replacing it with the prefix (mozOrigin for the value of transform-origin).
Attachment #820563 - Flags: review?(dzbarsky) → review+
Attachment #820564 - Flags: review?(dzbarsky) → review+
Comment on attachment 820566 [details] [diff] [review]
Patch 3:  Rename GetDeltaToMoz{Transform,Perspective}Origin to remove the Moz to avoid use of deprecated CSS prefixes in variable names.

Review of attachment 820566 [details] [diff] [review]:
-----------------------------------------------------------------

After these patches we still have a gMozTransformSubpropTable at http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSProps.cpp#2440 that seems to be unused.  Want to get rid of that too?
Attachment #820566 - Flags: review?(dzbarsky) → review+
(In reply to David Zbarsky (:dzbarsky) from comment #5)
> After these patches we still have a gMozTransformSubpropTable at
> http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSProps.
> cpp#2440 that seems to be unused.  Want to get rid of that too?

No; it's used (via CSS_PROP_SHORTHAND in nsCSSPropList.h), and it's part of what makes -moz-transform an alias for transform.
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: