Commit graph

1117 commits

Author SHA1 Message Date
Anthony Ramine
6a6ecb9afa Hold a Temporary in ReverseChildrenIterator 2015-04-07 14:47:31 +02:00
Anthony Ramine
fc31aef8b4 Add casts to Temporary types 2015-04-07 14:47:31 +02:00
bors-servo
7f773d73c4 Auto merge of #5526 - frewsxcv:expect, r=jdm
None
2015-04-07 03:33:11 -05:00
bors-servo
1fd609d198 Auto merge of #5525 - dhodder:master, r=jdm
An empty DOM interface for HTMLDialogElement

r?
2015-04-07 02:50:04 -05:00
bors-servo
45b40d49a5 Auto merge of #5338 - ChrisParis:outerhtml, r=jdm
The first commit refactors the fragment parsing and innerHTML setter. This makes the code mirror the structure of the spec more closely, and also prepares for reusing code with the outerHTML setter.
2015-04-07 01:15:45 -05:00
bors-servo
d0acc33bf2 Auto merge of #5423 - yodalee:issue5397-location-pathname, r=jdm
issue #5397
2015-04-06 23:59:18 -05:00
Chris Paris
f76a137344 Produce output of fragment parsing in &mut RootedVec<JS<Node>> argument 2015-04-06 12:59:54 -10:00
Chris Paris
6422f38574 Remove Root<Node> type annotation in SetOuterHTML
The 'use ... Root' was removed from the file by
another commit, and this annotation wasn't necessary anyway.
2015-04-06 12:59:54 -10:00
Chris Paris
ce16075588 Replace spec quotes with spec step numbers 2015-04-06 12:59:53 -10:00
Chris Paris
d1c5ac31ab unwrap AppendChild result in parse_fragment 2015-04-06 12:56:57 -10:00
Chris Paris
b0ba4d17ee drop try! from parse_fragment 2015-04-06 12:56:56 -10:00
Chris Paris
d83f4d8a6e get rid of and_then in outerHTML setter 2015-04-06 12:56:56 -10:00
Chris Paris
3542360d00 get rid of and_then in innerHTML setter 2015-04-06 12:56:55 -10:00
Chris Paris
cc771fdd68 fragment parsing functions take DOMString instead of HTMLInput 2015-04-06 12:56:55 -10:00
Chris Paris
2cc5bad21e Implement Element.outerHTML setter 2015-04-06 12:56:55 -10:00
Chris Paris
63ced23fca Refactor fragment parsing 2015-04-06 12:54:58 -10:00
Corey Farwell
2a01cec521 Utilize Option::expect 2015-04-06 14:06:05 -07:00
bors-servo
3c5c2f416b Auto merge of #5529 - ehegnes:issue-5521, r=jdm
Fixes #5521
2015-04-06 15:16:39 -05:00
bors-servo
8d1a6c45f6 Auto merge of #5503 - nox:cleanup-attributes, r=Manishearth
This makes all tests in attributes.html pass.
2015-04-06 12:36:09 -05:00
Anthony Ramine
561ec7e21d Rename many name arguments to local_name 2015-04-06 14:31:28 +02:00
Anthony Ramine
254207730e Make Element::get_attribute() take its namespace by reference 2015-04-06 14:31:27 +02:00
Anthony Ramine
dd88bcddc4 Fix Element::RemoveAttribute*() 2015-04-06 14:12:56 +02:00
Anthony Ramine
c557736d26 Fix xml_name_type()
Names with a trailing colon are not qualified names.
2015-04-06 14:12:20 +02:00
Anthony Ramine
1906f835b9 Fix Element::GetAttribute()
Local names should not be used to get a attribute without providing a namespace.
2015-04-06 14:12:20 +02:00
thiagopnts
ea5c702f4a Add devtools_chan method to GlobalRef and make new globals notifications work with nested workers
fixup! Add devtools_chan method to GlobalRef and make new globals notifications work with nested workers

