Commit graph

3429 commits

Author SHA1 Message Date
bors-servo
ae6af1c0d1 auto merge of #1622 : brunoabinader/servo/document-createprocessinginstruction, r=Ms2ger
PR #1620 adds ProcessingInstruction DOM interface.

Spec:
http://dom.spec.whatwg.org/#dom-document-createprocessinginstruction

This is a sub-task for #1428.
2014-02-06 15:16:43 -05:00
Bruno de Oliveira Abinader
ac8c659d2b Implement document.createProcessingInstruction
Spec:
http://dom.spec.whatwg.org/#dom-document-createprocessinginstruction

This is a sub-task for #1428.
2014-02-06 16:11:31 -04:00
bors-servo
799e0ace78 auto merge of #1620 : brunoabinader/servo/dom-processinginstruction, r=Ms2ger
Spec:
http://dom.spec.whatwg.org/#interface-processinginstruction

Closes #1619.
2014-02-06 13:46:58 -05:00
Bruno de Oliveira Abinader
aa4b5bb948 Implement ProcessingInstruction DOM interface
Spec:
http://dom.spec.whatwg.org/#interface-processinginstruction

Closes #1619.
2014-02-06 14:41:55 -04:00
bors-servo
5a7d22c437 auto merge of #1630 : pcwalton/servo/short-circuit-whitespace, r=larsbergstrom
be needed.

33% win in flow construction on the rainbow page.

r? @larsbergstrom
2014-02-06 12:37:55 -05:00
Patrick Walton
18c025a8ed layout: Lazily create boxes for whitespace, speculating that they won't
be needed.

33% win in flow construction on the rainbow page.
2014-02-06 09:34:14 -08:00
bors-servo
017eb81bfb auto merge of #1604 : brunoabinader/servo/document-characterset, r=Ms2ger
Spec:
http://dom.spec.whatwg.org/#dom-document-characterset

This is a sub-task for #1428.
2014-02-06 07:16:54 -05:00
Bruno de Oliveira Abinader
a6c897e445 Implement document.characterSet
Spec:
http://dom.spec.whatwg.org/#dom-document-characterset

This is a sub-task for #1428.
2014-02-06 07:46:24 -04:00
bors-servo
17bc467b83 auto merge of #1626 : kmcallister/servo/flowlist, r=pcwalton
r? @pcwalton

Some points of concern:

* Is this really memory-safe? Is there a way to access a stale `Rawlink` that doesn't exist in the normal `DList` code?
* Is it okay to coerce both `~Flow` and `&Flow` to `(uint, uint)` (or the moral equivalent) and compare them?  Will a given `Flow` always have the same (obj, vtable) regardless of whether it's obtained through `~Flow` or `&Flow`?
2014-02-05 22:19:43 -05:00
Keegan McAllister
78d2118f47 Eliminate the extra indirection of DList<~Flow> 2014-02-05 14:42:32 -08:00
bors-servo
1dbc73ea1c auto merge of #1615 : pcwalton/servo/fewer-memmoves, r=larsbergstrom
5% perf win, and a net loss in lines of code.

r? @larsbergstrom
2014-02-05 14:43:47 -05:00
bors-servo
820291bcb7 auto merge of #1623 : larsbergstrom/servo/inline_border_reftest, r=metajack
r? @metajack

