bors-servo
2d904f7080
auto merge of #4132 : jtuchsen/servo/issue-4131, r=jdm
...
A slight refactor.
2014-11-28 10:27:43 -07:00
bors-servo
82050d1e53
auto merge of #4130 : saneyuki/servo/cast, r=Manishearth
...
Fix #4124
This also introduce `BarCast::from_actual()` which is used for up-cast for dom's actual data types (non JS pointer values).
2014-11-28 09:24:44 -07:00
bors-servo
12ae541302
auto merge of #4129 : aakashjain/servo/HTMLElement#hidden, r=Manishearth
2014-11-28 05:33:48 -07:00
aakashjain
5a30bd00cb
Implemented hidden, removed corresponding passed tests
2014-11-28 17:39:30 +05:30
Jesse Tuchsen
db885f04ee
Fixes #4131
...
A slight refactor.
2014-11-27 15:16:09 -08:00
Tetsuharu OHZEKI
1305ac4dd0
Remove Element.node().
2014-11-28 06:05:45 +09:00
Tetsuharu OHZEKI
d53ce7f8d2
Remove Node.eventtarget().
2014-11-28 06:02:21 +09:00
Tetsuharu OHZEKI
106b7a3924
Remove HTMLElement.element().
2014-11-28 06:02:03 +09:00
Tetsuharu OHZEKI
2502c692f3
Remove UIEvent.event().
2014-11-28 06:01:43 +09:00
Tetsuharu OHZEKI
3681628936
Make callers of ${Derived}::${base}()
use casts instead.
2014-11-28 06:00:23 +09:00
Jesse Tuchsen
b664ee88e7
Fixes #3962
...
Bad HTTP responses now have a 0 status code instead of 200 OK.
2014-11-27 11:55:31 -08:00
bors-servo
431644bfc8
auto merge of #4114 : glennw/servo/table-layout-fix, r=pcwalton
2014-11-26 18:39:38 -07:00
bors-servo
184a3346ab
auto merge of #4113 : payload/servo/issue-4110, r=jdm
...
The attribute `value` and the underlying model `TextInput` are not connected to each other, so I just pulled the value out of `TextInput`.
2014-11-26 16:15:38 -07:00
Glenn Watson
59cdce3001
Fix layout on google search results.
2014-11-27 09:10:58 +10:00
Gilbert Röhrbein
b3f9c8667c
fixes #4110 , can input text without 'value' attribute present
2014-11-26 23:39:10 +01:00
bors-servo
7b72ffcbaf
auto merge of #4097 : orteipid/servo/fix_deprecation, r=SimonSapin
...
selector_matching.rs:1263:44: 1263:63 warning: use of deprecated item: Renamed to `get`, #[warn(deprecated)] on by default
selector_matching.rs:1263 assert_eq!(1, selector_map.id_hash.find(&atom!("top")).unwrap()[0].declarations.source_order);
^~~~~~~~~~~~~~~~~~~
selector_matching.rs:1265:47: 1265:79 warning: use of deprecated item: Renamed to `get`, #[warn(deprecated)] on by default
selector_matching.rs:1265 assert_eq!(0, selector_map.class_hash.find(&Atom::from_slice("intro")).unwrap()[0].declarations.source_order);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
selector_matching.rs:1266:41: 1266:71 warning: use of deprecated item: Renamed to `get`, #[warn(deprecated)] on by default
selector_matching.rs:1266 assert!(selector_map.class_hash.find(&Atom::from_slice("foo")).is_none());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The 'find' function was changed to 'get'. Updated to remove this warning given when running the tests.
2014-11-25 08:15:49 -07:00
Paul DiPietro
adcf194bf7
Fix deprecation in selector matching test
...
The 'find' function was changed to 'get'. Changed to reflect this
warning given when running the tests.
2014-11-25 09:45:00 -05:00
Hinali Marfatia
b1d6041420
Implement a basic WebSocket interface.
2014-11-25 15:43:22 +01:00
Ms2ger
449aaec5c2
Panic if DOMTokenList#contains is called for an unparsed attribute.
...
Previously, if the attribute was not parsed into a token list, and the
tokens() method returned None, DOMTokenList#contains would silently return
false. This issue was encountered in
<https://github.com/servo/servo/pull/4076 > and took quite some time to
figure out.
2014-11-24 11:11:05 +01:00
bors-servo
6e19955129
auto merge of #4081 : achals/servo/master, r=jdm
...
https://github.com/servo/servo/issues/3994
2014-11-24 02:03:34 -07:00
Achal Shah
23ed1f705b
Implement HTML{Anchor,Area,Link}Element.relList.
...
https://github.com/servo/servo/issues/3994
2014-11-23 23:37:13 -08:00
bors-servo
65350bb225
auto merge of #4070 : kparaju/servo/master-mime-sniffer-failing-4046, r=jdm
...
Fixes #4046
I tested it by:
./mach test-wpt --include=XMLHttpRequest > old.log
# make code changes
./mach test-wpt --include=XMLHttpRequest > new.log
grep panic old.log # SnifferManager panics
grep panic new.log # No SnifferManager panics
2014-11-23 22:24:34 -07:00
bors-servo
60dfb65ab2
auto merge of #4068 : Manishearth/servo/atomify, r=jdm
2014-11-23 22:00:40 -07:00
bors-servo
90007ee781
auto merge of #4064 : trevorriles/servo/isintervalenum, r=jdm
...
Created an `IsInterval` enum to improve readability and remove the need for `true // is_interval`
I'm still fairly new to rust. I briefly looked for a way to implement boolean comparisons of the enum but didn't figure out a way.
Also I'm not attached to any of the names. Let me know what I can fix :)
2014-11-23 21:36:37 -07:00
Kshitij Parajuli
9eda82f4a3
Break out of loop if can't send data
...
Fixes #4046
2014-11-23 12:47:20 -05:00
Manish Goregaokar
534919327d
Use atom! in place of Atom::from_slice where necessary
2014-11-23 22:03:27 +05:30
bors-servo
d215ff7867
auto merge of #4067 : wenderen/servo/document-create-attribute, r=Manishearth
...
fixes #4054
2014-11-23 08:21:37 -07:00
Rohan Prinja
4b754bd457
implement Document#createAttribute
2014-11-23 14:51:04 +05:30
Patrick Walton
95b57f55cd
layout: Fix De Morgan's Law error in incremental reflow, allowing
...
float/absolute layout layout to be idempotent again.
Fixes the maze solver.
2014-11-21 20:53:59 -08:00
Mike Blumenkrantz
0341444ce9
util::opts::default_opts() is now pub
2014-11-21 21:52:56 -05:00
Trevor Riles
0cba3eec62
remove comments now that we have more descriptive names
2014-11-21 15:12:52 -06:00
Trevor Riles
89f1949913
Use an enum to set set_timeout_or_interval's is_interval field. Fixes #4059
2014-11-21 15:10:27 -06:00
Bruno de Oliveira Abinader
6f2af793e8
Arc::make_unique is now stable
2014-11-21 10:45:35 -04:00
Bruno de Oliveira Abinader
b9f974ab33
No longer need for local variable in PropertyDeclaration::parse
2014-11-21 10:40:21 -04:00
bors-servo
c23bfdf1c5
auto merge of #4050 : mttr/servo/implement_attr_nodevalue, r=Ms2ger
...
Fixes #4047 , and updates to expect tests that are now passing because of it.
2014-11-20 17:18:29 -07:00
Glenn Watson
898c1ecc8f
Remove unused exit after load option.
...
This simplifies some upcoming changes to how event handling works.
2014-11-21 09:15:02 +10:00
Matthew Rasmus
73721cd189
Implement Attr#nodeValue
...
Fixes #4047
2014-11-20 13:18:10 -08:00
bors-servo
9da7f10c3c
auto merge of #3964 : mrobinson/servo/code-duplication, r=larsbergstrom
...
It is possible to share the code which creates root layers.
2014-11-19 09:00:47 -07:00
bors-servo
554f696db8
auto merge of #4035 : glennw/servo/remove-rust-alert, r=pcwalton
2014-11-18 21:30:27 -07:00
Glenn Watson
c39852a3f4
Remove rust-alert as it's broken on mac, and unimplemented on other platforms.
2014-11-19 14:19:40 +10:00
Patrick Walton
55da2c97d5
layout: Incrementalize reflow of block formatting contexts impacted by
...
floats, and make float placement idempotent.
This moves float placement outside sequential block size computation.
Improves the maze solver.
2014-11-18 15:36:04 -08:00
Patrick Walton
be36fcd3b1
layout: Eliminate the virtual is_float()
in favor of the flow flags
2014-11-18 15:36:04 -08:00
bors-servo
f5c6146de0
auto merge of #4028 : glennw/servo/glutin, r=larsbergstrom
...
Default build uses glfw, but glutin can be enabled via:
./mach cargo build --no-default-features --features=glutin
Remaining work:
* Mac
* Android
* hi-dpi
* nested event loop
This PR also enables true headless (without X) rendering on Linux by specifying the rendering API as Mesa.
2014-11-18 15:48:29 -07:00
Glenn Watson
0278920343
Add glutin port (supported on Linux only currently).
...
Default build uses glfw, but glutin can be enabled via:
./mach cargo build --no-default-features --features=glutin
2014-11-19 08:31:34 +10:00
bors-servo
e13873bba1
auto merge of #4015 : letharion/servo/Bitfield-to-bitflags, r=mbrubeck
...
Attempt to solve #3690
I've re-rolled the changes from https://github.com/servo/servo/pull/2610 , and then doen the necessary updates to get this to compile with the current snapshot of rust.
The documentation for values I've added in the bitflag are missing, because I don't know what is the appropriate text.
2014-11-18 11:42:32 -07:00
Claes 'Letharion' Gyllensvärd
2737db3ad7
Remove bitfield! macro in favour of bitflags!
2014-11-18 19:26:10 +01:00
Achal Shah
712b3d0f5b
Stop including the element during Element.getElementsByClassName.
...
https://github.com/servo/servo/issues/3995
2014-11-18 07:20:07 -08:00
bors-servo
efb4fe4a4a
auto merge of #4027 : znewman01/servo/issue4010, r=Ms2ger
...
Fixes #4010 .
This is my first Servo contribution, so let me know if I missed anything!
2014-11-18 07:54:33 -07:00
bors-servo
929671f945
auto merge of #4029 : znewman01/servo/issue4009, r=Ms2ger
...
Fixes #4009 .
Only lower-case the argument to Document#createElement if it's a HTML document.
2014-11-18 07:15:34 -07:00
Zachary Newman
2399a1449d
Implement DOMImplementation.hasFeature
...
Fixes #4010 .
2014-11-18 09:00:45 -05:00