Patrick Walton
14bafb11be
style: Parse the legacy bgcolor
attribute per the HTML5 specification.
...
Additionally, this patch cleans up some miscellaneous formatting issues.
2014-12-15 17:41:44 -08:00
Patrick Walton
10f1ed5e31
style: Parse the legacy border
attribute per the legacy HTML specification.
...
Additionally, this patch cleans up some miscellaneous formatting issues
and refactors files in `layout/css/` somewhat to eliminate needless
levels of indirection. It also fixes our handling of presentational
hints that only apply if border is nonzero.
2014-12-15 17:41:37 -08:00
bors-servo
5f2684d2f8
auto merge of #3844 : pcwalton/servo/script-layout-synchronization, r=jdm
...
This fixes race conditions whereby layout and script could be running
simultaneously.
r? @jdm
cc @cgaebel
2014-12-15 15:31:21 -07:00
Patrick Walton
a200b139b6
script: Add some workarounds for image cache task races
2014-12-15 14:16:20 -08:00
Patrick Walton
d101c1dd91
script: Improve dirty propagation and fix script-layout synchronization.
...
This fixes race conditions whereby layout and script could be running
simultaneously.
2014-12-15 14:16:04 -08:00
Ms2ger
ba891e49f8
Correctly set the BlobType for File objects.
2014-12-15 10:45:45 +01:00
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
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
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
Ms2ger
e4dc6ca2ec
Pass the timing information to PerformanceTiming rather than exposing methods.
2014-12-11 18:41:18 +01:00
Patrick Walton
8b2aadc30b
ports/cef: Implement accelerated compositing for the CEF port.
2014-12-10 08:35:47 -08: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
Emanuel Rylke
8ed6ace682
Don't include the root element when calling Element#getElementsByTagName
...
Fixes #4249
2014-12-09 13:41:14 +01: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
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
ProgramFOX
6104d5105f
Implemented Document#inputEncoding
...
Resolves #4252
2014-12-08 18:22:29 +01:00
Matthew Rasmus
1b84bd22b8
Implements the :checked pseudo-class for inputs
...
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 08:40:15 -08:00
Ms2ger
e63a92956d
Cleanup Node::is_html_element_in_html_document.
2014-12-08 12:26:10 +01:00
Ms2ger
c009bdec4e
Cleanup Node::as_element.
2014-12-08 12:23:34 +01:00
Ms2ger
ba5a08c106
Cleanup Node::CloneNode.
2014-12-08 12:19:43 +01:00
Ms2ger
327b5d0ce5
Cleanup Node::Normalize.
2014-12-08 12:16:41 +01:00
Ms2ger
19e44362e2
Cleanup Node::ChildNodes.
2014-12-08 12:13:17 +01:00
Ms2ger
91c43ac18d
Cleanup Node::clone.
2014-12-08 12:09:58 +01:00
Ms2ger
1611b8d0a8
Cleanup Node::summarize.
2014-12-08 12:03:12 +01:00
Ms2ger
54c0601950
Cleanup Node::query_selector.
2014-12-08 11:58:59 +01:00
bors-servo
bdb3a2538b
auto merge of #4257 : johnathan79717/servo/4008, r=jdm
...
This is a fix for issue #4008 .
2014-12-08 01:55:08 -07:00
Tetsuharu OHZEKI
71257e6604
Rename CanvasRenderTask -> CanvasPaintTask.
2014-12-08 14:01:07 +09:00
Tetsuharu OHZEKI
062854b164
Rename canvas_render_task -> canvas_paint_task
2014-12-08 11:46:43 +09:00
bors-servo
c68e2af0a7
auto merge of #4263 : Ms2ger/servo/or_init, r=jdm
2014-12-06 08:01:06 -07:00
Ms2ger
f0ef1f97ad
Use or_init where appropriate.
2014-12-06 15:59:17 +01:00
bors-servo
b805e74fef
auto merge of #4265 : ProgramFOX/servo/issue-4251, r=Ms2ger
...
Resolves #4251
2014-12-06 07:31:01 -07:00
bors-servo
19c69b1625
auto merge of #4002 : Manishearth/servo/activation, r=jdm
...
Still need to impl `Activatable` on all activatable elements. I'll probably push those changes to this PR, however they can be made separately as well.
2014-12-06 03:55:04 -07:00
Manish Goregaokar
5511e02a78
Add Comparable trait to js.rs; fixups
2014-12-06 02:51:52 -08:00
Ms2ger
6322b0bfab
Clarify the panic in get_uint_attribute.
2014-12-06 10:19:05 +01:00