fixup! Add devtools_chan method to GlobalRef and make new globals notifications work with nested workers
2015-04-06 00:54:16 -03:00
bors-servo
f22d920b4d auto merge of #5524 : servo/servo/attributes-ownerElement, r=Manishearth 2015-04-05 05:54:53 -06:00
Muhammad Zaheer
c37a34234a Update the spec links in domexception.rs (fixes #5528) 2015-04-05 12:06:24 +02:00
Eric Hegnes
e398725242 Consistently name enum members in dom::bindings::error::Error
Fixes #5521
2015-04-05 00:09:40 -04:00
Dave Hodder
78de6b2db1 Add basic HTMLDialogElement interface 2015-04-04 19:59:37 +01:00
Matt Brubeck
791fa3757d Implement the :focus pseudo-class selector
Fixes #5460. This supports for simple focusable elements that are their own
DOM anchors, like text `input` fields.
2015-04-04 10:57:11 -07:00
Matt Brubeck
ad6c511a5e Basic element.focus and blur methods
Fixes #5462.
2015-04-04 10:57:11 -07:00
Anthony Ramine
d3d12e6324 Make attributes lose their owner when removed 2015-04-04 17:39:39 +02:00
Bogdan Cuza
c8c79624bd Support any number of arguments to console methods (fixes #5495). 2015-04-04 17:34:05 +02:00
yodalee
77f3b25e65 add readonly pathname function in location
pathname function implemented in UrlHelper
'url is null' check is skip for now
2015-04-04 20:08:13 +08:00
Mikko Vanhatalo
29387f6c4c Implemented HTMLInputElement placeholder attribute
+ modified HTMLInputElement.webidl to include placeholder
+ modified placeholder test expectations
2015-04-04 14:44:32 +03:00
bors-servo
036b3eaa04 auto merge of #5511 : Ms2ger/servo/int, r=jdm 2015-04-03 13:54:46 -06:00
Ms2ger
c2e81be8a5 Stop using int/uint in script. 2015-04-03 20:47:53 +02:00
Gilles Leblanc
ba36a108c1 Split out shared networking code into net_traits crate
Fixes #4476
2015-04-03 13:38:10 -04:00
bors-servo
539c85f5ec auto merge of #5501 : Ms2ger/servo/docs, r=jdm
Most of this documentation is based on
<https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings>.
2015-04-03 08:24:41 -06:00
Ms2ger
02be76bd48 Merge pull request #5492 from Ms2ger/MouseButton
Introduce a MouseButton enum.
2015-04-03 13:29:12 +02:00
Ms2ger
03c526dd20 Add more documentation about the DOM bindings.
Most of this documentation is based on
<https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings>.
2015-04-03 11:33:53 +02:00
bors-servo
c38d9ba6b9 auto merge of #5484 : frewsxcv/servo/document-cleanup, r=Ms2ger
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring
2015-04-02 22:45:41 -06:00
Ms2ger
6b127a8df8 Introduce a MouseButton enum. 2015-04-03 01:24:33 +02:00
aditya
a3eaacccf6 Move iframe and url fields from Reflow to LayoutTask and LayoutTaskFactory
* Fix #5466
2015-04-02 16:09:48 -04:00
Corey Farwell
c90e8c19cd Improvements, cleanup for script::dom::document
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring
2015-04-02 11:52:34 -07:00
bors-servo
85808c1cdd auto merge of #5425 : pcwalton/servo/optimize-rooting, r=Ms2ger
This was showing up very high in instruction-level profiling.

r? @jdm
2015-04-02 10:51:40 -06:00
Patrick Walton
d1c13faf4b script: Optimize JS rooting to not move the entire Root struct from
the stack to the return out-pointer.

This was showing up very high in instruction-level profiling.
2015-04-02 09:03:45 -07:00
bors-servo
5457ec6098 auto merge of #5426 : pcwalton/servo/mouse-over-incremental-reflow, r=jdm
r? @jdm
2015-04-02 09:57:40 -06:00
Ms2ger
c8106da277 Rewrite NodeChildrenIterator to return Temporary. 2015-04-02 13:07:51 +02:00
Ms2ger
bc8ed81dc1 Use a larger small vector. 2015-04-02 09:47:30 +02:00