aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/canvas/canvas_paint_task.rs11
-rw-r--r--components/canvas_traits/lib.rs7
-rw-r--r--components/script/dom/canvasrenderingcontext2d.rs15
-rw-r--r--components/script/dom/webidls/CanvasRenderingContext2D.webidl9
-rw-r--r--components/servo/Cargo.lock22
-rw-r--r--ports/cef/Cargo.lock24
-rw-r--r--ports/gonk/Cargo.lock22
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.arc.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.1.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.2.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bezier.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bigarc.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.edge.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.empty.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.outside.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.subpath.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.1.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.3.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.unclosed.html.ini5
-rw-r--r--tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.winding.html.ini5
-rw-r--r--tests/wpt/metadata/XMLHttpRequest/send-content-type-string.htm.ini1
-rw-r--r--tests/wpt/metadata/html/dom/interfaces.html.ini18
23 files changed, 71 insertions, 128 deletions
diff --git a/components/canvas/canvas_paint_task.rs b/components/canvas/canvas_paint_task.rs
index c1b81140d04..3a495620c03 100644
--- a/components/canvas/canvas_paint_task.rs
+++ b/components/canvas/canvas_paint_task.rs
@@ -136,6 +136,9 @@ impl<'a> CanvasPaintTask<'a> {
Canvas2dMsg::Fill => painter.fill(),
Canvas2dMsg::Stroke => painter.stroke(),
Canvas2dMsg::Clip => painter.clip(),
+ Canvas2dMsg::IsPointInPath(x, y, fill_rule, chan) => {
+ painter.is_point_in_path(x, y, fill_rule, chan)
+ },
Canvas2dMsg::DrawImage(imagedata, image_size, dest_rect, source_rect,
smoothing_enabled) => {
painter.draw_image(imagedata, image_size, dest_rect, source_rect, smoothing_enabled)
@@ -318,6 +321,14 @@ impl<'a> CanvasPaintTask<'a> {
self.drawtarget.push_clip(&self.path_builder.finish());
}
+ fn is_point_in_path(&mut self, x: f64, y: f64,
+ _fill_rule: FillRule, chan: IpcSender<bool>) {
+ let path = self.path_builder.finish();
+ let result = path.contains_point(x, y, &self.state.transform);
+ self.path_builder = path.copy_to_builder();
+ chan.send(result).unwrap();
+ }
+
fn draw_image(&self, image_data: Vec<u8>, image_size: Size2D<f64>,
dest_rect: Rect<f64>, source_rect: Rect<f64>, smoothing_enabled: bool) {
// We round up the floating pixel values to draw the pixels
diff --git a/components/canvas_traits/lib.rs b/components/canvas_traits/lib.rs
index 305704b584d..d7caf4d6eb6 100644
--- a/components/canvas_traits/lib.rs
+++ b/components/canvas_traits/lib.rs
@@ -43,6 +43,12 @@ use std::sync::mpsc::Sender;
use util::mem::HeapSizeOf;
#[derive(Clone, Deserialize, Serialize)]
+pub enum FillRule {
+ Nonzero,
+ Evenodd,
+}
+
+#[derive(Clone, Deserialize, Serialize)]
pub enum CanvasMsg {
Canvas2d(Canvas2dMsg),
Common(CanvasCommonMsg),
@@ -93,6 +99,7 @@ pub enum Canvas2dMsg {
Fill,
FillRect(Rect<f32>),
GetImageData(Rect<i32>, Size2D<f64>, IpcSender<Vec<u8>>),
+ IsPointInPath(f64, f64, FillRule, IpcSender<bool>),
LineTo(Point2D<f32>),
MoveTo(Point2D<f32>),
PutImageData(Vec<u8>, Point2D<f64>, Size2D<f64>, Rect<f64>),
diff --git a/components/script/dom/canvasrenderingcontext2d.rs b/components/script/dom/canvasrenderingcontext2d.rs
index 5fed20daae7..119f819cf8e 100644
--- a/components/script/dom/canvasrenderingcontext2d.rs
+++ b/components/script/dom/canvasrenderingcontext2d.rs
@@ -5,7 +5,7 @@
use canvas::canvas_paint_task::RectToi32;
use canvas_traits::{Canvas2dMsg, CanvasCommonMsg, CanvasMsg};
use canvas_traits::{CompositionOrBlending, LineCapStyle, LineJoinStyle};
-use canvas_traits::{FillOrStrokeStyle, LinearGradientStyle, RadialGradientStyle, RepetitionStyle};
+use canvas_traits::{FillOrStrokeStyle, FillRule, LinearGradientStyle, RadialGradientStyle, RepetitionStyle};
use cssparser::Color as CSSColor;
use cssparser::{Parser, RGBA};
use dom::bindings::cell::DOMRefCell;
@@ -695,6 +695,19 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
self.ipc_renderer.send(CanvasMsg::Canvas2d(Canvas2dMsg::Clip)).unwrap();
}
+ // https://html.spec.whatwg.org/multipage/#dom-context-2d-ispointinpath
+ fn IsPointInPath(&self, x: f64, y: f64, fill_rule: CanvasFillRule) -> bool {
+ let fill_rule = match fill_rule {
+ CanvasFillRule::Nonzero => FillRule::Nonzero,
+ CanvasFillRule::Evenodd => FillRule::Evenodd,
+ };
+ let (sender, receiver) = ipc::channel::<bool>().unwrap();
+ self.ipc_renderer
+ .send(CanvasMsg::Canvas2d(Canvas2dMsg::IsPointInPath(x, y, fill_rule, sender)))
+ .unwrap();
+ receiver.recv().unwrap()
+ }
+
// https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
fn DrawImage(&self,
image: HTMLImageElementOrHTMLCanvasElementOrCanvasRenderingContext2D,
diff --git a/components/script/dom/webidls/CanvasRenderingContext2D.webidl b/components/script/dom/webidls/CanvasRenderingContext2D.webidl
index 1fa82ba0e1a..a0e7614a1a2 100644
--- a/components/script/dom/webidls/CanvasRenderingContext2D.webidl
+++ b/components/script/dom/webidls/CanvasRenderingContext2D.webidl
@@ -94,13 +94,12 @@ interface CanvasRenderingContext2D {
void clip(optional CanvasFillRule fillRule = "nonzero");
//void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
//void resetClip();
- //boolean isPointInPath(unrestricted double x, unrestricted double y,
+ boolean isPointInPath(unrestricted double x, unrestricted double y,
+ optional CanvasFillRule fillRule = "nonzero");
+ //boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y,
// optional CanvasFillRule fillRule = "nonzero");
- //boolean isPointInPath(Path2D path, unrestricted double x, unrestricted
- // double y, optional CanvasFillRule fillRule = "nonzero");
//boolean isPointInStroke(unrestricted double x, unrestricted double y);
- // boolean isPointInStroke(Path2D path, unrestricted double x,
- // unrestricted double y);
+ //boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
// text (see also the CanvasDrawingStyles interface)
//void fillText(DOMString text, unrestricted double x, unrestricted double y,
diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock
index 849901edb05..c3130127e9f 100644
--- a/components/servo/Cargo.lock
+++ b/components/servo/Cargo.lock
@@ -91,8 +91,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "azure"
-version = "0.2.0"
-source = "git+https://github.com/servo/rust-azure#a835f8578737034d48762b379f19a92bb2882cc0"
+version = "0.2.1"
+source = "git+https://github.com/servo/rust-azure#b8a761c2d4bc6ee1fa62e1c34763c2f5a7650779"
dependencies = [
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"core-graphics 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -153,7 +153,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "canvas"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"canvas_traits 0.0.1",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -172,7 +172,7 @@ dependencies = [
name = "canvas_traits"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"gfx_traits 0.0.1",
@@ -260,7 +260,7 @@ name = "compositing"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"canvas 0.0.1",
"canvas_traits 0.0.1",
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
@@ -623,7 +623,7 @@ name = "gfx"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas_traits 0.0.1",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -671,7 +671,7 @@ dependencies = [
name = "gfx_traits"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
]
[[package]]
@@ -929,7 +929,7 @@ name = "layers"
version = "0.2.0"
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -949,7 +949,7 @@ name = "layout"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas 0.0.1",
"canvas_traits 0.0.1",
@@ -1127,7 +1127,7 @@ name = "msg"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas_traits 0.0.1",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1952,7 +1952,7 @@ name = "util"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock
index 05376a426fd..79c23d60a24 100644
--- a/ports/cef/Cargo.lock
+++ b/ports/cef/Cargo.lock
@@ -2,7 +2,7 @@
name = "embedding"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"cocoa 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
"compositing 0.0.1",
@@ -80,8 +80,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "azure"
-version = "0.2.0"
-source = "git+https://github.com/servo/rust-azure#a835f8578737034d48762b379f19a92bb2882cc0"
+version = "0.2.1"
+source = "git+https://github.com/servo/rust-azure#b8a761c2d4bc6ee1fa62e1c34763c2f5a7650779"
dependencies = [
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"core-graphics 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -142,7 +142,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "canvas"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"canvas_traits 0.0.1",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -161,7 +161,7 @@ dependencies = [
name = "canvas_traits"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"gfx_traits 0.0.1",
@@ -260,7 +260,7 @@ name = "compositing"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"canvas 0.0.1",
"canvas_traits 0.0.1",
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
@@ -590,7 +590,7 @@ name = "gfx"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas_traits 0.0.1",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -631,7 +631,7 @@ dependencies = [
name = "gfx_traits"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
]
[[package]]
@@ -889,7 +889,7 @@ name = "layers"
version = "0.2.0"
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -909,7 +909,7 @@ name = "layout"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas 0.0.1",
"canvas_traits 0.0.1",
@@ -1087,7 +1087,7 @@ name = "msg"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas_traits 0.0.1",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1888,7 +1888,7 @@ name = "util"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock
index deb0b1c0db5..b86c6a74b91 100644
--- a/ports/gonk/Cargo.lock
+++ b/ports/gonk/Cargo.lock
@@ -71,8 +71,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "azure"
-version = "0.2.0"
-source = "git+https://github.com/servo/rust-azure#a835f8578737034d48762b379f19a92bb2882cc0"
+version = "0.2.1"
+source = "git+https://github.com/servo/rust-azure#b8a761c2d4bc6ee1fa62e1c34763c2f5a7650779"
dependencies = [
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"core-graphics 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -133,7 +133,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "canvas"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"canvas_traits 0.0.1",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -152,7 +152,7 @@ dependencies = [
name = "canvas_traits"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"gfx_traits 0.0.1",
@@ -240,7 +240,7 @@ name = "compositing"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"canvas 0.0.1",
"canvas_traits 0.0.1",
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
@@ -588,7 +588,7 @@ name = "gfx"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas_traits 0.0.1",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -629,7 +629,7 @@ dependencies = [
name = "gfx_traits"
version = "0.0.1"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
]
[[package]]
@@ -865,7 +865,7 @@ name = "layers"
version = "0.2.0"
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
dependencies = [
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -885,7 +885,7 @@ name = "layout"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas 0.0.1",
"canvas_traits 0.0.1",
@@ -1063,7 +1063,7 @@ name = "msg"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"canvas_traits 0.0.1",
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1862,7 +1862,7 @@ name = "util"
version = "0.0.1"
dependencies = [
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "azure 0.2.0 (git+https://github.com/servo/rust-azure)",
+ "azure 0.2.1 (git+https://github.com/servo/rust-azure)",
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"cssparser 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.arc.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.arc.html.ini
deleted file mode 100644
index 832c2665fba..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.arc.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.arc.html]
- type: testharness
- [isPointInPath() works on arcs]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.1.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.1.html.ini
deleted file mode 100644
index 7d715e75658..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.1.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.basic.1.html]
- type: testharness
- [isPointInPath() detects whether the point is inside the path]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.2.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.2.html.ini
deleted file mode 100644
index b42c7712c51..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.basic.2.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.basic.2.html]
- type: testharness
- [isPointInPath() detects whether the point is inside the path]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bezier.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bezier.html.ini
deleted file mode 100644
index 9235849a8a9..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bezier.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.bezier.html]
- type: testharness
- [isPointInPath() works on Bezier curves]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bigarc.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bigarc.html.ini
deleted file mode 100644
index 341b9bd460f..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.bigarc.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.bigarc.html]
- type: testharness
- [isPointInPath() works on unclosed arcs larger than 2pi]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.edge.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.edge.html.ini
deleted file mode 100644
index e4cb413b5ba..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.edge.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.edge.html]
- type: testharness
- [isPointInPath() counts points on the path as being inside]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.empty.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.empty.html.ini
deleted file mode 100644
index 8ab421be7ad..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.empty.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.empty.html]
- type: testharness
- [isPointInPath() works when there is no path]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html.ini
deleted file mode 100644
index c79f039d929..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.nonfinite.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.nonfinite.html]
- type: testharness
- [isPointInPath() returns false for non-finite arguments]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.outside.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.outside.html.ini
deleted file mode 100644
index 4038b3af6c7..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.outside.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.outside.html]
- type: testharness
- [isPointInPath() works on paths outside the canvas]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.subpath.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.subpath.html.ini
deleted file mode 100644
index 401d0f6632c..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.subpath.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.subpath.html]
- type: testharness
- [isPointInPath() uses the current path, not just the subpath]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.1.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.1.html.ini
deleted file mode 100644
index c65142a293d..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.1.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.transform.1.html]
- type: testharness
- [isPointInPath() handles transformations correctly]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.3.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.3.html.ini
deleted file mode 100644
index dbf9afc61de..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.transform.3.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.transform.3.html]
- type: testharness
- [isPointInPath() handles transformations correctly]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.unclosed.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.unclosed.html.ini
deleted file mode 100644
index 5f3b65f58f0..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.unclosed.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.unclosed.html]
- type: testharness
- [isPointInPath() works on unclosed subpaths]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.winding.html.ini b/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.winding.html.ini
deleted file mode 100644
index 37b8eac6e2a..00000000000
--- a/tests/wpt/metadata/2dcontext/path-objects/2d.path.isPointInPath.winding.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[2d.path.isPointInPath.winding.html]
- type: testharness
- [isPointInPath() uses the non-zero winding number rule]
- expected: FAIL
-
diff --git a/tests/wpt/metadata/XMLHttpRequest/send-content-type-string.htm.ini b/tests/wpt/metadata/XMLHttpRequest/send-content-type-string.htm.ini
index ba64bb6b585..5ae82d20062 100644
--- a/tests/wpt/metadata/XMLHttpRequest/send-content-type-string.htm.ini
+++ b/tests/wpt/metadata/XMLHttpRequest/send-content-type-string.htm.ini
@@ -5,3 +5,4 @@
[XMLHttpRequest: send() - Content-Type 2]
expected: FAIL
+
diff --git a/tests/wpt/metadata/html/dom/interfaces.html.ini b/tests/wpt/metadata/html/dom/interfaces.html.ini
index 5bbbf4ef069..8f58b975829 100644
--- a/tests/wpt/metadata/html/dom/interfaces.html.ini
+++ b/tests/wpt/metadata/html/dom/interfaces.html.ini
@@ -6024,12 +6024,6 @@
[CanvasRenderingContext2D interface: operation resetClip()]
expected: FAIL
- [CanvasRenderingContext2D interface: operation isPointInPath(unrestricted double,unrestricted double,CanvasFillRule)]
- expected: FAIL
-
- [CanvasRenderingContext2D interface: operation isPointInPath(Path2D,unrestricted double,unrestricted double,CanvasFillRule)]
- expected: FAIL
-
[CanvasRenderingContext2D interface: operation isPointInStroke(unrestricted double,unrestricted double)]
expected: FAIL
@@ -6129,18 +6123,6 @@
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "resetClip" with the proper type (41)]
expected: FAIL
- [CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "isPointInPath" with the proper type (42)]
- expected: FAIL
-
- [CanvasRenderingContext2D interface: calling isPointInPath(unrestricted double,unrestricted double,CanvasFillRule) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
- expected: FAIL
-
- [CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "isPointInPath" with the proper type (43)]
- expected: FAIL
-
- [CanvasRenderingContext2D interface: calling isPointInPath(Path2D,unrestricted double,unrestricted double,CanvasFillRule) on document.createElement("canvas").getContext("2d") with too few arguments must throw TypeError]
- expected: FAIL
-
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "isPointInStroke" with the proper type (44)]
expected: FAIL