Closed
Bug 870816
Opened 12 years ago
Closed 12 years ago
Replace DEBUG_INVALIDATIONS with a pref called nglayout.debug.invalidation
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file, 1 obsolete file)
18.36 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
The fact that you have to change the source and recompile to enable DEBUG_INVALIDATIONS is pretty annoying. I find myself wanting to debug invalidation pretty often.
The "Logging Wish List" section on:
https://wiki.mozilla.org/Gecko:DisplayListBasedInvalidation#Debugging_Invalidations_Problems
says to make it work in release builds too, so I've not kept things behind an ifdef DEBUG.
![]() |
Assignee | |
Comment 1•12 years ago
|
||
Attachment #747992 -
Flags: review?(mounir)
![]() |
Assignee | |
Updated•12 years ago
|
Attachment #747992 -
Flags: review?(mounir) → review?(matt.woodrow)
![]() |
Assignee | |
Comment 2•12 years ago
|
||
Hmm, except that this won't compile in opt builds without also moving a whole bunch of other stuff out from #ifdef DEBUG blocks, of course. For now let's keep this simple and just get it working for debug builds.
Attachment #747992 -
Attachment is obsolete: true
Attachment #747992 -
Flags: review?(matt.woodrow)
Attachment #748451 -
Flags: review?(matt.woodrow)
Comment 3•12 years ago
|
||
Comment on attachment 748451 [details] [diff] [review]
patch
Review of attachment 748451 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/base/FrameLayerBuilder.cpp
@@ +820,5 @@
> // to the ThebesLayer's own coordinates
> nsIntRegion rgn = aRegion;
> rgn.MoveBy(-aTranslation);
> aLayer->InvalidateRegion(rgn);
> +#ifdef DEBUG
Change this (and all the others) to MOZ_DUMP_PAINTING, which is what the nsDisplayList debug functions use.
It's always defined in debug, but can be conditionally defined for opt builds too.
Attachment #748451 -
Flags: review?(matt.woodrow) → review+
![]() |
Assignee | |
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4edb718559c5
I updated the docs.
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•