mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Implement IsPointInPath
This commit is contained in:
parent
2af23dc061
commit
789a90a82f
23 changed files with 71 additions and 128 deletions
|
@ -136,6 +136,9 @@ impl<'a> CanvasPaintTask<'a> {
|
||||||
Canvas2dMsg::Fill => painter.fill(),
|
Canvas2dMsg::Fill => painter.fill(),
|
||||||
Canvas2dMsg::Stroke => painter.stroke(),
|
Canvas2dMsg::Stroke => painter.stroke(),
|
||||||
Canvas2dMsg::Clip => painter.clip(),
|
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,
|
Canvas2dMsg::DrawImage(imagedata, image_size, dest_rect, source_rect,
|
||||||
smoothing_enabled) => {
|
smoothing_enabled) => {
|
||||||
painter.draw_image(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());
|
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>,
|
fn draw_image(&self, image_data: Vec<u8>, image_size: Size2D<f64>,
|
||||||
dest_rect: Rect<f64>, source_rect: Rect<f64>, smoothing_enabled: bool) {
|
dest_rect: Rect<f64>, source_rect: Rect<f64>, smoothing_enabled: bool) {
|
||||||
// We round up the floating pixel values to draw the pixels
|
// We round up the floating pixel values to draw the pixels
|
||||||
|
|
|
@ -42,6 +42,12 @@ use std::str::FromStr;
|
||||||
use std::sync::mpsc::Sender;
|
use std::sync::mpsc::Sender;
|
||||||
use util::mem::HeapSizeOf;
|
use util::mem::HeapSizeOf;
|
||||||
|
|
||||||
|
#[derive(Clone, Deserialize, Serialize)]
|
||||||
|
pub enum FillRule {
|
||||||
|
Nonzero,
|
||||||
|
Evenodd,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Deserialize, Serialize)]
|
#[derive(Clone, Deserialize, Serialize)]
|
||||||
pub enum CanvasMsg {
|
pub enum CanvasMsg {
|
||||||
Canvas2d(Canvas2dMsg),
|
Canvas2d(Canvas2dMsg),
|
||||||
|
@ -93,6 +99,7 @@ pub enum Canvas2dMsg {
|
||||||
Fill,
|
Fill,
|
||||||
FillRect(Rect<f32>),
|
FillRect(Rect<f32>),
|
||||||
GetImageData(Rect<i32>, Size2D<f64>, IpcSender<Vec<u8>>),
|
GetImageData(Rect<i32>, Size2D<f64>, IpcSender<Vec<u8>>),
|
||||||
|
IsPointInPath(f64, f64, FillRule, IpcSender<bool>),
|
||||||
LineTo(Point2D<f32>),
|
LineTo(Point2D<f32>),
|
||||||
MoveTo(Point2D<f32>),
|
MoveTo(Point2D<f32>),
|
||||||
PutImageData(Vec<u8>, Point2D<f64>, Size2D<f64>, Rect<f64>),
|
PutImageData(Vec<u8>, Point2D<f64>, Size2D<f64>, Rect<f64>),
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
use canvas::canvas_paint_task::RectToi32;
|
use canvas::canvas_paint_task::RectToi32;
|
||||||
use canvas_traits::{Canvas2dMsg, CanvasCommonMsg, CanvasMsg};
|
use canvas_traits::{Canvas2dMsg, CanvasCommonMsg, CanvasMsg};
|
||||||
use canvas_traits::{CompositionOrBlending, LineCapStyle, LineJoinStyle};
|
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::Color as CSSColor;
|
||||||
use cssparser::{Parser, RGBA};
|
use cssparser::{Parser, RGBA};
|
||||||
use dom::bindings::cell::DOMRefCell;
|
use dom::bindings::cell::DOMRefCell;
|
||||||
|
@ -695,6 +695,19 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
||||||
self.ipc_renderer.send(CanvasMsg::Canvas2d(Canvas2dMsg::Clip)).unwrap();
|
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
|
// https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
|
||||||
fn DrawImage(&self,
|
fn DrawImage(&self,
|
||||||
image: HTMLImageElementOrHTMLCanvasElementOrCanvasRenderingContext2D,
|
image: HTMLImageElementOrHTMLCanvasElementOrCanvasRenderingContext2D,
|
||||||
|
|
|
@ -94,13 +94,12 @@ interface CanvasRenderingContext2D {
|
||||||
void clip(optional CanvasFillRule fillRule = "nonzero");
|
void clip(optional CanvasFillRule fillRule = "nonzero");
|
||||||
//void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
//void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||||
//void resetClip();
|
//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");
|
// 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(unrestricted double x, unrestricted double y);
|
||||||
// boolean isPointInStroke(Path2D path, unrestricted double x,
|
//boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
|
||||||
// unrestricted double y);
|
|
||||||
|
|
||||||
// text (see also the CanvasDrawingStyles interface)
|
// text (see also the CanvasDrawingStyles interface)
|
||||||
//void fillText(DOMString text, unrestricted double x, unrestricted double y,
|
//void fillText(DOMString text, unrestricted double x, unrestricted double y,
|
||||||
|
|
22
components/servo/Cargo.lock
generated
22
components/servo/Cargo.lock
generated
|
@ -91,8 +91,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "azure"
|
name = "azure"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "git+https://github.com/servo/rust-azure#a835f8578737034d48762b379f19a92bb2882cc0"
|
source = "git+https://github.com/servo/rust-azure#b8a761c2d4bc6ee1fa62e1c34763c2f5a7650779"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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"
|
name = "canvas"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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",
|
"canvas_traits 0.0.1",
|
||||||
"cssparser 0.4.0 (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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -172,7 +172,7 @@ dependencies = [
|
||||||
name = "canvas_traits"
|
name = "canvas_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gfx_traits 0.0.1",
|
"gfx_traits 0.0.1",
|
||||||
|
@ -260,7 +260,7 @@ name = "compositing"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
|
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
|
||||||
|
@ -623,7 +623,7 @@ name = "gfx"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -671,7 +671,7 @@ dependencies = [
|
||||||
name = "gfx_traits"
|
name = "gfx_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.2.0 (git+https://github.com/servo/rust-azure)",
|
"azure 0.2.1 (git+https://github.com/servo/rust-azure)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -929,7 +929,7 @@ name = "layers"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
|
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -949,7 +949,7 @@ name = "layout"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas 0.0.1",
|
"canvas 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
|
@ -1127,7 +1127,7 @@ name = "msg"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1952,7 +1952,7 @@ name = "util"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
24
ports/cef/Cargo.lock
generated
24
ports/cef/Cargo.lock
generated
|
@ -2,7 +2,7 @@
|
||||||
name = "embedding"
|
name = "embedding"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"cocoa 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"compositing 0.0.1",
|
"compositing 0.0.1",
|
||||||
|
@ -80,8 +80,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "azure"
|
name = "azure"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "git+https://github.com/servo/rust-azure#a835f8578737034d48762b379f19a92bb2882cc0"
|
source = "git+https://github.com/servo/rust-azure#b8a761c2d4bc6ee1fa62e1c34763c2f5a7650779"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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"
|
name = "canvas"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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",
|
"canvas_traits 0.0.1",
|
||||||
"cssparser 0.4.0 (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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -161,7 +161,7 @@ dependencies = [
|
||||||
name = "canvas_traits"
|
name = "canvas_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gfx_traits 0.0.1",
|
"gfx_traits 0.0.1",
|
||||||
|
@ -260,7 +260,7 @@ name = "compositing"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
|
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
|
||||||
|
@ -590,7 +590,7 @@ name = "gfx"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -631,7 +631,7 @@ dependencies = [
|
||||||
name = "gfx_traits"
|
name = "gfx_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.2.0 (git+https://github.com/servo/rust-azure)",
|
"azure 0.2.1 (git+https://github.com/servo/rust-azure)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -889,7 +889,7 @@ name = "layers"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
|
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -909,7 +909,7 @@ name = "layout"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas 0.0.1",
|
"canvas 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
|
@ -1087,7 +1087,7 @@ name = "msg"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1888,7 +1888,7 @@ name = "util"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
22
ports/gonk/Cargo.lock
generated
22
ports/gonk/Cargo.lock
generated
|
@ -71,8 +71,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "azure"
|
name = "azure"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "git+https://github.com/servo/rust-azure#a835f8578737034d48762b379f19a92bb2882cc0"
|
source = "git+https://github.com/servo/rust-azure#b8a761c2d4bc6ee1fa62e1c34763c2f5a7650779"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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"
|
name = "canvas"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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",
|
"canvas_traits 0.0.1",
|
||||||
"cssparser 0.4.0 (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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -152,7 +152,7 @@ dependencies = [
|
||||||
name = "canvas_traits"
|
name = "canvas_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gfx_traits 0.0.1",
|
"gfx_traits 0.0.1",
|
||||||
|
@ -240,7 +240,7 @@ name = "compositing"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
|
"clipboard 0.1.0 (git+https://github.com/aweinstock314/rust-clipboard)",
|
||||||
|
@ -588,7 +588,7 @@ name = "gfx"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -629,7 +629,7 @@ dependencies = [
|
||||||
name = "gfx_traits"
|
name = "gfx_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.2.0 (git+https://github.com/servo/rust-azure)",
|
"azure 0.2.1 (git+https://github.com/servo/rust-azure)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -865,7 +865,7 @@ name = "layers"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
|
source = "git+https://github.com/servo/rust-layers#c4efb24deb170908a534ae916d23890f85725b17"
|
||||||
dependencies = [
|
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)",
|
"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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -885,7 +885,7 @@ name = "layout"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas 0.0.1",
|
"canvas 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
|
@ -1063,7 +1063,7 @@ name = "msg"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1862,7 +1862,7 @@ name = "util"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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)",
|
"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)",
|
"euclid 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.arc.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() works on arcs]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.basic.1.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() detects whether the point is inside the path]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.basic.2.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() detects whether the point is inside the path]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.bezier.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() works on Bezier curves]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.bigarc.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() works on unclosed arcs larger than 2pi]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.edge.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() counts points on the path as being inside]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.empty.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() works when there is no path]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.nonfinite.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() returns false for non-finite arguments]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.outside.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() works on paths outside the canvas]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.subpath.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() uses the current path, not just the subpath]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.transform.1.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() handles transformations correctly]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.transform.3.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() handles transformations correctly]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.unclosed.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() works on unclosed subpaths]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[2d.path.isPointInPath.winding.html]
|
|
||||||
type: testharness
|
|
||||||
[isPointInPath() uses the non-zero winding number rule]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
[XMLHttpRequest: send() - Content-Type 2]
|
[XMLHttpRequest: send() - Content-Type 2]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -6024,12 +6024,6 @@
|
||||||
[CanvasRenderingContext2D interface: operation resetClip()]
|
[CanvasRenderingContext2D interface: operation resetClip()]
|
||||||
expected: FAIL
|
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)]
|
[CanvasRenderingContext2D interface: operation isPointInStroke(unrestricted double,unrestricted double)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6129,18 +6123,6 @@
|
||||||
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "resetClip" with the proper type (41)]
|
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "resetClip" with the proper type (41)]
|
||||||
expected: FAIL
|
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)]
|
[CanvasRenderingContext2D interface: document.createElement("canvas").getContext("2d") must inherit property "isPointInStroke" with the proper type (44)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue