Commit graph

1005 commits

Author SHA1 Message Date
bors-servo
f29ea4e4ef auto merge of #5302 : mmatyas/servo/canvas_stroke, r=jdm
This is the servo side patch of servo/rust-azure#149.
2015-03-25 07:54:50 -06:00
Mátyás Mustoha
698b88f71d Canvas: added stroke() support. 2015-03-25 12:52:05 +01:00
bors-servo
e77c4e2d76 auto merge of #5346 : saneyuki/servo/binding, r=jdm
- Fix #707
- Take over from #5106
2015-03-25 01:09:47 -06:00
Tetsuharu OHZEKI
bc06526610 Add guards to almost CanvasRenderingContext2D methods according to the spec.
http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas_CR/ says

"Except where otherwise specified, for the 2D context interface,
 any method call with a numeric argument whose value is infinite or a
 NaN value must be ignored."

We might define the annotation to generate this behavior in glue code.
However, at now, I use this workaround way.
2015-03-25 15:13:34 +09:00
Tetsuharu OHZEKI
05c6d046dd Enable unrestricted types for CanvasRenderingContext2D. 2015-03-25 15:13:33 +09:00
Corey Farwell
605e21c406 Add links for script::dom::window to whatwg HTML spec 2015-03-24 23:34:22 -04:00
Tetsuharu OHZEKI
9cd1b2c158 Use Finite<T> for our dom code (excluding CanvasRenderingContext2D) 2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
4c96732077 Support the conversion behavior from ECMAScript value to restricted float.
This is defined by WebIDL spec:

- http://heycam.github.io/webidl/#es-float
- http://heycam.github.io/webidl/#es-double
2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
f7fd34c0aa Introduce Finite<T: Float> for restricted values defined in WebIDL. 2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
2bf2c0020b Add bindings support for unrestricted float/double values. 2015-03-25 10:45:30 +09:00
bors-servo
2ab1ece765 auto merge of #5231 : dmarcos/servo/issue4784, r=jdm
...ce
2015-03-24 14:01:06 -06:00
Diego Marcos
e3f5a76baa Implementing canvas drawImage API for HTML Canvas elements as image source 2015-03-24 12:23:15 -07:00
snf
db6aeef2ef implementing StorageEvent interface 2015-03-24 18:03:06 +00:00
bors-servo
1432b630d2 auto merge of #5343 : frewsxcv/servo/script-dom-window, r=jdm 2015-03-24 10:33:55 -06:00
Corey Farwell
0f2fd77bb1 Clean up a few things in script::dom::window 2015-03-24 09:43:50 -04:00
bors-servo
8f45268420 auto merge of #5334 : frewsxcv/servo/cleanup-document, r=Ms2ger 2015-03-24 06:54:48 -06:00
bors-servo
2f85c5bb50 auto merge of #5333 : glennw/servo/fix-iframe-subpage, r=jdm
This fixes the case of clicking a link in an iframe, going back, then clicking the link again.
2015-03-23 23:03:45 -06:00
Corey Farwell
e770f05e0c Cleanup and modernize script::dom::document 2015-03-23 21:43:53 -04:00
Glenn Watson
06a79243a7 Ensures that iframe navigation updates the parent iframe element subpage id.
This fixes the case of clicking a link in an iframe, going back, then clicking the link again.
2015-03-24 10:14:49 +10:00
bors-servo
b7e66c5349 auto merge of #5318 : glennw/servo/input-relayout, r=jdm 2015-03-23 18:03:45 -06:00
Josh Matthews
48b151948f Fix double-panic when the script task panics. 2015-03-23 19:19:18 +01:00
bors-servo
ca79abe458 auto merge of #5321 : frewsxcv/servo/patch-1, r=Ms2ger 2015-03-23 07:57:50 -06:00
bors-servo
f9826c3ae8 auto merge of #5323 : Ms2ger/servo/script-warnings, r=Manishearth 2015-03-23 06:57:50 -06:00
bors-servo
ccac6a944e auto merge of #5319 : frewsxcv/servo/urlsearchparams, r=Ms2ger 2015-03-23 05:18:50 -06:00
Ms2ger
6b69fec7fe Fix warnings in script. 2015-03-23 10:37:49 +01:00
bors-servo
1f682d878d auto merge of #5281 : glennw/servo/mozbrowser, r=jdm 2015-03-22 21:36:51 -06:00
Glenn Watson
bf9b8f7050 Experimental implementation of (a small subset of) mozbrowser APIs. 2015-03-23 13:26:55 +10:00
Corey Farwell
c0ea1e6330 Add TODO comments for a recently opened issue 2015-03-22 22:23:06 -04:00
Corey Farwell
5697095298 dom::urlsearchparams cleanup and documentation 2015-03-22 20:51:48 -04:00
Glenn Watson
0db6f857ad Make text input relayout when value is changed directly 2015-03-23 09:57:51 +10:00
Glenn Watson
918d64e6fc Fix a few warnings 2015-03-23 09:57:33 +10:00
Corey Farwell
5a780cb221 Stop abusing format! macro when construct a String
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
2015-03-22 18:54:56 -04:00
bors-servo
445f1c891a auto merge of #5307 : frewsxcv/servo/document-set-body, r=jdm
There were a few things that were bothering me with `SetBody`:

* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented
2015-03-22 10:09:46 -06:00
Manish Goregaokar
596e03e546 Basic userscript support 2015-03-22 15:13:11 +05:30
Corey Farwell
5e4d80fa3a Tidy up script::dom::document.SetBody
There were a few things that were bothering me with `SetBody`:

* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented
2015-03-21 20:21:36 -04:00
Manish Goregaokar
3479d3fa7f Replace unsafe_blocks by unsafe_code. 2015-03-21 10:27:32 +01:00
Ms2ger
1604515fd9 Fix various build warnings. 2015-03-20 17:57:49 +01:00
bors-servo
8998edb912 auto merge of #5282 : gfxmonk/servo/finalize_global, r=Ms2ger
Fixes #1871

I thought I'd take a look at this for a first contribution to servo. A couple of things I'm not 100% sure on are:

1) `get_proto_or_iface_array` returns a `*mut *mut JSObj`, which I'm assuming is really an array of pointers to `JSObj`s. So dropping its return value will drop the memory for the array of pointers. Do we also need to drop each element, or is that handled by GC?

2) Are there any tests I need to add for this? I don't know if there are existing leak tests, or if leaks are mostly discovered by profiling.
2015-03-20 07:54:48 -06:00
Tim Cuthbertson
0052a27b1a Free the interface prototype array when Window is finalized
Fixes #1871
2015-03-20 22:14:14 +11:00
bors-servo
2c85c1d312 auto merge of #5251 : mmatyas/servo/canvas_quadratic, r=jdm
Yet another small canvas patch.
2015-03-20 04:27:47 -06:00
bors-servo
dea36f9816 auto merge of #4891 : mmatyas/servo/canvas_gradient, r=jdm
Based on [ebalint](https://github.com/ebalint)'s original patch, this commit implements the linear and radial gradients for the canvas. The PR also includes test cases.
Depends on #4623 and servo/rust-azure#136.
2015-03-20 03:12:47 -06:00
bors-servo
459c354416 auto merge of #4819 : mskrzypkows/servo/document_activeElement, r=jdm
#4770
2015-03-19 22:30:49 -06:00
bors-servo
ab8d43910c auto merge of #5229 : hsvalava/servo/m1503, r=jdm
Fixing ConsoleMsg for console.log messages in the Developer Tools web console.
2015-03-19 21:48:48 -06:00
Maciej Skrzypkowski
7da356cd05 Added document.activeElement attribute. 2015-03-19 23:00:13 +01:00
Himaja
3830d8e3e1 Fix ConsoleMsg in ConsoleAPICall for log messages in the Developer Tools web console. 2015-03-19 16:08:27 -04:00
Mátyás Mustoha
d3199aef74 Implement gradient fill styles for canvas. 2015-03-19 15:59:08 +01:00
bors-servo
1236280bea auto merge of #5029 : ChrisParis/servo/h5e-serialize, r=jdm
Fixes https://github.com/servo/servo/issues/3713. Depends on https://github.com/servo/html5ever/pull/100 and https://github.com/servo/html5ever/pull/101.
2015-03-18 18:06:49 -06:00
Chris Paris
a5d6c6a1fc Serialize using html5ever 2015-03-18 12:17:56 -10:00
Chris Paris
99286e4b4f Implement Element.innerHTML setter 2015-03-18 11:20:47 -10:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00