Media Controls: Avoid style recalculation
When generating the media controls DOM we were recalculating styles each time we called 'AppendChild'. This moves us to using 'ParserAppendChild' which does not do this. According to manual testing this reduces the time calculating styles from 230ms to 139ms. BUG=821961,821414 Change-Id: I0d673ddc6e12ff81a311315466be735a7673c1bd Reviewed-on: https://chromium-review.googlesource.com/998187 Commit-Queue: Becca Hughes <beccahughes@chromium.org> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Cr-Commit-Position: refs/heads/master@{#548872}
Showing
Please register or sign in to comment