Closed Bug 1129943 Opened 10 years ago Closed 10 years ago

[Header] We should not run twice when attaching + changing textContent

Categories

(Firefox OS Graveyard :: Gaia::Components, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.2 fixed, b2g-master fixed)

RESOLVED FIXED
2.2 S6 (20feb)
Tracking Status
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: julienw, Assigned: julienw)

Details

Attachments

(1 file)

(deleted), text/x-github-pull-request
wilsonpage
: review+
Details
When attaching a new header and then changing its content, we run runFontFit twice. This happens especially in Settings because panels are appended dynamically and the l10n library translates them in a mutation handler.
Attached file github PR (deleted) —
hey Wilson, This fixed the issue for me. We can see it quite easily when enabling the handy logs :)
Attachment #8559824 - Flags: review?(wilsonpage)
Blocking Request: this is a performance improvement (I think we win ~10/15ms when this happens). This is not a launch-time performance improvement though. I intend to uplift this as part of the other gaia-header enhancements and it would be really difficult to separate the various changes.
blocking-b2g: --- → 2.2?
stamped 0.6.3
Target Milestone: --- → 2.2 S6 (20feb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: