Closed
Bug 233292
Opened 21 years ago
Closed 21 years ago
remove "empty damage rect" warning in nsFrame::Invalidate
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: dbaron, Assigned: dbaron)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [patch])
Attachments
(1 file)
(deleted),
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
I think the "empty damage rect" warning is silly. Function call overhead isn't
that high, and the code for checking emptiness could easily be in both places or
just inside nsFrame::Invalidate. Furthermore, the flow of control shouldn't be
different in DEBUG and non-DEBUG builds.
Assignee | ||
Comment 1•21 years ago
|
||
Also use const in a few places to get rid of DEBUG-only warnings.
Assignee | ||
Updated•21 years ago
|
Attachment #140755 -
Flags: superreview?(roc)
Attachment #140755 -
Flags: review?(roc)
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [patch]
Target Milestone: --- → mozilla1.7alpha
Comment on attachment 140755 [details] [diff] [review]
patch
Hear hear!
The code should definitely be in the callee, not the caller, because there are
always more callers than callees
Attachment #140755 -
Flags: superreview?(roc)
Attachment #140755 -
Flags: superreview+
Attachment #140755 -
Flags: review?(roc)
Attachment #140755 -
Flags: review+
Assignee | ||
Comment 3•21 years ago
|
||
Fix checked in 2004-02-06 15:11 -0800.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 4•21 years ago
|
||
We have a lot of callers that _do_ check the emptiness of the rect... should
those checks be removed as convenient?
Assignee | ||
Comment 5•21 years ago
|
||
It doesn't matter to me.
bz: I think so
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•