Closed Bug 824132 Opened 9 years ago Closed 9 years ago
Avoid resetting the theme on startup
When Gecko starts, if there is no theme, it sends a reset-theme message. This will cause all the registered views to set its own background again. This is unnecessary. We could use a state variable to monitor this -- just so to reset only if a theme is enabled.
This ensures reset is called only if it is ever set.
Attachment #695038 - Flags: review?(mark.finkle)
Comment on attachment 695038 [details] [diff] [review] Patch This is OK, but could we use mBitmap as the "state"? If mBitmap is null, the theme is not enabled. If mBitmap is not null then the theme is enabled. If we can use mBitmap, let's do it. If the boolean is better, I'm OK with it.
Attachment #695038 - Flags: review?(mark.finkle) → review+
Pushed with mBitmap as the state: https://hg.mozilla.org/integration/mozilla-inbound/rev/30607c0b98c2
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Comment on attachment 695038 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Optimization. User impact if declined: None. Testing completed (on m-c, etc.): Landed in m-c on 12/27 Risk to taking this patch (and alternatives if risky): Very low. String or UUID changes made by this patch: None. (This patch is required for Bug 816114).
Attachment #695038 - Flags: approval-mozilla-aurora?
Attachment #695038 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.