Open
Bug 390260
Opened 19 years ago
Updated 4 years ago
nsCSSParser::ExpectEndProperty no longer needed
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: dbaron, Unassigned)
References
Details
In bug 378217 comment 22 I suggested that missing ExpectEndProperty calls were needed. I sat down to write a test for this, and found that we don't actually need ExpectEndProperty anymore (except for the places that use it to check if they're at the end or not while accepting a list), since all of the callers of ParseProperty check for the correct termination. We could get a good bit of codesize savings by removing most of the callers to ExpectEndProperty (and we should perhaps rename it to IsEndProperty).
Boris, do you see any reason why this would still be needed in the bulk of the cases (i.e., those where if it fails we return false)?
Comment 1•19 years ago
|
||
Other than as an optimization to bail out faster in cases when there's trailing stuff, I don't think we need it. And I don't think we should be making that optimization. ;)
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•