Closed Bug 870816 Opened 11 years ago Closed 11 years ago

Replace DEBUG_INVALIDATIONS with a pref called nglayout.debug.invalidation

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch patch (obsolete) — Splinter Review
Attachment #747992 - Flags: review?(mounir)
Attachment #747992 - Flags: review?(mounir) → review?(matt.woodrow)
Attached patch patchSplinter Review
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 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+
https://hg.mozilla.org/mozilla-central/rev/4edb718559c5
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: