blob: 499999f22df3aad2053b7da6852f8e7aeea2bde8 [file] [log] [blame]
// Returns a reference to a worklet object corresponding to a given type.
function get_worklet(type) {
if (type == 'animation')
return CSS.animationWorklet;
if (type == 'layout')
return CSS.layoutWorklet;
if (type == 'paint')
return CSS.paintWorklet;
return undefined;
}