Closed Bug 1406265 Opened 8 years ago Closed 8 years ago

[BC] SetIStartStart(), IsIStartStart(), IsBStartStart() and SetBStartStart() are not well used

Categories

(Core :: Layout: Tables, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: ywu, Assigned: ywu)

Details

Attachments

(1 file, 1 obsolete file)

I am tracing the table code for Bug 1405929 and it is pains for me that we don't use SetIStartStart(), IsIStartStart(), IsBStartStart() and SetBStartStart() properly. For SetIStartStart(), we don't even use it. I would like to change the places where we should use inline SetXXX() or inline IsXXX() instead of changing/getting the member values directly.
Comment on attachment 8915813 [details] [diff] [review] 0001-Bug-1406265-use-SetXXX-and-IsXXX-instead-of-chaning-.patch David, In this patch, I changed the places where we directly got/modified the |mBStartStart| and |mIStartStart| instead of calling the functions we created. This could make it clear where we change/get the |mBStartStart| and |mIStartStart|. try looks ok: https://treeherder.mozilla.org/#/jobs?repo=try&revision=06cd5a49a07524feaa7b24a16a1dbec5ce6ba376&selectedJob=135297404
Attachment #8915813 - Flags: review?(dbaron)
Comment on attachment 8915813 [details] [diff] [review] 0001-Bug-1406265-use-SetXXX-and-IsXXX-instead-of-chaning-.patch ># HG changeset patch ># User Ya-Chieh Wu <ywu@mozilla.com> > >Bug 1406265 - use SetXXX and IsXXX instead of chaning the member directly s/chaning/changing/, and probably s/XXX/*/ (Also, it would be better for the Is* and Set* methods to be defined right where they're declared rather than being defined at the end of the header file.)
Attachment #8915813 - Flags: review?(dbaron) → review+
Status: NEW → ASSIGNED
try looks ok.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fc7f5199a0e2 use Set* and Is* instead of changing/getting the member directly. r=dbaron
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: