Closed
Bug 208731
Opened 22 years ago
Closed 21 years ago
possible improvements to nsCSSRect type
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha1
People
(Reporter: dbaron, Assigned: bzbarsky)
Details
Attachments
(1 file)
9.91 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
nsCSSRect could probably use a few more methods to simplify callers' use of it.
In bug 125246 comment 45, bzbarsky wrote:
1) Maybe add a function on nsCSSRect that returns true if and only if at least
one of the members has non-null unit.
2) Maybe add a Reset() function on nsCSSRect.
From bug 125246 comment 33:
We may want to add a function on nsCSSRect that checks whether any of the
sub-values is null. We're ending up doing that check in a number of places...
Maybe nsCSSRect::HasValue() or something? (Not necessarily as part of this
patch; I can file a separate bug on this.)
and:
We may want a Reset() on nsCSSRect too (looking at ClearProperty here).
Reporter | ||
Updated•22 years ago
|
Severity: major → normal
![]() |
Assignee | |
Comment 1•22 years ago
|
||
I looked around, and there wouldn't be any other callers of these functions at
the moment... that makes me somewhat question how much we need them, to be
truthful.
![]() |
Assignee | |
Comment 2•21 years ago
|
||
Comment on attachment 127509 [details] [diff] [review]
Something like this....
On the other hand, I do think this makes the code more readable... David,
there's no rush on this review, clearly; I'd pick on someone else, but no one
else knows this code. :(
Attachment #127509 -
Flags: superreview?(dbaron)
Attachment #127509 -
Flags: review?(dbaron)
Reporter | ||
Updated•21 years ago
|
Attachment #127509 -
Flags: superreview?(dbaron)
Attachment #127509 -
Flags: superreview+
Attachment #127509 -
Flags: review?(dbaron)
Attachment #127509 -
Flags: review+
![]() |
Assignee | |
Comment 3•21 years ago
|
||
Taking.
Assignee: dbaron → bzbarsky
Priority: -- → P1
Target Milestone: --- → mozilla1.8alpha
![]() |
Assignee | |
Comment 4•21 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•