ecoal95
42bd43a696
webgl: Make bind* calls more spec-compliant
2015-07-06 19:54:06 +02:00
ecoal95
b1765c6882
webgl: Refactor implementation to move logic inside the DOM interfaces
...
This improves the encapsulation and consistency in our WebGL
implementation.
Also allows to implement new methods such as `getShaderSource()`.
It will also allow us to use `delete()` in the destructors of them (note
that we will want to keep track of them from the context).
2015-07-06 19:54:05 +02:00
bors-servo
c022262826
Auto merge of #6505 - ttaubert:issue/4666-crypto-getRandomValues, r=Ms2ger
...
Implement crypto.getRandomValues()
Didn't touch mozjs or rust-mozjs because implementing that in the code generator didn't seem too easy. I'm using the same workaround that the TextDecoder does.
Using the OsRng should be the right choice here? As the OS keeps state for us we wouldn't need to have a global rng instance to keep around.
Fixes #4666 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6505 )
<!-- Reviewable:end -->
2015-07-05 22:16:19 -06:00
bors-servo
cc73aad447
Auto merge of #6546 - michaelwu:slim-layoutdatawrapper, r=Ms2ger
...
Remove LayoutChan from LayoutDataWrapper
Saves 32 bytes in Node.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6546 )
<!-- Reviewable:end -->
2015-07-05 21:39:12 -06:00
bors-servo
db9e29a5f3
Auto merge of #6557 - Ms2ger:update-js, r=jdm
...
Update rust-mozjs.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6557 )
<!-- Reviewable:end -->
2015-07-05 09:38:20 -06:00
Ms2ger
dedc96349f
Update rust-mozjs.
2015-07-05 10:30:19 +02:00
Corey Farwell
a985ee4f19
Utilize iterators for AttrValue::from_serialized_tokenlist
2015-07-04 21:54:45 -07:00
David Zbarsky
861ddedaef
Remove some redundant let bindings
2015-07-04 13:12:49 -04:00
Ms2ger
58a7c81530
Store a LayoutJS<Element> in LayoutElement.
2015-07-04 17:38:42 +02:00
Michael Wu
1a014beb08
Remove LayoutChan from LayoutDataWrapper
2015-07-04 03:54:40 -04:00
Ms2ger
d4888dbd4d
Fix build warnings.
2015-07-04 14:33:18 +02:00
bors-servo
0298c92670
Auto merge of #6549 - Ms2ger:from_actual, r=nox
...
Remove *Cast::from_actual.
Since JSRef was removed, from_actual duplicates from_ref.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6549 )
<!-- Reviewable:end -->
2015-07-03 22:56:17 -06:00
Ms2ger
2f88b84e07
Remove *Cast::from_actual.
...
Since JSRef was removed, from_actual duplicates from_ref.
2015-07-04 12:55:01 +02:00
Simon Sapin
75e3e787f6
Upgrade to rustc 1.3.0-dev (f3b97a74a 2015-07-03)
2015-07-04 11:32:41 +02:00
David Zbarsky
c55a06cb64
Factor out common forward/back navigation code in HTMLIFrameElementMethods
2015-07-03 23:05:58 -04:00
Tim Taubert
92874a89d2
Implement window.crypto.getRandomValues()
2015-07-03 18:34:00 +02:00
bors-servo
d09881b051
Auto merge of #6513 - Ms2ger:workqueue-data, r=pcwalton
...
Remove the data field from WorkQueue.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6513 )
<!-- Reviewable:end -->
2015-07-03 07:22:44 -06:00
bors-servo
59d3b45b74
Auto merge of #6504 - Ms2ger:workqueue-labeled-break, r=pcwalton
...
Move back to using a labeled break in WorkQueue.
This was changed in 18a2050a64
; it appears to
work fine now.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6504 )
<!-- Reviewable:end -->
2015-07-03 06:39:53 -06:00
Ms2ger
9f52ab11aa
Simplify the string handling in HTMLAnchorElement::activation_behavior.
2015-07-03 13:31:00 +02:00
Ms2ger
59ea4dbd21
Remove an avoidable null-check from HTMLAnchorElement::activation_behavior.
2015-07-03 13:30:31 +02:00
Ms2ger
2e89228cd5
Remove HTMLAnchorElement::handle_event.
...
It is equivalent to the default implementation.
2015-07-03 13:27:23 +02:00
Ms2ger
24f6122073
Check the result of JS_Init.
2015-07-02 22:17:41 +02:00
bors-servo
be9d60664d
Auto merge of #6510 - mintern:fix-worker-redirect-location, r=Ms2ger
...
Update Worker location for redirects
Fixes #4146
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6510 )
<!-- Reviewable:end -->
2015-07-02 03:28:29 -06:00
Brandon Mintern
0a3981cdc9
Update Worker location for redirects
...
Fixes #4146
2015-07-02 11:25:33 -04:00
bors-servo
bbb39082e0
Auto merge of #6529 - dwins:master, r=Manishearth
...
Refactor #[jstraceable] to #[derive(JSTraceable)]
fixes #6524 . I had to make an additional change not mentioned in the ticket - adding the `#[feature]` to enable deriving custom traits but I assume that's expected at this time.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6529 )
<!-- Reviewable:end -->
2015-07-01 18:27:40 -06:00
David Winslow
4cf46bff2d
Refactor #[jstraceable] to #[derive(JSTraceable)]
...
fixes #6524
2015-07-01 18:27:06 -04:00
Matt Brubeck
13072c7b0c
Remove string_cache dependency from util.
...
Move `namespace::from_domstring` from util to script::dom, because it is used
only in that crate.
2015-07-01 10:04:53 -07:00
Matt Brubeck
efa60d3a24
Remove unused dependencies from util
2015-07-01 09:40:33 -07:00
Matt Brubeck
8570b22677
Remove layers dependency from util
2015-07-01 09:40:32 -07:00
Matt Brubeck
fdb8632a5f
Remove gfx dependency from script crate.
...
This dependency is not used anywhere.
2015-07-01 08:59:25 -07:00
bors-servo
9897125b34
Auto merge of #6434 - yoava333:mouseover, r=nox
...
Added support for mouseover and mouseout events
fixes issue https://github.com/servo/servo/issues/6404
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6434 )
<!-- Reviewable:end -->
2015-06-30 20:05:06 -06:00
bors-servo
4674afe846
Auto merge of #6525 - mrobinson:simplify-display, r=glennw
...
Update to latest rust-layers
The compositing context, painting context and display metadata have all
been collapsed into a single NativeDisplay class.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6525 )
<!-- Reviewable:end -->
2015-06-30 17:02:26 -06:00
Martin Robinson
0f27bd6c4b
Update to latest rust-layers
...
The compositing context, painting context and display metadata have all
been collapsed into a single NativeDisplay class.
2015-06-30 21:58:54 -07:00
Michael Wu
de788e0529
Auto-derive JSTraceable and Reflectable for ServoHTMLParser
2015-06-30 15:53:04 -04:00
Ms2ger
1d065d1804
Update smallvec.
2015-06-30 15:51:15 +02:00
Ms2ger
8bb802f726
Update azure.
2015-06-30 15:00:02 +02:00
Yoav Alon
3a44e143bc
add support for mouseover and mouseout events
2015-06-30 14:42:38 +03:00
Michael Wu
728ecc72b6
Add JSAutoRequest/JSAutoCompartment to HTMLIFrameElement
2015-06-29 18:59:50 -04:00
bors-servo
420cf4c8dc
Auto merge of #6495 - jruderman:add_keyboard_shortcuts_2, r=metajack
...
Add keyboard shortcuts to glutin browser
Supersedes #6488 . Changes since then:
* Fix a few places where we needed cfg(feature = "window") in order to compile without the feature.
* Zoom-in shortcut now works both with and without shift. (Uses a guard because I couldn't think of another way to do it without CTFE.)
* Back/forward shortcuts now correctly use Alt on non-Mac platforms.
* The back/forward shortcuts that use square brackets are now non-Windows, rather than Mac-only. This roughly matches XP_UNIX: http://hg.mozilla.org/mozilla-central/file/d4c4ce7f060c/browser/base/content/browser-sets.inc#l354
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6495 )
<!-- Reviewable:end -->
2015-06-29 11:44:03 -06:00
Ms2ger
41da4fceee
Remove the data field from WorkQueue.
...
It is only used in the run method.
2015-06-29 15:09:29 +02:00
Ms2ger
c214c03375
Pass shared_layout_context to run_queue_with_custom_work_data_type.
2015-06-29 15:07:50 +02:00
Corey Farwell
109e3219a4
Prefer HTTPS when linking to GitHub Pages
...
This commit was generated using the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)github.io/https:\1github.io/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)github.io/https:\1github.io/g'
```
2015-06-28 23:16:47 -07:00
bors-servo
6f25ecea3f
Auto merge of #6507 - Ms2ger:node-insert, r=Manishearth
...
Fix a bug in Node::pre_insert.
It was accidentally broken in 3ce368fa28
.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6507 )
<!-- Reviewable:end -->
2015-06-28 14:01:47 -06:00
Ms2ger
0b680dc9bd
Fix a bug in Node::pre_insert.
...
It was accidentally broken in 3ce368fa28
.
2015-06-28 15:59:01 +02:00
bors-servo
46709edaf8
Auto merge of #6499 - Ms2ger:slice_position_elem, r=nox
...
Stop using position_elem.
It is unstable and not really better than the stable alternative.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6499 )
<!-- Reviewable:end -->
2015-06-27 15:51:35 -06:00
Ms2ger
c9f50f41b5
Stop using position_elem.
...
It is unstable and not really better than the stable alternative.
2015-06-27 23:39:21 +02:00
Ms2ger
b2c226afe6
Move back to using a labeled break in WorkQueue.
...
This was changed in 18a2050a64
; it appears to
work fine now.
2015-06-27 22:10:40 +02:00
Ms2ger
108c9b161c
Remove unused imports.
2015-06-27 19:37:12 +02:00
bors-servo
82be491fa3
Auto merge of #6498 - Ms2ger:weak-deref, r=metajack
...
Remove Deref and DerefMut implementations from WeakFlowRef.
By definition of a weak pointer, these implementations cannot be safe.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6498 )
<!-- Reviewable:end -->
2015-06-27 10:27:03 -06:00
Ms2ger
b37d9cc173
Remove Deref and DerefMut implementations from WeakFlowRef.
...
By definition of a weak pointer, these implementations cannot be safe.
2015-06-27 18:09:14 +02:00