Avoid textContent-related layout thrashing

See https://bugzilla.mozilla.org/show_bug.cgi?id=725221,
https://bugzilla.mozilla.org/show_bug.cgi?id=873425.
Update D3 patch list