Closed
Bug 575901
Opened 13 years ago
Closed 13 years ago
DeCOMtaminate nsIStyleRuleProcessor method signatures
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla2.0b2
People
(Reporter: craig.topper, Assigned: craig.topper)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
21.72 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
19.40 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Converted an outparam on one method. The others I just changed NS_IMETHOD to virtual nsresult because the implementations can return something other than NS_OK. Though I don't think the caller of RulesMatching checks the result. So I'm willing to do further changes to remove the return type with some help.
Attachment #455078 -
Flags: review?(dbaron)
![]() |
||
Comment 1•13 years ago
|
||
> Though I don't think the caller of RulesMatching checks the result.
Indeed. I think we should nix those return types. What help do you need?
Assignee | ||
Comment 2•13 years ago
|
||
There's an OOM check in ElementTransitions::EnsureStyleRuleFor that causes RulesMatching to return NS_ERROR_OUT_OF_MEMORY. Can I just remove the OOM check from that method?
![]() |
||
Comment 3•13 years ago
|
||
Yes, operator new never returns null on trunk.
Assignee | ||
Comment 4•13 years ago
|
||
Removed the OOM check so I could remove the nsresult return type.
Attachment #455612 -
Flags: review?(dbaron)
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #455612 -
Attachment is obsolete: true
Attachment #455891 -
Flags: review?(dbaron)
Attachment #455612 -
Flags: review?(dbaron)
Assignee | ||
Updated•13 years ago
|
Attachment #455078 -
Flags: review?(dbaron) → review?(bzbarsky)
Assignee | ||
Updated•13 years ago
|
Attachment #455891 -
Flags: review?(dbaron) → review?(bzbarsky)
![]() |
||
Comment 6•13 years ago
|
||
Comment on attachment 455078 [details] [diff] [review] Patch r=bzbarsky
Attachment #455078 -
Flags: review?(bzbarsky) → review+
![]() |
||
Comment 7•13 years ago
|
||
Comment on attachment 455891 [details] [diff] [review] Remove nsresult return type from RulesMatching updated to tip This is fine, but one followup that might be worth doing is to implement empty version of the various RulesMatching methods directly on nsIStyleRuleProcessor and remove all the empty subclass impls Might make icache a little happier.
Attachment #455891 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 8•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/02e762e39d42
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
OS: Windows 98 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b2
You need to log in
before you can comment on or make changes to this bug.
Description
•