Commit graph

4860 commits

Author SHA1 Message Date
bors-servo
ce877e4f5b auto merge of #2095 : zmike/servo/servo-lib, r=larsbergstrom
In pursuit of #441

r? @larsbergstrom
2014-04-12 11:43:06 -04:00
bors-servo
c27b31d9c9 auto merge of #2098 : Manishearth/servo/ref-noteq, r=metajack
See #2090

One reftest compares a green image to a white div. The other has green text being compared with normal text.

If necessary, I can add some absolute positioning ones.
2014-04-12 11:04:09 -04:00
Manish Goregaokar
07cf2d095d Add the second reftest (#2090) 2014-04-12 09:17:26 +05:30
Manish Goregaokar
50b5bd3beb A couple of != reftests (#2090) 2014-04-12 08:22:44 +05:30
bors-servo
b174a6439b auto merge of #2094 : Manishearth/servo/id-efficiency, r=Ms2ger
This improves the code written for #1822 to use a single linear traversal.

The current code uses a binary search with `CompareDocumentPosition()` for comparing element position, however this method internally calls `traverse_preorder()` (i.e. a linear traversal) so calling this on every pass is quite inefficient.
2014-04-11 17:04:09 -04:00
bors-servo
9d2a6b7824 auto merge of #2087 : Ms2ger/servo/vtable2, r=jdm
Fixes #1527. Does *not* include the code for #1528.

(Originally by @jdm in #1688 and #1866.)
2014-04-11 16:31:14 -04:00
bors-servo
257e1c0130 auto merge of #2071 : hyunjunekim/servo/try, r=larsbergstrom
If <span> element has pseudo style, draw pseudo element.
2014-04-11 16:04:17 -04:00
bors-servo
2fcba6ff81 auto merge of #2096 : larsbergstrom/servo/fix_fontconfig, r=jdm
Please don't r+ until https://github.com/mozilla-servo/rust-fontconfig/pull/12 is merged.

r? @SimonSapin @mbrubeck

or whomever.
2014-04-11 15:31:17 -04:00
Lars Bergstrom
9fa9959a93 Update fontconfig submodule version to fix linker order bug 2014-04-11 14:19:44 -05:00
Mike Blumenkrantz
b68fd73042 split servo build into library (non-android) for use in embedding 2014-04-11 14:15:42 -04:00
bors-servo
ceefbe2d05 auto merge of #2085 : lpy/servo/issue2079, r=jdm
see #2079
2014-04-11 12:49:19 -04:00
lpy
601480eaf2 Replace @s with Rc types.(fixes #2079) 2014-04-12 00:43:46 +08:00
hyunjunekim
a6066e8c03 Add a reftest for the pseudo element 2014-04-12 00:10:50 +09:00
Manish Goregaokar
9f617e9f0c Make register_named_element more efficient 2014-04-11 14:39:23 +05:30
bors-servo
0c4354a439 auto merge of #2093 : Ms2ger/servo/DOMObjectPointerType, r=jdm 2014-04-10 15:16:17 -04:00
bors-servo
55bac1900c auto merge of #2070 : larsbergstrom/servo/android_201404c, r=larsbergstrom,metajack
r? @metajack
2014-04-10 14:25:18 -04:00
Ms2ger
493227c938 Remove DOMObjectPointerType. 2014-04-10 20:19:32 +02:00
Lars Bergstrom
00e5f010d4 Update the configuration files to properly build rust. Revert rust-stb-image submodule misupdate. 2014-04-10 13:00:12 -05:00
aydin.kim
aa636218e1 fix android for rust update 2014-04-10 13:00:12 -05:00
Lars Bergstrom
ccb522a465 Android fixes for February Rust Upgrade 2014-04-10 13:00:12 -05:00
bors-servo
4683788600 auto merge of #2091 : Ms2ger/servo/GetCallableProperty, r=jdm 2014-04-10 13:58:18 -04:00
bors-servo
5d12dc805b auto merge of #2080 : mbrubeck/servo/2069-forget-tiles, r=larsbergstrom
This fixes a pixmap leak and task failure (#2069).
2014-04-10 13:25:23 -04:00
Ms2ger
d11316fa05 Make GetCallableProperty more rustic. 2014-04-10 19:21:17 +02:00
bors-servo
986664f527 auto merge of #2088 : Ms2ger/servo/global-ToJSValConvertible, r=jdm 2014-04-10 12:43:23 -04:00
bors-servo
fe1267e88e auto merge of #2086 : Ms2ger/servo/htmlelement-cast, r=jdm 2014-04-10 12:10:28 -04:00
bors-servo
2b12be6266 auto merge of #2084 : mbrubeck/servo/navigate-new-pipeline-fix, r=larsbergstrom
After clicking a link to load a new page, the new page content is never painted.  This is because the compositor is still sending render messages to old frame tree's pipeline, not the new one.

This patch fixes this by ensuring that the compositor's new root layer is attached to the correct pipeline. (Note: You will also need to apply #2080 if you want to test this without crashing.)
2014-04-10 11:43:32 -04:00
bors-servo
4cac445754 auto merge of #2020 : lpy/servo/issue2012, r=larsbergstrom
see #2012
2014-04-10 11:16:35 -04:00
Matt Brubeck
005b8937fa Use clear_all_tiles when deleting a sublayer 2014-04-10 07:46:55 -07:00
bors-servo
08f53acd09 auto merge of #2068 : mbrubeck/servo/1187-buffer-destroy, r=larsbergstrom
This fixes a potential pixmap leak and task failure when the LayerBuffer is dropped (#1187).

I wasn't able to reproduce the failure using the steps from #1187, but based on the stack trace I think this is the correct fix.  Alternately, would it make sense to `impl Drop for LayerBuffer`?
2014-04-10 09:55:38 -04:00
Ms2ger
6c32a7f05f Remove getWrapTemplateForType and simplify wrapForType. 2014-04-10 13:08:54 +02:00
Ms2ger
8c4a3aa387 Use ToJSValConvertible for all conversions to JSVal. 2014-04-10 12:09:18 +02:00
Ms2ger
a3d13c35a2 Remove the IElement trait. 2014-04-10 10:27:32 +02:00
Josh Matthews
6388dec996 Add overridable tree binding/unbinding behaviour. 2014-04-10 10:27:32 +02:00
Josh Matthews
f5d1907195 Integrate Element's after_set/remove behaviour into the virtual method hierarchy. 2014-04-10 10:27:32 +02:00
Josh Matthews
ca6cfb5bca Add support for trait-based virtual methods on Nodes, and use it for before_remove_attr and after_set_attr. 2014-04-10 10:27:28 +02:00
Ms2ger
0dfbfa0b07 Fix HTMLElementDerived::is_htmlelement to take non-HTML elements into account. 2014-04-10 10:06:14 +02:00
Matt Brubeck
3231f12708 Don't reuse an old pipeline for a new root layer
When navigating to a new URL, we need to make sure compositor messages go to
the new page's pipeline, not the previous one.
2014-04-09 20:09:08 -07:00
Matt Brubeck
9c3875ead5 Remove unused create_layer_group_for_pipeline 2014-04-09 20:09:08 -07:00
Ms2ger
ea2560ef20 Rename before_remove_attr and after_set_attr to allow reusing those names in the next commit. 2014-04-09 23:55:45 +02:00
Matt Brubeck
d6dec803fd Clear tiles before dropping CompositorLayer
This fixes a pixmap leak and task failure (#2069).
2014-04-09 11:43:35 -07:00
bors-servo
d7f450dbd7 auto merge of #2045 : Manishearth/servo/pub-struct-2044, r=SimonSapin
See #2044
2014-04-09 10:40:26 -04:00
bors-servo
69fbbbdf33 auto merge of #2076 : Ms2ger/servo/find_fragment_node, r=Ms2ger
This was part of @jdm's vtable branch, but I think it makes sense regardless of how we deal with that branch.
2014-04-09 09:28:19 -04:00
Josh Matthews
14b85e0e60 Make find_fragment_node a method of Page. 2014-04-09 15:20:17 +02:00
hyunjunekim
5c15f24308 inline pseudo element 2014-04-09 09:00:32 +09:00
Matt Brubeck
efb1ccb07e Destroy LayerBuffers before dropping them
This should fix a potential pixmap leak and task failure when the LayerBuffer
is dropped (#1187).
2014-04-08 14:34:36 -07:00
bors-servo
b9a7949ce4 auto merge of #2067 : saneyuki/servo/id, r=Ms2ger
Follow up #1917
(Derived from #2066)
2014-04-08 14:55:01 -04:00
bors-servo
165950d021 auto merge of #2060 : Ms2ger/servo/attributes-rewrite, r=jdm
There's more that I'd like to do, but this can land already.
2014-04-08 14:25:03 -04:00
Tetsuharu OHZEKI
25e6366efc Remove the needless comment for document.getElementById. 2014-04-09 03:20:47 +09:00
Ms2ger
ed18e4c948 Merge Attr::new_ns and Attr::new. 2014-04-08 20:17:15 +02:00
Ms2ger
d665ad5a17 Reimplement SetAttributeNS. 2014-04-08 20:17:15 +02:00