mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Implemented paint worklets invoking worklet scripts.
This commit is contained in:
parent
9a13cf6bda
commit
3db4761767
20 changed files with 575 additions and 19 deletions
|
@ -595,6 +595,9 @@ impl WorkletThread {
|
|||
// Step 4.
|
||||
// NOTE: the spec parses and executes the script in separate steps,
|
||||
// but our JS API doesn't separate these, so we do the steps out of order.
|
||||
// Also, the spec currently doesn't allow exceptions to be propagated
|
||||
// to the main script thread.
|
||||
// https://github.com/w3c/css-houdini-drafts/issues/407
|
||||
let ok = script.map(|script| global_scope.evaluate_js(&*script)).unwrap_or(false);
|
||||
|
||||
if !ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue