bors-servo
da14203f91
auto merge of #1454 : deokjinkim/servo/font_style, r=jdm
...
Add oblique style to pattern to find proper font.
2014-01-03 06:52:30 -08:00
bors-servo
f4d7e7d339
auto merge of #1453 : SimonSapin/servo/dead-code, r=larsbergstrom
...
Turns out it wasn’t actually used anymore.
2014-01-03 06:31:34 -08:00
bors-servo
2fa4699274
auto merge of #1449 : zmike/servo/master, r=larsbergstrom
...
this fixes issue #522 (maybe?) by not cleaning/resetting submodules which are dirty. it does not block completion of configure.
2014-01-03 06:04:36 -08:00
Deokjin Kim
ddcbb3f038
Support oblique(font-style) for linux and android
...
Add oblique style to pattern to find proper font.
2014-01-03 21:06:55 +09:00
bors-servo
528d362d09
auto merge of #1446 : sammykim/servo/load_url, r=SimonSapin
...
1. We must remove trailing whitespace. It makes crash.
2014-01-03 02:25:38 -08:00
Simon Sapin
facac01524
Remove a dead function.
...
Turns out it wasn’t actually used anymore.
2014-01-03 10:13:08 +00:00
bors-servo
7203f78cb0
auto merge of #1451 : ksh8281/servo/fix_unit_of_clientrect, r=jdm
...
this pr fixes #1076
2014-01-03 01:46:37 -08:00
bors-servo
cbc82e8361
auto merge of #1452 : deokjinkim/servo/font_weight, r=jdm
...
Currently, hard coded value(FontWeight300) is used for font-weight property.
To display it properly, use parsed CSS font-weight value.
2014-01-03 00:40:43 -08:00
patrick kim
e0a04fff46
fix unit of clientrect &
...
add width,height test in src/test/html/content/test_getBoundingClientRect.html
2014-01-03 17:25:46 +09:00
Deokjin Kim
5756680d90
Fix font-weight propery
...
Currently, hard coded value(FontWeight300) is used for font-weight property.
To display it properly, use parsed CSS font-weight value.
2014-01-03 17:18:09 +09:00
Sangeun Kim
586de9ba8e
Remove trailing whitespace with URL in make_url at once
2014-01-03 16:13:29 +09:00
discomfitor
12cee06388
make configure not clobber modified submodules at all
...
this fixes issue #522 (maybe?) by not cleaning/resetting submodules which are dirty. it does not block completion of configure.
2014-01-02 19:17:32 -05:00
bors-servo
2b487ed3e9
auto merge of #1439 : Ms2ger/servo/reflection-methods, r=jdm
2014-01-01 13:19:16 -08:00
Ms2ger
886ab020d8
Use string reflection methods for HTMLIFrameElement.sandbox.
2014-01-01 17:24:56 +01: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 AbstractNode
s 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