Commit graph

4941 commits

Author SHA1 Message Date
Ms2ger
b012c99e05 Implement parsed 'unsigned long' attributes.
This commit is partially based on earlier work by Bruno Abinader in #2073.
2014-06-13 14:13:29 +02:00
Ms2ger
972c69883e Implement Element.classList (partially fixes #1717). 2014-06-13 14:13:00 +02:00
Ms2ger
0803e5d0ac Implement support for parsed attributes.
This commit is heavily based on earlier work by Bruno Abinader in #2073.
2014-06-13 14:07:49 +02:00
Ms2ger
37e9458514 Simplify Element::set_attribute for its remaining callers. 2014-06-08 17:09:22 +02:00
Ms2ger
efe69f3a82 Make Attr::value private. 2014-06-08 17:09:22 +02:00
bors-servo
743dcee0f5 auto merge of #2615 : saneyuki/servo/refcell, r=Ms2ger
related: #2513
2014-06-08 10:43:39 -04:00
Tetsuharu OHZEKI
a2a94d9421 Use RefCell for mutability of Element::style_attribute. 2014-06-08 23:36:38 +09:00
bors-servo
18a4d46070 auto merge of #2614 : saneyuki/servo/make, r=jdm
Fix #2583
2014-06-07 17:19:32 -04:00
Tetsuharu OHZEKI
01933996e3 Make the bindings make target work on all platforms. 2014-06-08 03:31:33 +09:00
bors-servo
c787fde1ec auto merge of #2573 : Manishearth/servo/union-return, r=Ms2ger
Blocks #2559
2014-06-07 14:19:29 -04:00
Manish Goregaokar
7843b7b317 Allow union types to be used as return values 2014-06-07 23:44:21 +05:30
bors-servo
1184b500e5 auto merge of #2602 : mbrubeck/servo/revert-root-pipeline-check, r=pcwalton
This reverts 2b0134be7b because it was not correct for iframes.  Oops.  (Wasn't caught by tests because we still have other crashes preventing iframe testing.)  r? @pcwalton.
2014-06-07 02:46:21 -04:00
bors-servo
f1194fc85b auto merge of #2607 : bjz/servo/leeeeeak, r=jdm
Introduced by yours-truly in 7212c3573e

Oopsie.
2014-06-06 17:49:21 -04:00
bors-servo
b52fbe0a5f auto merge of #2591 : brunoabinader/servo/document-queryselector-v3, r=jdm
This is a subtask for #2254 & #2576.

Spec:
http://dom.spec.whatwg.org/#dom-parentnode-queryselector
2014-06-06 17:22:25 -04:00
Bruno de Oliveira Abinader
c89112dabf Fixed traversal issues 2014-06-06 13:40:08 -07:00
bors-servo
6c382243c4 auto merge of #2603 : mbrubeck/servo/units, r=pcwalton
This is a rebased, squashed, and updated version of #2444.
2014-06-06 16:04:34 -04:00
Matt Brubeck
28b1b1958d Use some typed units in compositor and windowing. 2014-06-06 12:46:33 -07:00
bors-servo
a49fa8d23d auto merge of #2606 : Ms2ger/servo/warnings, r=jdm 2014-06-06 15:32:11 -04:00
Patrick Walton
b929a2f53c Merge pull request #2608 from brson/revbinsearch
Revert "auto merge of #2584 : pcwalton/servo/binary-search, r=SimonSapin...
2014-06-06 12:30:03 -07:00
Brian Anderson
679baab734 Revert "auto merge of #2584 : pcwalton/servo/binary-search, r=SimonSapin"
This reverts commit d8483d2365, reversing
changes made to 3dedbd2719.

Wikipedia crashes on linux after this change by attempting to index bogus glyphs.
2014-06-06 12:28:35 -07:00
Brendan Zabarauskas
bf21217504 Fix leak
Introduced by yours-truly in 7212c3573e

Oopsie.
2014-06-06 12:26:30 -07:00
Ms2ger
1a2896a3f3 Bonus: Make Reflector::object private. 2014-06-06 20:57:56 +02:00
Ms2ger
1c7d191e49 Add an issue number to a FIXME comment. 2014-06-06 20:57:07 +02:00
Ms2ger
3e3536cf39 Fix and disable some compile warnings. 2014-06-06 20:56:44 +02:00
bors-servo
eae9b94399 auto merge of #2599 : Ms2ger/servo/constantspec, r=jdm 2014-06-06 14:04:29 -04:00
bors-servo
c54baa663e auto merge of #2598 : Ms2ger/servo/unsafe-deriving, r=jdm 2014-06-06 13:31:31 -04:00
bors-servo
60fba1055c auto merge of #2597 : Ms2ger/servo/main, r=jdm 2014-06-06 13:04:35 -04:00
bors-servo
af9da5cc24 auto merge of #2596 : Ms2ger/servo/CreateProxyHandler-transmute, r=jdm 2014-06-06 12:34:58 -04:00
bors-servo
a575cb7d9e auto merge of #2600 : saneyuki/servo/mut, r=Ms2ger
Related #2514
2014-06-06 12:01:45 -04:00
Tetsuharu OHZEKI
1f9f0a28ed Use Cell for mutability of HTMLIFrameElement.sandbox. 2014-06-07 00:58:43 +09:00
Tetsuharu OHZEKI
2aa1554b0c Remove needless '&self mut' from VirtualMethods trait. 2014-06-07 00:58:43 +09:00
bors-servo
e997090d8e auto merge of #2590 : Manishearth/servo/xhr-json, r=jdm 2014-06-06 10:46:40 -04:00
Ms2ger
d882bb7cc0 Store a slice in ConstantSpec, rather than a raw pointer. 2014-06-06 14:23:09 +02:00
Ms2ger
ba68203ebf Remove the pointless terminator from ConstantSpec slices. 2014-06-06 14:10:41 +02:00
Ms2ger
0c54cd1634 Pass slices to CreateInterfaceObjects2 rather than raw pointers. 2014-06-06 14:01:09 +02:00
Ms2ger
3dece6b7ab Remove some code to support preffing off APIs.
We won't be using this feature in the near future, and the implementation is
not really Rustic.
2014-06-06 13:22:47 +02:00
Ms2ger
999fc973c0 Squash a warning about deriving traits on a struct that contains a raw pointer. 2014-06-06 13:10:28 +02:00
Manish Goregaokar
cfa20e9fba JSON response support and some default headers 2014-06-06 16:10:54 +05:30
Ms2ger
e997d0bfbd Remove htmlmainelement.rs again (re-fixes #2541). 2014-06-06 12:33:28 +02:00
Ms2ger
f0a87bcf64 Don't use mem::transmute for the argument to CreateProxyHandler. 2014-06-06 12:29:43 +02:00
bors-servo
d8483d2365 auto merge of #2584 : pcwalton/servo/binary-search, r=SimonSapin
in a text run.

This makes painting of text display items faster and matches what Gecko
does.

r? @SimonSapin
2014-06-06 00:58:25 -04:00
Patrick Walton
c897f5dde8 gfx: Binary search for the start position when iterating over the slices
in a text run.

This makes painting of text display items faster and matches what Gecko
does.
2014-06-05 21:52:47 -07:00
Bruno de Oliveira Abinader
75ddd2887b Added content tests for querySelector 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
3601aebaa2 Implement querySelector for Element 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
c874c6470c Implement querySelector for DocumentFragment 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
249c484c24 Implement querySelector for Document 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
f0aadb790d Added ParentNode.querySelector skeleton 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
f78d04b620 Implement TNode for JS<Node> 2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
8187916ee4 Implement TElement for JSRef<Element> 2014-06-05 16:54:26 -07:00
Matt Brubeck
a226086a32 Don't require root pipeline to match new pipeline
This reverts 2b0134be7b because it was
not correct for iframes.
2014-06-05 16:42:21 -07:00