Closed Bug 1168950 Opened 5 years ago Closed 5 years ago
Add the document to Do
Process Restyles profile label
This is handy for figuring what's being restyled in profiles.
GetSpec on a URI can be a pretty expensive operation. Can we somehow do that only when we're actually profiling?
(In reply to Not doing reviews right now from comment #1) > GetSpec on a URI can be a pretty expensive operation. Can we somehow do > that only when we're actually profiling? Probably. I'll investigate.
Only GetSpec if needed
Comment on attachment 8611478 [details] [diff] [review] Add the document to DoProcessRestyles Please: * go back to 2 space indentation * default-construct docURL instead of using "N/A"; better not to waste time copying the string when we don't need it * given that you're calling profiler_is_active, may as well put it around more stuff, i.e., don't even call Document()->GetDocumentURI() if it's not active. (But still null-check it.) * brace single-line ifs r=dbaron with that
Attachment #8611478 - Flags: review?(dbaron) → review+
You need to log in before you can comment on or make changes to this bug.