These are all commits you've previously reviewed, but without the image_border change madness. We're seeing some intermittent reftest failures, so I'd like to separately land these.
2014-02-05 13:37:54 -05:00
bors-servo
8165703e72 auto merge of #1621 : abustany/servo/fix-insert-before, r=Ms2ger
Closes issue #1572
2014-02-05 12:40:55 -05:00
Adrien Bustany
6443318347 tests: Add missing finish() and a title in insertBefore content test 2014-02-05 18:35:46 +01:00
Lars Bergstrom
11f261471c Update to rust-png with fix for truncation 2014-02-05 11:27:08 -06:00
Lars Bergstrom
0c6b381bbb Use synchronous image loading for ref test baseline writing 2014-02-05 11:27:08 -06:00
Lars Bergstrom
308df9e9ef Give up and set the initial size to be the same as the default size for reftests 2014-02-05 11:27:08 -06:00
Adrien Bustany
2b541a9a13 Add a test file for insertBefore 2014-02-05 16:27:55 +01:00
Adrien Bustany
2254a9e923 script: Pass the correct parent node to pre_insert in insertBefore
Closes #1572.
2014-02-05 16:27:22 +01:00
Patrick Walton
d34ebf521d layout: Refactor flow construction to move around large structs less.
5% perf win, and a net loss in lines of code.
2014-02-04 23:09:14 -08:00
bors-servo
48e9b8f752 auto merge of #1613 : ksh8281/servo/pos_rel, r=larsbergstrom
implement position:relative

this pr implement #792
it gives same result with firefox in "src/test/ref/position_relative_a.html"
r? @larsbergstrom
2014-02-04 16:43:33 -08:00
patrick kim
a90c2e3a26 implement position:relative 2014-02-05 09:39:44 +09:00
bors-servo
7bfa185dca auto merge of #1606 : Ms2ger/servo/unused-import, r=jdm 2014-02-04 15:22:38 -08:00
bors-servo
5b93bc7b21 auto merge of #1578 : pradeep90/servo/stacking-context, r=larsbergstrom,larsbergstrom
For ScannedTextBox and ImageBox, the ClipDisplayItem's child_list is
currently always empty.

ClipDisplayItem is used to implement overflow hidden and should only be
created for block containers, as per
http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow
2014-02-04 14:52:39 -08:00
S Pradeep Kumar
35a869d3d6 Remove unnecessary ClipDisplayItems in box_.rs
For ScannedTextBox and ImageBox, the ClipDisplayItem's child_list is
currently always empty.

ClipDisplayItem is used to implement overflow hidden and should only be
created for block containers, as per
http://www.w3.org/TR/CSS2/visufx.html#propdef-overflow

Take care of the case when a BlockFlow has no children display items -
like an ImageBox with "display: block".
2014-02-04 10:04:25 +09:00
S Pradeep Kumar
73d0ceac54 Add more documentation for layout.
+ Annotate functions with CSS Reference sections.
+ Clean up comments and whitespace.
2014-02-03 10:40:48 +09:00
Ms2ger
5de886b31d Remove duplicate imports from render_task.rs. 2014-02-01 10:16:44 +01:00
bors-servo
301a057da6 auto merge of #1605 : pcwalton/servo/harden-layout-more, r=metajack
Closes #1584.

r? @metajack
2014-01-31 18:22:36 -08:00
Patrick Walton
17eea6bb45 layout: Enforce that flow construction is thread-safe.
Closes #1584.
2014-01-31 17:54:13 -08:00
bors-servo
584c9718a7 auto merge of #1603 : xiongmao86/servo/master, r=larsbergstrom
I failed at make check, and find the problem in check.mk
2014-01-31 06:19:20 -08:00
bors-servo
1bf44289b1 auto merge of #1599 : brunoabinader/servo/document-compatmode, r=Ms2ger
Spec:
http://dom.spec.whatwg.org/#dom-document-compatmode

This is a sub-task for #1428.
2014-01-31 01:22:18 -08:00
xiongmao86
d5dbac88a5 Failed to link -lpng while make reftest is fixed. 2014-01-31 17:16:26 +08:00
bors-servo
e2e848c6ad auto merge of #1600 : pcwalton/servo/use-concurrent-hash-map, r=larsbergstrom
64% improvement in style recalc.

r? @larsbergstrom
2014-01-30 16:28:18 -08:00
bors-servo
31442fe856 auto merge of #1598 : pcwalton/servo/sequential-mirrors-parallel, r=larsbergstrom
in the parallel path.

