commit | 143f24fc70141c38e74e17e8406eda0be24948f0 | [log] [tgz] |
---|---|---|
author | Rakina Zata Amni <rakina@chromium.org> | Mon Jul 09 06:43:51 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jul 09 06:43:51 2018 |
tree | 081ce74d00c2d6aae45e8f67f72a6a8d6fc2fde2 | |
parent | 1c05d59aa36f960c74f90c6433e5c43b3948c30d [diff] |
Change CSSStyleSheet constructor to produce only empty CSSStyleSheets We previously implemented constructable CSSStyleSheet synchronously, but discussions in https://github.com/WICG/construct-stylesheets/issues/2 have gravitated away from that and we are now interested in asynchronous creation of CSSStyleSheet, but also provide synchronous constructor that only result in an empty sheet. This CL changed the constructors to not accept CSS text. This also changes part of the constructor where we process passed MediaList data to copy the given MediaList instead of using the same instance to avoid introducing the concept of mutable MediaLists. See: https://github.com/WICG/construct-stylesheets/issues/13 CL for promise-based API: crrev.com/c/1126754 Bug: 807560 Change-Id: I0aeb052b63e45d81fc46cde3052f3d134afa16fa Reviewed-on: https://chromium-review.googlesource.com/1126898 Reviewed-by: Fergal Daly <fergal@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Reviewed-by: Takayoshi Kochi <kochi@chromium.org> Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Cr-Commit-Position: refs/heads/master@{#573233}
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 .