Commit graph

1094 commits

Author SHA1 Message Date
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
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
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
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
Ms2ger
879c3710f4 Cleanup Document::Title. 2015-04-02 09:47:29 +02:00
bors-servo
dfa16e049f auto merge of #5337 : ChrisParis/servo/replacenode-fragment, r=metajack
Fixes #5336
2015-04-01 15:48:42 -06:00
bors-servo
ae31d9d9e8 auto merge of #5414 : mmatyas/servo/canvas_arcto, r=jdm
Based on the implementation in Firefox.

After comparing how `arcTo` works in different browsers, I've found the code in Firefox the cleanest implentation. It also performed better on some test, for example the one on [this site](1865210/mindcat/arcto.html). In (Linux) Firefox 36, it looks like [this](http://i59.tinypic.com/2ch5b2d.png), while in Chromium 41, [some features are missing](http://i58.tinypic.com/30u5w8z.png).
2015-04-01 15:00:43 -06:00
Chris Paris
8b9162c49d Fix mutation record when ReplaceChild handles DocumentFragment 2015-04-01 10:40:12 -10:00
Patrick Walton
1fe55a27b1 script: Stop destroying all flows on every mouse-over event. 2015-04-01 13:18:04 -07:00
bors-servo
6bedf4a229 auto merge of #5459 : jdm/servo/reflowquery, r=saneyuki 2015-04-01 14:03:43 -06:00
Mátyás Mustoha
56303e21cc Canvas: added arcTo() support. 2015-04-01 21:20:05 +02:00
bors-servo
afbc51a746 auto merge of #5430 : Manishearth/servo/userscript_path, r=kmcallister
r? @kmcallister
2015-04-01 13:15:46 -06:00
Manish Goregaokar
f41acb589a Give userscripts its own module; panic on broken paths 2015-04-01 23:20:38 +05:30
Josh Matthews
a3c13d8a40 Make reflow queries always perform reflow. Fixes #5458. 2015-04-01 11:56:47 -04:00
bors-servo
f25604c7f1 auto merge of #5474 : servo/servo/script-for-event, r=Ms2ger
...ne of them is present (fixes #5258).
2015-04-01 07:06:46 -06:00
Florian Eula
6288a468b9 Implement the onsubmit event handler (fixes #5396). 2015-04-01 13:15:06 +02:00
Keith Yeung
fdcf9618cb Handle the for and event attributes on a script element correctly when one of them is present (fixes #5258). 2015-04-01 12:43:17 +02:00
bors-servo
4846607e18 auto merge of #5469 : mbrubeck/servo/yodalee-issue4768-textencoder, r=jdm
This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied:

* Fixed build errors/warnings from the latest rust upgrade.
* Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH.

I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box.  (Or maybe I just didn't wait long enough.)  If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead?

r? @jdm
2015-03-31 20:06:49 -06:00
yodalee
9cd976a4e7 Implement TextEncoder
Fixes #4768.
2015-03-31 17:21:27 -07:00
snf
1cc5bd4287 broadcasting storage changes events 2015-03-31 21:51:41 +01:00
bors-servo
225d7d2ece auto merge of #5457 : deokjinkim/servo/navigator_appversion, r=jdm
In my mistake, I close PR for this commit.
I'm sorry for inconvenience.

@jdm 's comment
The test expectations for /tests/wpt/web-platform-tests/html/dom/interfaces.html and /tests/wpt/web-platform-tests/workers/interfaces.workers.js will need to be updated - http://mxr.mozilla.org/servo/search?string=appversion

According to your guide, I revised commit. Is this your intention?
r? @jdm 

cc @yichoi
2015-03-31 11:51:55 -06:00
bors-servo
ebdf1d494b auto merge of #5400 : pcwalton/servo/transitions-redux, r=glennw
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.

r? @glennw
2015-03-31 10:39:56 -06:00
Patrick Walton
66dd8c8a6c layout: Implement CSS transitions per CSS-TRANSITIONS § 2.
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.
2015-03-31 08:46:11 -07:00
Deokjin Kim
c0e691b08d Implement Navigator.appVersion(#5409) 2015-04-01 00:36:40 +09:00
bors-servo
52cc63a262 auto merge of #5166 : JIoJIaJIu/servo/gc, r=jdm 2015-03-31 09:24:58 -06:00
bors-servo
018e1f726d auto merge of #5451 : frewsxcv/servo/cleanup-css-style-declarations, r=Ms2ger
* Group imports
* Convert seralization helper function to use `Iterator::fold`
* Remove basically pointless `serialize_value` helper function
* Wrap lines longer than 100 chars
* Add URLs to spec
2015-03-30 10:55:03 -06:00
Corey Farwell
86c254ab6f Cleanup script::dom::cssstyledeclarations
* Group imports
* Convert seralization helper function to use `Iterator::fold`
* Remove basically pointless `serialize_value` helper function
* Wrap lines longer than 100 chars
* Add URLs to spec
2015-03-30 12:38:06 -04:00