r? @larsbergstrom
2014-01-30 16:01:24 -08:00
Patrick Walton
939f1a28a3 layout: Consolidate passes in the sequential path that were consolidated
in the parallel path.
2014-01-30 15:25:25 -08:00
bors-servo
9352e1db00 auto merge of #1579 : ibnc/servo/multiple_display_lists, r=larsbergstrom
Fixes: #1538

Still needs to be rebased.
2014-01-30 15:22:33 -08:00
Bruno de Oliveira Abinader
56572a2814 Implement document.compatMode
Spec:
http://dom.spec.whatwg.org/#dom-document-compatmode

This is a sub-task for #1428.
2014-01-30 19:12:19 -04:00
Patrick Walton
a8e35fbeac layout: Use the concurrent hash map for the leaf sets.
64% improvement in style recalc.
2014-01-30 15:11:35 -08:00
Isabelle Carter
0892fada74 Multiple display list support 2014-01-30 17:11:17 -06:00
bors-servo
0dd37d9cd3 auto merge of #1592 : pcwalton/servo/concurrent-hash-map, r=larsbergstrom
This will be used for leaf sets and interned strings.

r? @larsbergstrom
2014-01-30 14:43:18 -08:00
Patrick Walton
8690c8f87f util: Implement a Doug Lea-style concurrent hash table.
This will be used for leaf sets and interned strings.
2014-01-30 14:34:16 -08:00
bors-servo
34746359f0 auto merge of #1590 : pcwalton/servo/thread-safe-flow-construction, r=metajack
non-element children during the cascade.

Fetching them from the parent isn't thread-safe.

r? @metajack
2014-01-30 14:04:18 -08:00
bors-servo
ad2d1e9d87 auto merge of #1585 : pcwalton/servo/parallel-aux-init, r=metajack
Brings aux initialization time down to essentially zero (!)

r? @metajack
2014-01-30 13:40:28 -08:00
Patrick Walton
94ab4f5086 layout: Perform aux initialization in parallel.
Brings aux initialization time down to essentially zero (!)
2014-01-30 13:13:56 -08:00
Patrick Walton
0e20ec02c5 layout: Make box building thread safe by pushing down styles into
non-element children during the cascade.

Fetching them from the parent isn't thread-safe.

Adds a test for anonymous block box inheritance.
2014-01-30 13:09:01 -08:00
bors-servo
e9a0c8184f auto merge of #1597 : larsbergstrom/servo/add_page_loaded, r=pcwalton
Add a LoadComplete message so that script informs the constellation, which can then inform the compositor (and anyone else, later) about the completion of loading a page. This is important for ref tests, which should not emit a PNG until load has completed, even if we perform a composite before then.

Note that we must *also* wait for the `ready_state` to indicate that additionally layout has completed any associated reflow with the page, otherwise we could get the `LoadComplete` while the final reflow is still in progress and thus would write out the `n-1`'th reflow result.

r? @pcwalton
2014-01-30 12:49:28 -08:00
bors-servo
6c2e48f04d auto merge of #1593 : pcwalton/servo/dom-leaf-set, r=metajack
construction.

This will be very slow until we have the concurrent hash table, but we
might as well get it in.

r? @metajack
2014-01-30 12:10:35 -08:00
Patrick Walton
e94b3d140c update per comment 2014-01-30 12:07:35 -08:00
Lars Bergstrom
f41c39b3dd Add a LoadComplete message so that script informs the constellation,
which can then inform the compositor (and anyone else, later) about
the completion of loading a page. This is important for ref tests,
which should not emit a PNG until load has completed, even if we
perform a composite before then.
2014-01-30 13:48:22 -06:00
bors-servo
60b8d47b0e auto merge of #1595 : brunoabinader/servo/patch-1, r=larsbergstrom
TSIA.
2014-01-30 10:43:33 -08:00