Closed
Bug 452278
Opened 16 years ago
Closed 16 years ago
CSSParserImpl::InitScanner() never fails - remove unnecessary checks
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9.1
People
(Reporter: zwol, Assigned: zwol)
References
Details
Attachments
(1 file, 1 obsolete file)
6.74 KB,
patch
|
Details | Diff | Splinter Review |
While doing the patch for bug 452275 I noticed that CSSParserImpl::InitScanner() (both overloads) and ::ReleaseScanner() always return NS_OK. The return value of ::InitScanner was being scrupulously checked by all callers, but that from ::ReleaseScanner was being ignored. Since none of these are NS_IMETHODs, I just went ahead and made them return void and deleted the error checks in the caller. This depends on bug 452275 only because the patch was developed on top of it.
Attachment #335560 -
Flags: superreview?(dbaron)
Attachment #335560 -
Flags: review?(dbaron)
Comment on attachment 335560 [details] [diff] [review] (rev 1) initial patch r+sr=dbaron. (And it looks like the GatherMedia change addresses one of my review comments on bug 452275, though maybe it should be part of that patch.) Again, I could land this for you later if you update it. (Or you could even mail me an hg bundle containing changesets for both of these patches...)
Attachment #335560 -
Flags: superreview?(dbaron)
Attachment #335560 -
Flags: superreview+
Attachment #335560 -
Flags: review?(dbaron)
Attachment #335560 -
Flags: review+
Assignee | ||
Comment 2•16 years ago
|
||
revised patch. I did move the GatherMedia error handling change to the first patch in the series.
Assignee | ||
Updated•16 years ago
|
Attachment #335560 -
Attachment is obsolete: true
Assignee | ||
Comment 3•16 years ago
|
||
landing seems to have stuck.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•