thiagopnts
60ba4a97a5
Make ErrorEvent::new take cancelable and bubbling enums
2014-12-15 00:00:06 -02:00
bors-servo
1be7d7cced
auto merge of #4297 : ChrisParis/servo/parse, r=Ms2ger
...
Addresses https://github.com/servo/servo/issues/3756 . I've tested this code with a new test that I've submitted to https://github.com/w3c/web-platform-tests .
2014-12-13 12:30:45 -07:00
Chris Paris
e0c59818d2
Make DOMParser::ParseFromString actually parse the string
2014-12-13 08:57:08 -10:00
Ms2ger
14e1455119
Skip the root node in live HTMLCollections.
...
The root node is never included in the collection, and omitting it here
simplifies and speeds up the filter implementations.
2014-12-13 10:38:19 +01:00
Ms2ger
4a2c4b65cc
Factor out part of the traversal routine in HTMLCollection.
...
I would move the filter() call into the traverse function as well, but the
callback can't outlive its stack frame.
2014-12-13 10:34:42 +01:00
bors-servo
ea39b878ac
auto merge of #4356 : servo/servo/msgs, r=jdm
2014-12-12 17:30:47 -07:00
bors-servo
6362d060e1
auto merge of #4355 : servo/servo/devtools-title, r=metajack
...
Fixes #4167 .
2014-12-12 17:03:45 -07:00
Gilbert Röhrbein
31e40038cd
script_trask, handle_msgs: factored out handle_msg_from_devtools
2014-12-12 23:54:54 +01:00
Gilbert Röhrbein
1fc46471ff
script_trask, handle_msgs: factored out handle_msg_from_script
2014-12-12 23:54:52 +01:00
Gilbert Röhrbein
8da73afa06
script_trask, handle_msgs: factored out handle_msg_from_constellation
2014-12-12 23:51:14 +01:00
Gilbert Röhrbein
9b9f662732
script_task, handle_msgs: sort for pattern constructor
2014-12-12 23:37:42 +01:00
Greg Weng
a477893ab3
Return real page titles and URLs for devtools tab choices.
...
Fixes #4167 .
2014-12-12 22:38:55 +01:00
bors-servo
9e83f096a5
auto merge of #4354 : neojski/servo/getElementsByTagNameNS-filter-root, r=Ms2ger
...
This fixes #4349 .
2014-12-12 14:09:53 -07:00
Tomasz Kołodziejski
b30cdb8a5c
Follow-up to work done in #4304 .
...
all_elements should ignore root as well.
2014-12-12 10:39:21 -08:00
Tomasz Kołodziejski
5913ba983b
Don't include the root element when calling Element#getElementsByTagNameNS.
2014-12-12 10:07:41 -08:00
Nathan E. Egge
b0552cb98e
Sending key events through script task before processing them in the compositor.
...
Fixes #4163
2014-12-12 12:31:44 -05:00
Joseph Crail
c254d195ad
Fix spelling mistakes in comments.
2014-12-11 23:56:29 -05:00
bors-servo
a016f7b201
auto merge of #4332 : Ms2ger/servo/performance, r=jdm
2014-12-11 17:33:53 -07:00
bors-servo
7ce37636b1
auto merge of #4273 : wenderen/servo/multiple-line-textintput, r=Manishearth
...
#4258
2014-12-11 16:22:07 -07:00
bors-servo
2615be9bab
auto merge of #4189 : chmanchester/servo/rootlint, r=jdm
...
I think this matches the intent of the issue, I'm a rust/servo novice; any suggestions for improvements are welcome. Thanks!
2014-12-11 15:57:58 -07:00
Rohan Prinja
0c851d9a0c
some fixes for multiple-mode textinput
2014-12-11 23:40:57 +05:30
Ms2ger
e4dc6ca2ec
Pass the timing information to PerformanceTiming rather than exposing methods.
2014-12-11 18:41:18 +01:00
Ms2ger
949e7918e0
Reindent in should_move_clip_rect.
2014-12-11 11:26:33 +01:00
Ms2ger
205b4e3f39
Avoid some Option::unwrap calls in page.rs.
2014-12-11 11:26:23 +01:00
Patrick Walton
8b2aadc30b
ports/cef: Implement accelerated compositing for the CEF port.
2014-12-10 08:35:47 -08:00
Ms2ger
8fe798d439
Cleanup PageIterator::next.
2014-12-10 16:24:13 +01:00
Ms2ger
adc493ccce
Remove comment that hasn't been true since Document became a Node.
...
The panic was removed in 99a36cbeb6
.
2014-12-10 16:24:13 +01:00
Ms2ger
6fa39497b8
Cleanup Page::remove.
2014-12-10 16:24:12 +01:00
bors-servo
3a70a9fa6b
auto merge of #4305 : Ms2ger/servo/script_task, r=jdm
2014-12-09 12:16:07 -07:00
bors-servo
d2a67abea9
auto merge of #4108 : shinglyu/servo/blob, r=jdm
...
Let's build this incrementally. I implemented a `Blob` that can hold a `DOMString`, and has `size` attribute and `slice(...)` method. I'll finish the rest in later PRs.
2014-12-09 08:43:08 -07:00
Shing Lyu
f2885b8fc7
Issue #1820 - Improve the Blob implementation
2014-12-09 22:52:19 +08:00
Ms2ger
64b0a6b0b4
Reuse the final_url in ScriptTask::load.
...
In both the javascript and non-javascript url cases, final_url is set to the
same url as is stored by the Page.
2014-12-09 15:14:59 +01:00
Ms2ger
795327d5c4
Pass a borrowed Url to parse_html.
...
It does not need to take ownership, and I want to reuse final_url in the
caller.
2014-12-09 15:12:01 +01:00
Ms2ger
8838f2460e
Rename base_url to final_url in ScriptTask::load.
...
This seems like a clearer name, as it's used for more than just as a base url.
2014-12-09 15:05:50 +01:00
Emanuel Rylke
8ed6ace682
Don't include the root element when calling Element#getElementsByTagName
...
Fixes #4249
2014-12-09 13:41:14 +01:00
bors-servo
02955d39cc
auto merge of #4293 : Ms2ger/servo/script_task, r=Manishearth
2014-12-09 04:57:56 -07:00
Chris Manchester
d25bc49772
Return early and decline analysis when linting within unsafe functions for must_root analysis.
...
Removes a handful of whitelist annotations obsoleted by this change. fixes #3658
2014-12-09 02:10:39 -05:00
bors-servo
7d4ec33375
auto merge of #4298 : Manishearth/servo/zirak-link-attrs, r=Manishearth
...
Carried over from #4248
Critic review: https://critic.hoppipolla.co.uk/r/3392
2014-12-08 23:30:59 -07:00
Zirak
a586e05e83
Bound several link properties.
...
Specifically: href, rel, media, hreflang and type.
2014-12-09 11:38:51 +05:30
Manish Goregaokar
f221cb5178
Restrict size tests to 64 bit
2014-12-09 11:27:02 +05:30
Manish Goregaokar
16ffd543dd
Add unit test to freeze sizes of DOM structs
2014-12-09 11:26:58 +05:30
Ms2ger
0fc65d4088
Remove the url from the InputUrl variant.
...
This url is the pre-redirect url, which is not particularly meaningful, and it
is used only in a panic message.
2014-12-09 01:07:16 +01:00
Ms2ger
e76c3386ce
Move the load response into the HTMLInput enum.
...
It is None iff the parser input is an InputString variant, so it makes more
sense to pass it in the same enum.
2014-12-09 00:53:33 +01:00
Ms2ger
fbedf030d4
Combine two conditionals in ScriptTask::load.
...
Now that the code lives in the same function, I see no reason for them to
remain separate.
2014-12-09 00:53:33 +01:00
bors-servo
b64bb47e9d
auto merge of #4284 : ema-fox/servo/textinput_selection, r=jdm
2014-12-08 14:25:07 -07:00
bors-servo
368d6dc6bf
auto merge of #4280 : Ms2ger/servo/cleanup-node, r=jdm
2014-12-08 13:55:08 -07:00
bors-servo
feabaf34ac
auto merge of #4270 : ProgramFOX/servo/issue-4252, r=saneyuki
...
Resolves #4252
2014-12-08 13:28:12 -07:00
bors-servo
5c506f7a98
auto merge of #4194 : cgaebel/servo/incremental-reflow-fix, r=pcwalton
...
When inserting a node that was already dirtied, the dirtying logic
would short circuit: "This node is already dirty? Great! Then its
parents must be HAS_DIRTY_DESCENDANTS, too! Let's skip that step."
This isn't appropriate when nodes move around the tree. In that case,
the node may be marked HAS_CHANGED, but ancestors may not yet have
the HAS_DIRTY_DESCENDANTS flag set.
This patch adds a `content_and_heritage_changed` hook in the document,
to deal with these cases appropriately.
2014-12-08 12:28:14 -07:00
bors-servo
f18c18371d
auto merge of #4190 : mttr/servo/checked_pseudo_class, r=Manishearth
...
Relevant spec:
https://html.spec.whatwg.org/multipage/scripting.html#selector-checked
Also modifies HTMLInputElement::SetChecked to no longer modify its
checked content value, instead making use of its internal checkedness
state now that we can match `:checked` properly.
2014-12-08 12:01:51 -07:00
bors-servo
0b486b1210
auto merge of #4279 : saneyuki/servo/rename, r=jdm
...
#4275
* This changeset rename "render"/"rendering" to "paint"/"painting" under `components/`.
* This does not rename words which are used as general browser's working.
* So this doesn't change `reftest.rs`.
2014-12-08 10:28:10 -07:00