[quickview] Use polymer setProperties() to clear the metadata box
Change the QuickView metadata box custom element clear() method to use Polymer this.setProperties() which can set multiple element properties with one function call. Create a local reset Object, containing the properties to change, then call this.setProperties(reset) to apply those changes. Per lucmult@ CL:1937949, it is 25-33% faster, compared to setting each property value, one after the other as in the code before this CL. Bug: 1029211 Change-Id: Ia00f334a5f2394546ce0395fd654c0017f5354a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1941531Reviewed-by:Noel Gordon <noel@chromium.org> Reviewed-by:
Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#719933}
Showing
Please register or sign in to comment