Commit graph

4860 commits

Author SHA1 Message Date
aydin.kim
b4943c00b5 update submodules 2013-12-31 09:59:02 +09:00
aydin.kim
32afea3717 update glut_windowing for language change 2013-12-31 09:59:02 +09:00
aydin.kim
16b56df45d Servo-Android App packaging works 2013-12-31 09:58:55 +09:00
aydin.kim
3fe12748e0 add rust-egl to submodule 2013-12-30 09:58:45 +09:00
aydin.kim
318d06f38b modify way to call main on android 2013-12-30 09:58:03 +09:00
aydin.kim
230bfeb0cd teporarily rollback of rust(because of uv error, we can not enter into amain. io errors are happened) 2013-12-30 09:58:03 +09:00
aydin.kim
8d85f71573 add android graphic surface layer using EGL extensions 2013-12-30 09:58:03 +09:00
aydin.kim
a90d12eaee fix build error on android(libuv 3.0) 2013-12-30 09:58:03 +09:00
bors-servo
be8ed32562 auto merge of #1441 : metajack/servo/unrustpkg, r=metajack,me 2013-12-26 23:01:11 -08:00
Jack Moffitt
0c62b99559 Build with make instead of rustpkg. 2013-12-26 23:57:58 -07:00
Ms2ger
6e6d45ca26 Introduce methods to simplify implementing reflecting attributes. 2013-12-24 10:24:35 +01:00
bors-servo
cb336a1831 auto merge of #1438 : Ms2ger/servo/cleanup-get_attribute, r=jdm
Passing these around as strings is an anti-pattern, IMO.
2013-12-23 10:49:05 -08:00
Ms2ger
95913d1fed Pass a Namespace to Element::get_attr. 2013-12-23 13:03:52 +01:00
Ms2ger
e64ee3557e Pass a Namespace to Element::get_attribute. 2013-12-23 12:21:18 +01:00
bors-servo
acdc0e1afa auto merge of #1436 : SimonSapin/servo/font-size-em, r=kmcallister
Font-based units in the font-size property refer to the font-size of the parent, not itself.
2013-12-20 15:31:06 -08:00
Simon Sapin
7049f2b165 Add a test for percentages in font-size 2013-12-20 17:01:28 +01:00
bors-servo
34746fe974 auto merge of #1431 : brunoabinader/servo/document-body, r=jdm
Implement Document's 'body' attribute (getter and setter). Proper
implementation of setter requires Node::ReplaceChild(), which is
currently a stub and will be done on a later step.

This patch is for:
https://github.com/mozilla/servo/issues/1428
2013-12-20 07:28:07 -08:00
Bruno de Oliveira Abinader
ce434dfb3e Implement Document's 'body' attribute
Implement Document's 'body' attribute (getter and setter). Proper
implementation of setter requires Node::ReplaceChild(), which is
currently a stub and will be done on a later step.

This patch is for:
https://github.com/mozilla/servo/issues/1428
2013-12-20 10:58:03 -04:00
Simon Sapin
2c179cdce3 Fix #1435: em units in font-size
Font-based units in the font-size property refer to the font-size
of the parent, not itself.
2013-12-20 13:01:13 +01:00
bors-servo
824c7ac613 auto merge of #1424 : pcwalton/servo/harden-layout, r=pcwalton
This changeset gets rid of the `FooView` phantom type in favor of a more brute force approach that just whitelists methods that layout is allowed to call. The set is surprisingly small now that layout isn't going to the DOM for much.

If this approach turns out not to scale, we can do something fancier, but I'd rather just have it be safe and secure first and then refactor later for programmer happiness.

r? @kmcallister
2013-12-17 18:16:05 -08:00
Patrick Walton
436b1e891d script: Eliminate the phantom type in Node, as it is no longer needed
for enforcing layout memory safety.
2013-12-17 18:07:41 -08:00
Patrick Walton
8f886e599e layout: Stop exposing raw Element types to layout as well.
This should make layout memory-safe as is, though we will need to do
more stuff for incremental reflow and parallelism.
2013-12-17 18:07:41 -08:00
Patrick Walton
9e2b63ddd3 layout: Move the LayoutNode wrapper from script into layout. 2013-12-17 18:07:41 -08:00
Patrick Walton
c506e52c7c layout: Add a lifetime to LayoutNode to prevent layout from stuffing
them into evil places.
2013-12-17 18:07:41 -08:00
Patrick Walton
ee9873bdb5 script: Harden layout a bit more by mostly prohibiting it from seeing
`AbstractNode` at all.

It can still see it by calling `with_element` for now, although that
needs to be fixed.
2013-12-17 18:07:12 -08:00
Patrick Walton
be69a503fe script: Eliminate the phantom type in favor of just whitelisting methods
that layout can safely call.

This is simpler. Currently, the set of methods is not safe, but I plan
to lock it down more soon.
2013-12-17 18:07:12 -08:00
bors-servo
da4cff034b auto merge of #1429 : pradeep90/servo/master, r=pcwalton
The problems that were caused because of Yellow River seem to be fixed.

(See #1319).
2013-12-17 17:13:07 -08:00
S Pradeep Kumar
f9c7c485ea Re-enable parallel selector matching.
The problems that were caused because of Yellow River seem to be fixed.

(See #1319).
2013-12-18 09:55:28 +09:00
bors-servo
d4fcbf5e1d auto merge of #1425 : saneyuki/servo/compositor, r=metajack
Related: #1351.
2013-12-17 14:56:24 -08:00
bors-servo
e4495453c8 auto merge of #1422 : pcwalton/servo/less-generic-trees, r=metajack
r? @metajack
2013-12-17 13:49:17 -08:00
Patrick Walton
199ca33b72 script: Make trees less generic 2013-12-17 13:46:14 -08:00
bors-servo
44a8b0987c auto merge of #1427 : brunoabinader/servo/is-in-doc, r=jdm
Added a flags variable inside Node to represent boolean flags, with
is_in_doc being the first of them. It is updated whenever a node is
appended or removed from a parent.

This patch is for:
https://github.com/mozilla/servo/issues/1030
2013-12-17 12:41:10 -08:00
Bruno de Oliveira Abinader
cfb73ed123 Make Node::is_in_doc O(1)
Added a flags variable inside Node to represent boolean flags, with
is_in_doc being the first of them. It is updated whenever a node is
appended or removed from a parent.

This patch is for:
https://github.com/mozilla/servo/issues/1030
2013-12-17 16:32:43 -04:00
bors-servo
0e14745762 auto merge of #1426 : pcwalton/servo/opaque-node-range, r=larsbergstrom
These were stored in inline flows. This was caught by my WIP changes to
harden layout (yay for Rust!)

r? @larsbergstrom
2013-12-17 10:01:21 -08:00
Patrick Walton
423f5b8540 layout: Make NodeRange use OpaqueNode for memory safety.
These were stored in inline flows. This was caught by my WIP changes to
harden layout (yay for Rust!)
2013-12-17 09:54:28 -08:00
bors-servo
45c092cea4 auto merge of #1377 : SimonSapin/servo/encoding, r=kmcallister
Depends on https://github.com/mozilla-servo/rust-cssparser/pull/33 being merged.

Also (unrelated) pass around a base URL for stylesheets.

Adds a new dependency:
Upstream: https://github.com/lifthrasiir/rust-encoding
Servo’s fork: https://github.com/mozilla-servo/rust-encoding

As of this writing, upstream’s master branch targets Rust 0.8, and its rust-0.9-pre branch targets Rust master. Servo uses a Rust version in-between those. I pushed a rust-servo branch to our fork that backports from rust-0.9-pre, and also included some changes that have yet to be merged in upstream pull requests.
2013-12-17 09:04:28 -08:00
Simon Sapin
c4c332b234 Remove the bootstrap.css test. It’s not actually useful. 2013-12-17 17:55:42 +01:00
Tetsuharu OHZEKI
369c5b8329 Rename compositor files. 2013-12-17 20:44:58 +09:00
Tetsuharu OHZEKI
45b297bd0b Rename main/compositing/mod.rs to main/compositing/compositor_task.rs. 2013-12-17 20:20:24 +09:00
Tetsuharu OHZEKI
56ba7fc343 Introduce 'NullCompositor'. 2013-12-17 20:06:05 +09:00
Tetsuharu OHZEKI
513ff0259a Remove the needless comment. 2013-12-17 19:53:53 +09:00
bors-servo
ad7f3a95d4 auto merge of #1410 : pcwalton/servo/opaque-node, r=pcwalton
This shuts off all layout access to the DOM after flow tree construction, which will allow us to run script concurrently with layout during reflow and display list construction—even without the COW DOM. It also gets us closer to making `AbstractNode` noncopyable, which is important for safety because the JS GC will not trace layout.

r? @kmcallister
2013-12-16 15:25:12 -08:00
Patrick Walton
89af9017ef layout: Replace AbstractNodes in layout with OpaqueNode, preventing
DOM access during reflow.
2013-12-16 15:17:15 -08:00
Patrick Walton
550c370c4f layout: Change a couple of Box::new calls that accessed the nodes into
`Box::transform`.
2013-12-16 15:02:15 -08:00
Patrick Walton
b39861bf34 layout: Stop going to the DOM for vertical align font sizing. 2013-12-16 15:02:15 -08:00
Patrick Walton
5b685bc1bd layout: Stop going to the DOM for text alignment.
Verified against the existing text alignment reftests.
2013-12-16 15:02:15 -08:00
Patrick Walton
6be8482eef layout: Stop going to the DOM to guess width. 2013-12-16 15:02:15 -08:00
bors-servo
9aeb1fb475 auto merge of #1420 : saneyuki/servo/compositor, r=pcwalton
This change compositor code to objective, short scope, reducing closure functions. It will increase maintainability.

Related: #1351.
2013-12-16 15:01:17 -08:00
Tetsuharu OHZEKI
cba47ba740 Introduce 'IOCompositor' to clean up compositor code. 2013-12-17 04:34:15 +09:00
Tetsuharu OHZEKI
8487c02a39 Pass parameters directly to 'run_compositor()'. 2013-12-17 03:45:10 +09:00