bors-servo
e4f33eb9b9
auto merge of #2114 : Ms2ger/servo/unused-obj-local-arg, r=jdm
...
This removes the local variable and prefixes the argument with an underscore.
Neither is used right now.
2014-04-15 12:22:44 -04:00
bors-servo
613e8dfaf2
auto merge of #2113 : Ms2ger/servo/DefineDOMInterface, r=jdm
...
This moves the assertion from its only caller into the function itself, to
clarify that we don't intent to deal with any failure here.
2014-04-15 11:52:28 -04:00
Ms2ger
e4305fe20e
Remove unused variable 'obj' from binding functions.
...
This removes the local variable and prefixes the argument with an underscore.
Neither is used right now.
2014-04-15 17:37:54 +02:00
Ms2ger
dc11464933
Remove the return value from DefineDOMInterface.
...
This moves the assertion from its only caller into the function itself, to
clarify that we don't intent to deal with any failure here.
2014-04-15 17:32:10 +02:00
bors-servo
6720b8110a
auto merge of #2106 : mbrubeck/servo/1959-vtable-followup, r=jdm
...
Follow-up from #1984 . r? @jdm
2014-04-14 17:01:11 -04:00
Matt Brubeck
28a013cfc5
Move child_inserted into VirtualMethods.
...
Follow-up from #1984 .
2014-04-14 13:39:11 -07:00
bors-servo
18b5453e09
auto merge of #1984 : mbrubeck/servo/1959-parser-style, r=jdm
...
This is a partial fix for #1959 . This commit only addresses inline `<style>` elements. Next I will need to move `<link rel="stylesheet">` handling into shared code, but I wanted to get some early feedback on this piece first.
2014-04-14 14:22:09 -04:00
Matt Brubeck
8c794c6739
Move inline stylesheet parsing out of HTML parser.
...
Instead, use shared code to parse stylesheet content when it is inserted,
whether during parsing or dynamically by script.
Based on work by sanools in #1350 .
2014-04-14 11:14:07 -07:00
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