mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Addresses Issue: Support OffscreenCanvas as CanvasImageSource #24269
Added methods to canvas_data to support drawing an offscreen canvas onto another canvas Bug fix: Swapped OffscreenCanvas width and height parameters to match Mozilla spec Tests: Updated metadata for 866 tests
This commit is contained in:
parent
951dc2419a
commit
deae103042
869 changed files with 133 additions and 3478 deletions
|
@ -22,6 +22,7 @@ use crate::dom::globalscope::GlobalScope;
|
|||
use crate::dom::htmlcanvaselement::{CanvasContext, HTMLCanvasElement};
|
||||
use crate::dom::imagedata::ImageData;
|
||||
use crate::dom::node::{Node, NodeDamage};
|
||||
use crate::dom::offscreencanvas::{OffscreenCanvas, OffscreenCanvasContext};
|
||||
use crate::dom::paintworkletglobalscope::PaintWorkletGlobalScope;
|
||||
use crate::dom::textmetrics::TextMetrics;
|
||||
use crate::euclidext::Size2DExt;
|
||||
|
@ -222,6 +223,7 @@ impl CanvasState {
|
|||
fn is_origin_clean(&self, image: CanvasImageSource) -> bool {
|
||||
match image {
|
||||
CanvasImageSource::HTMLCanvasElement(canvas) => canvas.origin_is_clean(),
|
||||
CanvasImageSource::OffscreenCanvas(canvas) => canvas.origin_is_clean(),
|
||||
CanvasImageSource::HTMLImageElement(image) => {
|
||||
image.same_origin(GlobalScope::entry().origin())
|
||||
},
|
||||
|
@ -372,6 +374,9 @@ impl CanvasState {
|
|||
CanvasImageSource::HTMLCanvasElement(ref canvas) => {
|
||||
self.draw_html_canvas_element(&canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh)
|
||||
},
|
||||
CanvasImageSource::OffscreenCanvas(ref canvas) => {
|
||||
self.draw_offscreen_canvas(&canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh)
|
||||
},
|
||||
CanvasImageSource::HTMLImageElement(ref image) => {
|
||||
// https://html.spec.whatwg.org/multipage/#img-error
|
||||
// If the image argument is an HTMLImageElement object that is in the broken state,
|
||||
|
@ -408,10 +413,66 @@ impl CanvasState {
|
|||
result
|
||||
}
|
||||
|
||||
fn draw_offscreen_canvas(
|
||||
&self,
|
||||
canvas: &OffscreenCanvas,
|
||||
htmlcanvas: Option<&HTMLCanvasElement>,
|
||||
sx: f64,
|
||||
sy: f64,
|
||||
sw: Option<f64>,
|
||||
sh: Option<f64>,
|
||||
dx: f64,
|
||||
dy: f64,
|
||||
dw: Option<f64>,
|
||||
dh: Option<f64>,
|
||||
) -> ErrorResult {
|
||||
let canvas_size = canvas.get_size();
|
||||
let dw = dw.unwrap_or(canvas_size.width as f64);
|
||||
let dh = dh.unwrap_or(canvas_size.height as f64);
|
||||
let sw = sw.unwrap_or(canvas_size.width as f64);
|
||||
let sh = sh.unwrap_or(canvas_size.height as f64);
|
||||
|
||||
let image_size = Size2D::new(canvas_size.width as f64, canvas_size.height as f64);
|
||||
// 2. Establish the source and destination rectangles
|
||||
let (source_rect, dest_rect) =
|
||||
self.adjust_source_dest_rects(image_size, sx, sy, sw, sh, dx, dy, dw, dh);
|
||||
|
||||
if !is_rect_valid(source_rect) || !is_rect_valid(dest_rect) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let smoothing_enabled = self.state.borrow().image_smoothing_enabled;
|
||||
|
||||
if let Some(context) = canvas.context() {
|
||||
match *context {
|
||||
OffscreenCanvasContext::OffscreenContext2d(ref context) => {
|
||||
context.send_canvas_2d_msg(Canvas2dMsg::DrawImageInOther(
|
||||
self.get_canvas_id(),
|
||||
image_size,
|
||||
dest_rect,
|
||||
source_rect,
|
||||
smoothing_enabled,
|
||||
));
|
||||
},
|
||||
}
|
||||
} else {
|
||||
self.send_canvas_2d_msg(Canvas2dMsg::DrawImage(
|
||||
None,
|
||||
image_size,
|
||||
dest_rect,
|
||||
source_rect,
|
||||
smoothing_enabled,
|
||||
));
|
||||
}
|
||||
|
||||
self.mark_as_dirty(htmlcanvas);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn draw_html_canvas_element(
|
||||
&self,
|
||||
canvas: &HTMLCanvasElement,
|
||||
htmlcanvas: Option<&HTMLCanvasElement>,
|
||||
canvas: &HTMLCanvasElement, // source canvas
|
||||
htmlcanvas: Option<&HTMLCanvasElement>, // destination canvas
|
||||
sx: f64,
|
||||
sy: f64,
|
||||
sw: Option<f64>,
|
||||
|
@ -842,6 +903,13 @@ impl CanvasState {
|
|||
.unwrap_or_else(|| vec![0; size.area() as usize * 4]);
|
||||
(data, size)
|
||||
},
|
||||
CanvasImageSource::OffscreenCanvas(ref canvas) => {
|
||||
let (data, size) = canvas.fetch_all_data().ok_or(Error::InvalidState)?;
|
||||
let data = data
|
||||
.map(|data| data.to_vec())
|
||||
.unwrap_or_else(|| vec![0; size.area() as usize * 4]);
|
||||
(data, size)
|
||||
},
|
||||
CanvasImageSource::CSSStyleValue(ref value) => value
|
||||
.get_url(self.base_url.clone())
|
||||
.and_then(|url| self.fetch_image_data(url, None))
|
||||
|
|
|
@ -16,9 +16,12 @@ use crate::dom::globalscope::GlobalScope;
|
|||
use crate::dom::htmlcanvaselement::HTMLCanvasElement;
|
||||
use crate::dom::offscreencanvasrenderingcontext2d::OffscreenCanvasRenderingContext2D;
|
||||
use crate::script_runtime::JSContext;
|
||||
use canvas_traits::canvas::{CanvasMsg, FromScriptMsg};
|
||||
use dom_struct::dom_struct;
|
||||
use euclid::default::Size2D;
|
||||
use ipc_channel::ipc::IpcSharedMemory;
|
||||
use js::rust::HandleValue;
|
||||
use profile_traits::ipc;
|
||||
use ref_filter_map;
|
||||
use std::cell::Cell;
|
||||
use std::cell::Ref;
|
||||
|
@ -34,22 +37,22 @@ pub enum OffscreenCanvasContext {
|
|||
#[dom_struct]
|
||||
pub struct OffscreenCanvas {
|
||||
eventtarget: EventTarget,
|
||||
height: Cell<u64>,
|
||||
width: Cell<u64>,
|
||||
height: Cell<u64>,
|
||||
context: DomRefCell<Option<OffscreenCanvasContext>>,
|
||||
placeholder: Option<Dom<HTMLCanvasElement>>,
|
||||
}
|
||||
|
||||
impl OffscreenCanvas {
|
||||
pub fn new_inherited(
|
||||
height: u64,
|
||||
width: u64,
|
||||
height: u64,
|
||||
placeholder: Option<&HTMLCanvasElement>,
|
||||
) -> OffscreenCanvas {
|
||||
OffscreenCanvas {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
height: Cell::new(height),
|
||||
width: Cell::new(width),
|
||||
height: Cell::new(height),
|
||||
context: DomRefCell::new(None),
|
||||
placeholder: placeholder.map(Dom::from_ref),
|
||||
}
|
||||
|
@ -57,12 +60,12 @@ impl OffscreenCanvas {
|
|||
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
height: u64,
|
||||
width: u64,
|
||||
height: u64,
|
||||
placeholder: Option<&HTMLCanvasElement>,
|
||||
) -> DomRoot<OffscreenCanvas> {
|
||||
reflect_dom_object(
|
||||
Box::new(OffscreenCanvas::new_inherited(height, width, placeholder)),
|
||||
Box::new(OffscreenCanvas::new_inherited(width, height, placeholder)),
|
||||
global,
|
||||
OffscreenCanvasWrap,
|
||||
)
|
||||
|
@ -70,10 +73,10 @@ impl OffscreenCanvas {
|
|||
|
||||
pub fn Constructor(
|
||||
global: &GlobalScope,
|
||||
height: u64,
|
||||
width: u64,
|
||||
height: u64,
|
||||
) -> Fallible<DomRoot<OffscreenCanvas>> {
|
||||
let offscreencanvas = OffscreenCanvas::new(global, height, width, None);
|
||||
let offscreencanvas = OffscreenCanvas::new(global, width, height, None);
|
||||
Ok(offscreencanvas)
|
||||
}
|
||||
|
||||
|
@ -81,10 +84,44 @@ impl OffscreenCanvas {
|
|||
Size2D::new(self.Width(), self.Height())
|
||||
}
|
||||
|
||||
pub fn origin_is_clean(&self) -> bool {
|
||||
match *self.context.borrow() {
|
||||
Some(OffscreenCanvasContext::OffscreenContext2d(ref context)) => {
|
||||
context.origin_is_clean()
|
||||
},
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn context(&self) -> Option<Ref<OffscreenCanvasContext>> {
|
||||
ref_filter_map::ref_filter_map(self.context.borrow(), |ctx| ctx.as_ref())
|
||||
}
|
||||
|
||||
pub fn fetch_all_data(&self) -> Option<(Option<IpcSharedMemory>, Size2D<u32>)> {
|
||||
let size = self.get_size();
|
||||
|
||||
if size.width == 0 || size.height == 0 {
|
||||
return None;
|
||||
}
|
||||
|
||||
let data = match self.context.borrow().as_ref() {
|
||||
Some(&OffscreenCanvasContext::OffscreenContext2d(ref context)) => {
|
||||
let (sender, receiver) =
|
||||
ipc::channel(self.global().time_profiler_chan().clone()).unwrap();
|
||||
let msg = CanvasMsg::FromScript(
|
||||
FromScriptMsg::SendPixels(sender),
|
||||
context.get_canvas_id(),
|
||||
);
|
||||
context.get_ipc_renderer().send(msg).unwrap();
|
||||
|
||||
Some(receiver.recv().unwrap())
|
||||
},
|
||||
None => None,
|
||||
};
|
||||
|
||||
Some((data, size.to_u32()))
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
fn get_or_init_2d_context(&self) -> Option<DomRoot<OffscreenCanvasRenderingContext2D>> {
|
||||
if let Some(ctx) = self.context() {
|
||||
|
|
|
@ -24,8 +24,10 @@ use crate::dom::htmlcanvaselement::HTMLCanvasElement;
|
|||
use crate::dom::imagedata::ImageData;
|
||||
use crate::dom::offscreencanvas::OffscreenCanvas;
|
||||
use crate::dom::textmetrics::TextMetrics;
|
||||
use canvas_traits::canvas::{Canvas2dMsg, CanvasId, CanvasMsg};
|
||||
use dom_struct::dom_struct;
|
||||
use euclid::default::Size2D;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct OffscreenCanvasRenderingContext2D {
|
||||
|
@ -72,6 +74,22 @@ impl OffscreenCanvasRenderingContext2D {
|
|||
pub fn set_canvas_bitmap_dimensions(&self, size: Size2D<u64>) {
|
||||
self.canvas_state.borrow().set_bitmap_dimensions(size);
|
||||
}
|
||||
|
||||
pub fn send_canvas_2d_msg(&self, msg: Canvas2dMsg) {
|
||||
self.canvas_state.borrow().send_canvas_2d_msg(msg)
|
||||
}
|
||||
|
||||
pub fn origin_is_clean(&self) -> bool {
|
||||
self.canvas_state.borrow().origin_is_clean()
|
||||
}
|
||||
|
||||
pub fn get_canvas_id(&self) -> CanvasId {
|
||||
self.canvas_state.borrow().get_canvas_id()
|
||||
}
|
||||
|
||||
pub fn get_ipc_renderer(&self) -> IpcSender<CanvasMsg> {
|
||||
self.canvas_state.borrow().get_ipc_renderer().clone()
|
||||
}
|
||||
}
|
||||
|
||||
impl OffscreenCanvasRenderingContext2DMethods for OffscreenCanvasRenderingContext2D {
|
||||
|
|
|
@ -12,7 +12,7 @@ typedef (HTMLOrSVGImageElement or
|
|||
/*HTMLVideoElement or*/
|
||||
HTMLCanvasElement or
|
||||
/*ImageBitmap or*/
|
||||
/*OffscreenCanvas or*/
|
||||
OffscreenCanvas or
|
||||
/*CSSImageValue*/ CSSStyleValue) CanvasImageSource;
|
||||
|
||||
enum CanvasFillRule { "nonzero", "evenodd" };
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.copy.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.copy.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-atop.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-atop.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-in.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-in.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-out.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-out.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-over.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.destination-over.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.lighter.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.lighter.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-atop.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-atop.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-in.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-in.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-out.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-out.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-over.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.source-over.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.xor.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.clip.xor.worker.html]
|
||||
[fill() does not affect pixels outside the clip region.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.canvas.html]
|
||||
[OffscreenCanvas test: 2d.composite.globalAlpha.canvas]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.canvas.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.canvascopy.html]
|
||||
[OffscreenCanvas test: 2d.composite.globalAlpha.canvascopy]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.canvascopy.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.canvaspattern.html]
|
||||
[OffscreenCanvas test: 2d.composite.globalAlpha.canvaspattern]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.canvaspattern.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.fill.html]
|
||||
[OffscreenCanvas test: 2d.composite.globalAlpha.fill]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.globalAlpha.fill.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.copy.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.copy]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.copy.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.destination-atop.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.destination-atop]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.destination-atop.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.destination-in.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.destination-in]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.destination-in.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.destination-over.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.destination-over]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.destination-over.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.lighter.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.lighter]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.lighter.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.source-atop.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.source-atop]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.source-atop.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.source-in.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.source-in]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.source-in.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.source-over.html]
|
||||
[OffscreenCanvas test: 2d.composite.solid.source-over]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.solid.source-over.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.copy.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.copy]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.copy.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-atop.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.destination-atop]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-atop.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-in.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.destination-in]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-in.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-out.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.destination-out]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-out.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-over.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.destination-over]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.destination-over.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.lighter.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.lighter]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.lighter.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-atop.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.source-atop]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-atop.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-in.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.source-in]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-in.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-out.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.source-out]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-out.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-over.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.source-over]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.source-over.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.xor.html]
|
||||
[OffscreenCanvas test: 2d.composite.transparent.xor]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.transparent.xor.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.copy.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.copy.worker.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.destination-atop.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.destination-atop.worker.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.destination-in.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.destination-in.worker.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.source-in.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.source-in.worker.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.source-out.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.composite.uncovered.nocontext.source-out.worker.html]
|
||||
[drawImage() of a canvas with no context draws pixels as (0,0,0,0), and does not leave the pixels unchanged.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.coordinatespace.html]
|
||||
[Coordinate space goes from top-left to bottom-right]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.coordinatespace.worker.html]
|
||||
[Coordinate space goes from top-left to bottom-right]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.voidreturn.html]
|
||||
[void methods return undefined]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.voidreturn.worker.html]
|
||||
[void methods return undefined]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.canvas.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.canvas]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.canvas.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.self.1.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.self.1]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.self.1.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.self.2.html]
|
||||
[OffscreenCanvas test: 2d.drawImage.self.2]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.drawImage.self.2.worker.html]
|
||||
[2d]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.clip.html]
|
||||
[clearRect is affected by clipping regions]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.clip.worker.html]
|
||||
[clearRect is affected by clipping regions]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.nonfinite.html]
|
||||
[clearRect() with Infinity/NaN is ignored]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.nonfinite.worker.html]
|
||||
[clearRect() with Infinity/NaN is ignored]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.path.html]
|
||||
[clearRect does not affect the current path]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.path.worker.html]
|
||||
[clearRect does not affect the current path]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.shadow.html]
|
||||
[clearRect does not draw shadows]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[2d.clearRect.shadow.worker.html]
|
||||
[clearRect does not draw shadows]
|
||||
expected: FAIL
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue