Closed
Bug 1195857
Opened 9 years ago
Closed 9 years ago
Change HasAuthorSpecifiedRules to take a const arg, to remove need for hacky const_casts
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(1 file)
5.29 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
When reviewing bug 1182414, I noticed we generally do a hacky const_cast on "this" before calling HasAuthorSpecifiedRules (in existing code), since HasAuthorSpecifiedRules takes a non-const nsIFrame*.
There's no reason it has to be this way; HasAuthorSpecifiedRules can just take a const nsIFrame*, and then we can do away with all these const_casts.
Assignee | ||
Comment 1•9 years ago
|
||
My patch for this layers on top of jwatt's patch for bug 1182414 (which touches the same call-sites).
Depends on: 1182414
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8649365 -
Flags: review?(jwatt)
Comment 3•9 years ago
|
||
Comment on attachment 8649365 [details] [diff] [review]
fix v1
Looks good. Free to land this before my patch.
Attachment #8649365 -
Flags: review?(jwatt) → review+
Assignee | ||
Comment 4•9 years ago
|
||
OK, thanks -- landed: https://hg.mozilla.org/integration/mozilla-inbound/rev/50b36c5e9060
Assignee | ||
Updated•9 years ago
|
Flags: in-testsuite-
Comment 5•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•