commit | 6204aad84a7aa3469b1b8937e34c1cd86b45347d | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Wed Sep 05 12:22:38 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 05 12:22:38 2018 |
tree | adc2f5db6f0790e71d9d11ac5bb6dd4c5f63906d | |
parent | c0e33dc436d95daaee5562ebccfec305a820920d [diff] |
[css-properties-values-api] Reify values from styleMap.get. This CL gives return values from element.styleMap.get the correct type according to the current PropertyRegistration. The expected behavior is exactly the same as for attributeStyleMap, so those tests have been adapted to run for both API entry points. Note: PrepopulatedComputedStylePropertyMap is available in worklets, where the ExecutionContext is not a Document, but we don't need to reify values in this case, because already-reified values are "pushed" rather than "pulled". (See ::UpdateStyle). Note: Exit ParseIfRegistered before registration lookup. This avoids the lookup if we already know that we won't need it (which is the case for [Prepopulated]ComputedStylePropertyMap). Bug: 641877 Change-Id: Id54a22079c88368efccc372d01252fa3e7734d10 Reviewed-on: https://chromium-review.googlesource.com/1201302 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#588840}
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 .