Closed Bug 1181087 Opened 9 years ago Closed 9 years ago

remove unnecessary physical setters from logical-coordinate classes

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(2 files)

Spun off from bug 1180643 comment 3. With only a little extra work, we can eliminate all use of physical setters for the various logical-coordinate classes, and then remove them from the WritingModes header altogether.
These conversions seem pretty simple, but I'll push a try job to check for unexpected breakage.
Attachment #8630416 - Flags: review?(smontagu)
Attachment #8630416 - Flags: review?(smontagu) → review+
Comment on attachment 8630417 [details] [diff] [review] part 2 - Remove the unused physical setter methods on logical-coordinate classes Review of attachment 8630417 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/generic/WritingModes.h @@ -673,5 @@ > CHECK_WRITING_MODE(aWritingMode); > return mPoint.y; > } > > - nscoord X(WritingMode aWritingMode, nscoord aContainerWidth) const I'm inclined to restrict the fix to removing the setters, and keep the const physical accessors even if they don't have any callers right now. @@ -682,5 @@ > - } else { > - return aWritingMode.IsBidiLTR() ? I() : aContainerWidth - I(); > - } > - } > - nscoord Y(WritingMode aWritingMode) const same here
Attachment #8630417 - Flags: review?(smontagu) → review+
(In reply to Simon Montagu :smontagu from comment #4) > I'm inclined to restrict the fix to removing the setters, and keep the const > physical accessors even if they don't have any callers right now. Ah, right - that's what I meant to do, just got a little over-enthusiastic. :) Fixed before pushing, thanks.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: