mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #25087 - bblanke:OffscreenCanvasasCanvasImageSoure, r=jdm
Support OffscreenCanvas as CanvasImageSource 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 <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24269 (GitHub issue number if applicable) <!-- Either: --> - [x] These changes do not require tests because they are covered by existing tests <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
05922c380c
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::htmlcanvaselement::{CanvasContext, HTMLCanvasElement};
|
||||||
use crate::dom::imagedata::ImageData;
|
use crate::dom::imagedata::ImageData;
|
||||||
use crate::dom::node::{Node, NodeDamage};
|
use crate::dom::node::{Node, NodeDamage};
|
||||||
|
use crate::dom::offscreencanvas::{OffscreenCanvas, OffscreenCanvasContext};
|
||||||
use crate::dom::paintworkletglobalscope::PaintWorkletGlobalScope;
|
use crate::dom::paintworkletglobalscope::PaintWorkletGlobalScope;
|
||||||
use crate::dom::textmetrics::TextMetrics;
|
use crate::dom::textmetrics::TextMetrics;
|
||||||
use crate::euclidext::Size2DExt;
|
use crate::euclidext::Size2DExt;
|
||||||
|
@ -222,6 +223,7 @@ impl CanvasState {
|
||||||
fn is_origin_clean(&self, image: CanvasImageSource) -> bool {
|
fn is_origin_clean(&self, image: CanvasImageSource) -> bool {
|
||||||
match image {
|
match image {
|
||||||
CanvasImageSource::HTMLCanvasElement(canvas) => canvas.origin_is_clean(),
|
CanvasImageSource::HTMLCanvasElement(canvas) => canvas.origin_is_clean(),
|
||||||
|
CanvasImageSource::OffscreenCanvas(canvas) => canvas.origin_is_clean(),
|
||||||
CanvasImageSource::HTMLImageElement(image) => {
|
CanvasImageSource::HTMLImageElement(image) => {
|
||||||
image.same_origin(GlobalScope::entry().origin())
|
image.same_origin(GlobalScope::entry().origin())
|
||||||
},
|
},
|
||||||
|
@ -372,6 +374,9 @@ impl CanvasState {
|
||||||
CanvasImageSource::HTMLCanvasElement(ref canvas) => {
|
CanvasImageSource::HTMLCanvasElement(ref canvas) => {
|
||||||
self.draw_html_canvas_element(&canvas, htmlcanvas, sx, sy, sw, sh, dx, dy, dw, dh)
|
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) => {
|
CanvasImageSource::HTMLImageElement(ref image) => {
|
||||||
// https://html.spec.whatwg.org/multipage/#img-error
|
// https://html.spec.whatwg.org/multipage/#img-error
|
||||||
// If the image argument is an HTMLImageElement object that is in the broken state,
|
// If the image argument is an HTMLImageElement object that is in the broken state,
|
||||||
|
@ -408,10 +413,66 @@ impl CanvasState {
|
||||||
result
|
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(
|
fn draw_html_canvas_element(
|
||||||
&self,
|
&self,
|
||||||
canvas: &HTMLCanvasElement,
|
canvas: &HTMLCanvasElement, // source canvas
|
||||||
htmlcanvas: Option<&HTMLCanvasElement>,
|
htmlcanvas: Option<&HTMLCanvasElement>, // destination canvas
|
||||||
sx: f64,
|
sx: f64,
|
||||||
sy: f64,
|
sy: f64,
|
||||||
sw: Option<f64>,
|
sw: Option<f64>,
|
||||||
|
@ -842,6 +903,13 @@ impl CanvasState {
|
||||||
.unwrap_or_else(|| vec![0; size.area() as usize * 4]);
|
.unwrap_or_else(|| vec![0; size.area() as usize * 4]);
|
||||||
(data, size)
|
(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
|
CanvasImageSource::CSSStyleValue(ref value) => value
|
||||||
.get_url(self.base_url.clone())
|
.get_url(self.base_url.clone())
|
||||||
.and_then(|url| self.fetch_image_data(url, None))
|
.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::htmlcanvaselement::HTMLCanvasElement;
|
||||||
use crate::dom::offscreencanvasrenderingcontext2d::OffscreenCanvasRenderingContext2D;
|
use crate::dom::offscreencanvasrenderingcontext2d::OffscreenCanvasRenderingContext2D;
|
||||||
use crate::script_runtime::JSContext;
|
use crate::script_runtime::JSContext;
|
||||||
|
use canvas_traits::canvas::{CanvasMsg, FromScriptMsg};
|
||||||
use dom_struct::dom_struct;
|
use dom_struct::dom_struct;
|
||||||
use euclid::default::Size2D;
|
use euclid::default::Size2D;
|
||||||
|
use ipc_channel::ipc::IpcSharedMemory;
|
||||||
use js::rust::HandleValue;
|
use js::rust::HandleValue;
|
||||||
|
use profile_traits::ipc;
|
||||||
use ref_filter_map;
|
use ref_filter_map;
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::cell::Ref;
|
use std::cell::Ref;
|
||||||
|
@ -34,22 +37,22 @@ pub enum OffscreenCanvasContext {
|
||||||
#[dom_struct]
|
#[dom_struct]
|
||||||
pub struct OffscreenCanvas {
|
pub struct OffscreenCanvas {
|
||||||
eventtarget: EventTarget,
|
eventtarget: EventTarget,
|
||||||
height: Cell<u64>,
|
|
||||||
width: Cell<u64>,
|
width: Cell<u64>,
|
||||||
|
height: Cell<u64>,
|
||||||
context: DomRefCell<Option<OffscreenCanvasContext>>,
|
context: DomRefCell<Option<OffscreenCanvasContext>>,
|
||||||
placeholder: Option<Dom<HTMLCanvasElement>>,
|
placeholder: Option<Dom<HTMLCanvasElement>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl OffscreenCanvas {
|
impl OffscreenCanvas {
|
||||||
pub fn new_inherited(
|
pub fn new_inherited(
|
||||||
height: u64,
|
|
||||||
width: u64,
|
width: u64,
|
||||||
|
height: u64,
|
||||||
placeholder: Option<&HTMLCanvasElement>,
|
placeholder: Option<&HTMLCanvasElement>,
|
||||||
) -> OffscreenCanvas {
|
) -> OffscreenCanvas {
|
||||||
OffscreenCanvas {
|
OffscreenCanvas {
|
||||||
eventtarget: EventTarget::new_inherited(),
|
eventtarget: EventTarget::new_inherited(),
|
||||||
height: Cell::new(height),
|
|
||||||
width: Cell::new(width),
|
width: Cell::new(width),
|
||||||
|
height: Cell::new(height),
|
||||||
context: DomRefCell::new(None),
|
context: DomRefCell::new(None),
|
||||||
placeholder: placeholder.map(Dom::from_ref),
|
placeholder: placeholder.map(Dom::from_ref),
|
||||||
}
|
}
|
||||||
|
@ -57,12 +60,12 @@ impl OffscreenCanvas {
|
||||||
|
|
||||||
pub fn new(
|
pub fn new(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
height: u64,
|
|
||||||
width: u64,
|
width: u64,
|
||||||
|
height: u64,
|
||||||
placeholder: Option<&HTMLCanvasElement>,
|
placeholder: Option<&HTMLCanvasElement>,
|
||||||
) -> DomRoot<OffscreenCanvas> {
|
) -> DomRoot<OffscreenCanvas> {
|
||||||
reflect_dom_object(
|
reflect_dom_object(
|
||||||
Box::new(OffscreenCanvas::new_inherited(height, width, placeholder)),
|
Box::new(OffscreenCanvas::new_inherited(width, height, placeholder)),
|
||||||
global,
|
global,
|
||||||
OffscreenCanvasWrap,
|
OffscreenCanvasWrap,
|
||||||
)
|
)
|
||||||
|
@ -70,10 +73,10 @@ impl OffscreenCanvas {
|
||||||
|
|
||||||
pub fn Constructor(
|
pub fn Constructor(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
height: u64,
|
|
||||||
width: u64,
|
width: u64,
|
||||||
|
height: u64,
|
||||||
) -> Fallible<DomRoot<OffscreenCanvas>> {
|
) -> Fallible<DomRoot<OffscreenCanvas>> {
|
||||||
let offscreencanvas = OffscreenCanvas::new(global, height, width, None);
|
let offscreencanvas = OffscreenCanvas::new(global, width, height, None);
|
||||||
Ok(offscreencanvas)
|
Ok(offscreencanvas)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,10 +84,44 @@ impl OffscreenCanvas {
|
||||||
Size2D::new(self.Width(), self.Height())
|
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>> {
|
pub fn context(&self) -> Option<Ref<OffscreenCanvasContext>> {
|
||||||
ref_filter_map::ref_filter_map(self.context.borrow(), |ctx| ctx.as_ref())
|
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)]
|
#[allow(unsafe_code)]
|
||||||
fn get_or_init_2d_context(&self) -> Option<DomRoot<OffscreenCanvasRenderingContext2D>> {
|
fn get_or_init_2d_context(&self) -> Option<DomRoot<OffscreenCanvasRenderingContext2D>> {
|
||||||
if let Some(ctx) = self.context() {
|
if let Some(ctx) = self.context() {
|
||||||
|
|
|
@ -24,8 +24,10 @@ use crate::dom::htmlcanvaselement::HTMLCanvasElement;
|
||||||
use crate::dom::imagedata::ImageData;
|
use crate::dom::imagedata::ImageData;
|
||||||
use crate::dom::offscreencanvas::OffscreenCanvas;
|
use crate::dom::offscreencanvas::OffscreenCanvas;
|
||||||
use crate::dom::textmetrics::TextMetrics;
|
use crate::dom::textmetrics::TextMetrics;
|
||||||
|
use canvas_traits::canvas::{Canvas2dMsg, CanvasId, CanvasMsg};
|
||||||
use dom_struct::dom_struct;
|
use dom_struct::dom_struct;
|
||||||
use euclid::default::Size2D;
|
use euclid::default::Size2D;
|
||||||
|
use ipc_channel::ipc::IpcSender;
|
||||||
|
|
||||||
#[dom_struct]
|
#[dom_struct]
|
||||||
pub struct OffscreenCanvasRenderingContext2D {
|
pub struct OffscreenCanvasRenderingContext2D {
|
||||||
|
@ -72,6 +74,22 @@ impl OffscreenCanvasRenderingContext2D {
|
||||||
pub fn set_canvas_bitmap_dimensions(&self, size: Size2D<u64>) {
|
pub fn set_canvas_bitmap_dimensions(&self, size: Size2D<u64>) {
|
||||||
self.canvas_state.borrow().set_bitmap_dimensions(size);
|
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 {
|
impl OffscreenCanvasRenderingContext2DMethods for OffscreenCanvasRenderingContext2D {
|
||||||
|
|
|
@ -12,7 +12,7 @@ typedef (HTMLOrSVGImageElement or
|
||||||
/*HTMLVideoElement or*/
|
/*HTMLVideoElement or*/
|
||||||
HTMLCanvasElement or
|
HTMLCanvasElement or
|
||||||
/*ImageBitmap or*/
|
/*ImageBitmap or*/
|
||||||
/*OffscreenCanvas or*/
|
OffscreenCanvas or
|
||||||
/*CSSImageValue*/ CSSStyleValue) CanvasImageSource;
|
/*CSSImageValue*/ CSSStyleValue) CanvasImageSource;
|
||||||
|
|
||||||
enum CanvasFillRule { "nonzero", "evenodd" };
|
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