commit | 369fded22b179d683bd949e34592becc897f3c08 | [log] [tgz] |
---|---|---|
author | Darren Shen <shend@chromium.org> | Thu Feb 08 07:39:00 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Feb 08 07:39:00 2018 |
tree | fb8acbb40681401c0e667235d15cb83cc2d6258a | |
parent | d4ff25f15438300b5349b601d3619c6d1d5063ac [diff] |
[css-typed-om] Make styleMap.get slightly faster. This patch specializes the styleMap.get function to be fast in the happy case of retrieving a non-list property. No change in behaviour. Improves performance by 2-3%. Fixed an issue involving background-image. background-image should be a list valued property, but was not marked as such. It worked before because .get treated list-valued and non-list valued the same way. But now we have a special code path for non-list valued that only works for non-list valued, so any list-valued properties that are not marked as such will break. Fixed another issue with align-items (see comment in code). Bug: 808933 Change-Id: I91ebccda69c5f6ec380f1510fd5acf3b9feb6710 Reviewed-on: https://chromium-review.googlesource.com/899410 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#535328}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .