Patrick Walton
30b7f5d0ad
support: Update submodules.
2014-04-03 14:50:57 -07:00
Patrick Walton
42170c7585
test: Add many reftests for parts of Acid2.
2014-04-03 14:50:57 -07:00
Hyun June Kim
4c53a21aa3
layout: Implement pseudo-elements.
2014-04-03 14:50:57 -07:00
Junyoung Cho
901c4483b2
layout: Implement enough of automatic table layout to pass Acid2.
2014-04-03 14:50:57 -07:00
Patrick Walton
10aed5bc1f
layout: Rewrite the margin collapse code to work with negative margins.
2014-04-03 14:50:57 -07:00
Patrick Walton
392afdb014
layout: Implement -servo-minimum-line-height
2014-04-03 14:50:57 -07:00
Patrick Walton
98bf325e76
layout: Support multiple boxes per node; don't store fixed/absolute
...
descendant links separately
2014-04-03 14:50:56 -07:00
Patrick Walton
4fd950eae0
layout: Update parallel.rs
to use OpaqueNodeMethods
2014-04-03 14:50:56 -07:00
Patrick Walton
e6665a2f14
layout: Take padding into account for inline boxes
2014-04-03 14:50:56 -07:00
Patrick Walton
9874d0f9d3
layout: Take min-height
and max-height
into account
2014-04-03 14:50:56 -07:00
Patrick Walton
cd9d824c21
servo: Implement stacking contexts and allow multiple layers per
...
pipeline. This handles fixed positioning mostly correctly.
2014-04-03 14:50:56 -07:00
Patrick Walton
f8e3e50db5
util: Add a rect_contains_point
utility method
2014-04-03 14:50:07 -07:00
Patrick Walton
dae4166eb3
util: Add some utility methods to SmallVec
.
2014-04-03 14:50:07 -07:00
Patrick Walton
1b04165f67
style: Parse background-position
and background-attachment
.
2014-04-03 14:50:07 -07:00
Patrick Walton
d136d7a7d7
style: Implement -servo-minimum-line-height
, a derived property from
...
`line-height`, and the infrastructure needed for derived properties to
work.
Eventually I would like this to be used for text decorations, like
WebKit does with `-webkit-text-decorations-in-effect`.
2014-04-03 14:50:07 -07:00
Patrick Walton
e6adc54df2
style: Parse min-height
and max-height
2014-04-03 14:50:06 -07:00
bors-servo
897c679be2
auto merge of #2031 : saneyuki/servo/2027, r=jdm
...
Fix #2027
@jdm
This change will decrease the generics for `Document::create_collection`.
Do you have any good idea to avoid this?
Or don't we have to consider it now?
2014-04-03 12:01:49 -04:00
Tetsuharu OHZEKI
faea175505
Document::create_collection's callback should return a boolean instead of a node. ( #2027 )
2014-04-04 00:51:03 +09:00
bors-servo
e3bf08ea53
auto merge of #2022 : lpy/servo/issue2019, r=jdm
...
see #2019
2014-04-01 15:31:50 -04:00
lpy
d4d6fcb5f0
Get rid of match statements in layout queries in script_task
2014-04-02 01:28:44 +08:00
lpy
ac5a634082
Get rid of match statements in Layout queries.( fixes #2019 )
2014-04-02 00:55:33 +08:00
bors-servo
1c8ad2ce47
auto merge of #2021 : SimonSapin/servo/patch-1, r=jdm
...
Remove a comment that was about a macro that was removed in a7ef1cd35e
2014-04-01 11:16:51 -04:00
Simon Sapin
b1e629b951
Remove an obsolete comment
...
Remove a comment that was about a macro that was removed in a7ef1cd35e
2014-04-01 15:38:07 +01:00
bors-servo
3eac31394c
auto merge of #2002 : mrobinson/servo/issue-1477, r=jdm
...
A HashMap allows easily looking up a timer and canceling it in
Window.ClearTimeout.
Fixes #1477 .
2014-03-31 19:07:50 -04:00
Martin Robinson
1a8a3cc271
Store Window.active_timers in a HashMap
...
A HashMap allows easily looking up a timer and canceling it in
Window.ClearTimeout.
Fixes #1477 .
2014-03-31 15:07:50 -07:00
bors-servo
83c2d92397
auto merge of #1995 : SimonSapin/servo/mako-py34, r=metajack
...
On a system where `which python` is Python 3.4.x, the build failed with a very unhelpful error message. The root cause is that Mako 0.8.1 was too old.
2014-03-31 11:53:05 -04:00
Simon Sapin
329f3735e6
Build: Use the same Python for Mako as for DOM codegen.
...
This defaults to Python 2.x and makes the previous commit useless,
but upgrading Mako doesn’t hurt anyway.
2014-03-31 16:26:32 +01:00
Simon Sapin
f48492e5a5
Build: Ugrade Mako to 0.9.1, to support Python 3.4
2014-03-31 16:16:25 +01:00
Simon Sapin
cde9a0caea
Build: Do not swallow Mako template errors in src/components/style/properties.rs.mako
2014-03-31 16:16:23 +01:00
bors-servo
a15f3ee0da
auto merge of #1983 : brunoabinader/servo/bogus-title-when-cloning, r=Ms2ger
...
Document's title is now properly copied when cloning.
Closes #1640 .
2014-03-26 12:37:33 -04:00
bors-servo
0204745595
auto merge of #1952 : brunoabinader/servo/htmlcollection-live, r=Ms2ger
...
Closes #1662 .
PS: Cached collections will be next step.
2014-03-26 11:46:47 -04:00
bors-servo
3d4e157faa
auto merge of #1932 : brunoabinader/servo/document-import-adopt-node, r=Ms2ger
...
Specs:
http://dom.spec.whatwg.org/#dom-document-importnode
http://dom.spec.whatwg.org/#dom-document-adoptnode
2014-03-26 10:55:40 -04:00
Bruno de Oliveira Abinader
0efdb47c4c
Remove FIXME from Node.cloneNode content tests
...
Document's title is now properly copied when cloning.
Closes #1640 .
2014-03-26 10:15:53 -04:00
Bruno de Oliveira Abinader
10433648d3
Added Document.importNode content tests
2014-03-26 09:49:08 -04:00
Bruno de Oliveira Abinader
2ca3d9b138
Added Document.adoptNode content tests
2014-03-26 09:49:08 -04:00
Bruno de Oliveira Abinader
b05e3666e4
Cleaned up recursive code in Node.clone
2014-03-26 09:49:08 -04:00
Bruno de Oliveira Abinader
990545c310
Implemented Node.adoptNode
...
Spec:
http://dom.spec.whatwg.org/#dom-document-adoptnode
2014-03-26 09:49:07 -04:00
Bruno de Oliveira Abinader
8a457a2caa
Implemented Document.importNode
...
Spec:
http://dom.spec.whatwg.org/#dom-document-importnode
2014-03-26 09:49:07 -04:00
Bruno de Oliveira Abinader
3a8a0927e2
HTMLCollection::create returns live collections by default
2014-03-26 09:12:38 -04:00
Bruno de Oliveira Abinader
a7f8d754d2
Updated HTMLCollection content test
2014-03-26 09:12:10 -04:00
Bruno de Oliveira Abinader
7f5b3690f3
Support live HTMLCollection for DataListElement.options
2014-03-26 09:12:08 -04:00
Bruno de Oliveira Abinader
9038f21026
Support live HTMLCollection for FieldSet.elements
2014-03-26 09:11:13 -04:00
Bruno de Oliveira Abinader
e95aa0febd
Support live HTMLCollection for Document collections
...
The following interface methods now return live collections:
Document.{images,embeds,plugins,links,forms,scripts,anchors,applets}
2014-03-26 09:11:13 -04:00
Bruno de Oliveira Abinader
0bc59eb4de
Implemented HTMLCollection::create_live
2014-03-26 09:01:58 -04:00
Bruno de Oliveira Abinader
904e464824
Added CollectionFilter, CollectionTypeId
2014-03-26 08:59:59 -04:00
bors-servo
f34a64049a
auto merge of #1978 : huonw/servo/less-transmute, r=Ms2ger
...
These can either be done by implicit `&` -> `*` coercions, explicit `*`
-> `*` casts, or an explicit `&*x` `*` -> `&` re-borrow (which is still
unsafe, but significantly more controlled compared to a `transmute`).
2014-03-25 14:46:37 -04:00
bors-servo
a8e1059f44
auto merge of #1977 : mbrubeck/servo/task-name, r=jdm
...
Now with 100% less breaking everything. (An earlier version of this patch in #1948 switched WorkQueue from native tasks to green tasks, which I missed in testing because we don't spawn new layout threads by default on 1- or 2-core machines.)
2014-03-25 14:13:41 -04:00
bors-servo
fd5e5cd18b
auto merge of #1973 : june0cho/servo/table_rebase, r=larsbergstrom,metajack
...
This is a rebase of #1548 on recent master.
There have been many changes since #1548 is first uploaded, so I'm creating new PR.
This PR includes:
- construction of table-* flows (table-wrapper, table-caption, table, table-rowgroup, table-row, table-cell)
- fixed-layout table calculation
- a part of anonymous table object implementation
[CSS 2.1, 17.2.1](http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes ) (Step 1-1, 1-2, Step 2)
2014-03-25 13:40:47 -04:00
bors-servo
11639c34e6
auto merge of #1958 : mbrubeck/servo/macro-crate, r=kmcallister
...
This moves the bitfield! macro into a new shared `macros` crate as suggested in #1882 .
2014-03-25 12:37:49 -04:00
Matt Brubeck
00ca300305
Set a name for WorkQueue tasks ( fixes #1830 )
2014-03-25 07:33:02 -07:00