Closed Bug 462972 Opened 17 years ago Closed 4 years ago

Fix nsChangeHint comparisons

Categories

(Core :: Layout: Tables, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Unassigned)

Details

Attachments

(1 file)

Attached patch fixSplinter Review
My build fails due to the recent BC change. Basically, operator== should not be used for nsChangeHints.
Attachment #346176 - Flags: superreview?(dbaron)
Attachment #346176 - Flags: review?(bernd_mozilla)
Comment on attachment 346176 [details] [diff] [review] fix sr=dbaron
Attachment #346176 - Flags: superreview?(dbaron) → superreview+
Attachment #346176 - Flags: review?(bernd_mozilla) → review+
sorry for breaking your build, but I would really like to learn why your build breaks when tinderbox is green.
I think you should remove the ifdefs :-)
59 // Redefine these operators to return nothing. This will catch any use 60 // of these operators on hints. We should not be using these operators 61 // on nsChangeHints Robert and now the last incompetent question before I go hiding again, why is this bad? It looks pretty innocent to me.
The intent was that nsChangeHint is a set of bits, and we should be able to add new bits to that set without breaking things by changing existing behaviour.
Sorry for missing this. :( And yes, I think the ifdefs should just go.
Pushed b282e708accc. I'll leave this open for removing the #ifdefs.
Status: NEW → ASSIGNED
Assignee: roc → nobody
This is a mass change. Every comment has "assigned-to-new" in it. I didn't look through the bugs, so I'm sorry if I change a bug which shouldn't be changed. But I guess these bugs are just bugs that were once assigned and people forgot to change the Status back when unassigning.
Status: ASSIGNED → NEW

I assume the #ifdefs mentioned in comment 8 is #ifdef DEBUG_roc. If so, it was removed in bug 502288.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: