Commit graph

6826 commits

Author SHA1 Message Date
Tetsuharu OHZEKI
36d8dc5a42 Use DOMRefCell for Window. 2014-10-22 10:01:01 +09:00
Tetsuharu OHZEKI
7e7c610837 Use DOMRefCell for Node.
Altough LayoutDataRef is touched, we don't use DOMRefCell in it becasuse
it's expected to manipulate in other task.
2014-10-22 10:01:01 +09:00
Tetsuharu OHZEKI
d8c4588f0e Use DOMRefCell for HTMLInputElement. 2014-10-22 10:01:00 +09:00
Tetsuharu OHZEKI
4c72727a56 Use DOMRefCell for HTMLImageElement. 2014-10-22 10:01:00 +09:00
Tetsuharu OHZEKI
f33e09d8f8 Use DOMRefCell for FormData. 2014-10-22 10:01:00 +09:00
Tetsuharu OHZEKI
752c821e43 Use DOMRefCell for EventTarget. 2014-10-22 10:01:00 +09:00
Tetsuharu OHZEKI
1aefa5423a Use DOMRefCell for Event. 2014-10-22 10:01:00 +09:00
Tetsuharu OHZEKI
ab2d3bc1bb Use DOMRefCell for Document. 2014-10-22 10:01:00 +09:00
bors-servo
f5ad89f927 auto merge of #3747 : mrobinson/servo/validate-display-list, r=pcwalton
When this option is enabled, the layout task will print an error when
display list items draw outside their owning Flow's position rect. This
will make it easier to detect layout errors before they break rendering.

This is a command-line option for the moment, because we violate this
rule quite a bit still. Once all bugs causing this are fixed, we can be
more aggressive about enabling the option.
2014-10-21 17:51:43 -06:00
bors-servo
3936d14260 auto merge of #3746 : mrobinson/servo/debug-fragment-borders, r=pcwalton
This is quite a bit cleaner than abusing the rust debug functionality.
If we start collecting too many debugging options in the servo
executable we could opt to organize them into a single option.

Fixes #2263.
2014-10-21 17:06:40 -06:00
Jack Moffitt
70299a71f9 Merge pull request #3764 from dherman/dherman-build-instructions
added cmake to dependencies in build instructions
2014-10-21 17:05:51 -06:00
Dave Herman
3b8f07ccff added cmake to dependencies in build instructions 2014-10-21 16:01:49 -07:00
bors-servo
4795e9cf0b auto merge of #3730 : glennw/servo/taskpool, r=pcwalton
r? @pcwalton - Is this the kind of thing you were thinking of in terms of task queue?
2014-10-21 15:15:42 -06:00
bors-servo
2bc4ffe5cf auto merge of #3744 : cgaebel/servo/efficient-preorder-traversal, r=pcwalton
This also tackles some nearby FIXMEs. `traverse_preorder` is used in a LOT of
DOM functions..

r? @pcwalton
2014-10-21 13:09:38 -06:00
bors-servo
018146b1a8 auto merge of #3728 : cgaebel/servo/dump-flow-tree-with-println, r=mrobinson
r? @mrobinson
2014-10-21 11:27:40 -06:00
Clark Gaebel
a5bb2f299f more efficient preorder DOM traversals 2014-10-21 10:01:15 -07:00
bors-servo
156ca98236 auto merge of #3722 : pcwalton/servo/flow-construction-overhaul, r=glennw
This is a grab bag of performance improvements that significantly improve style recalculation, layout, and painting on a few static pages.

Let me know if you'd like me to split this PR up.

r? @glennw
2014-10-21 10:06:37 -06:00
Martin Robinson
2d5168a1e5 Add an option to show debug fragment borders
This is quite a bit cleaner than abusing the rust debug functionality.
If we start collecting too many debugging options in the servo
executable we could opt to organize them into a single option.

Fixes #2263.
2014-10-21 08:49:25 -07:00
Martin Robinson
adecdbd4cf Add an option to validate display list items
When this option is enabled, the layout task will print an error when
display list items draw outside their owning Flow's position rect. This
will make it easier to detect layout errors before they break rendering.

This is a command-line option for the moment, because we violate this
rule quite a bit still. Once all bugs causing this are fixed, we can be
more aggressive about enabling the option.
2014-10-21 08:47:40 -07:00
bors-servo
983d180a43 auto merge of #3754 : Ms2ger/servo/enable-script-tests, r=Manishearth 2014-10-21 06:39:38 -06:00
Ms2ger
7cc8ff93ec Enable Opera's script scheduling tests. 2014-10-21 14:08:19 +02:00
bors-servo
1690a40bf4 auto merge of #3750 : glennw/servo/fix-3703, r=pcwalton
r? @pcwalton @metajack
2014-10-21 02:12:38 -06:00
Patrick Walton
cd42c28f5b gfx: Don't needlessly push and pop clip rects all the time.
15% painting improvement on CNN.
2014-10-20 22:05:38 -07:00
Patrick Walton
79f84a62fe gfx: Make fonts that fail to match hit the cache too.
50%-100% layout perf improvement on CNN.
2014-10-20 22:05:38 -07:00
Patrick Walton
e9a61c1ccf layout: Don't destroy the flow tree when resizing the window 2014-10-20 22:05:38 -07:00
Patrick Walton
bb6f557276 layout: Rewrite text and inline fragment handling during flow
construction to avoid cloning and moving flows so much.

Besides amounting to a 5%-10% win on a page with a lot of text, this
simplifies and refactors the text layout code.
2014-10-20 22:05:38 -07:00
Glenn Watson
cf3d9dffd1 Update rust-core-text, handle empty font collections. Fixes #3703. 2014-10-21 14:54:37 +10:00
bors-servo
d8cb901f6a auto merge of #3745 : glennw/servo/update-cssparser, r=jdm
r? @jdm
2014-10-20 19:00:37 -06:00
Glenn Watson
298fc08e6f Update rust-cssparser to revision required by cssom branch. 2014-10-21 08:53:32 +10:00
bors-servo
f6941b35e3 auto merge of #3715 : cgaebel/servo/fix-table-percentage-width, r=pcwalton
This also enables incremental reflow by default. \o/

r? @pcwalton
2014-10-20 12:54:34 -06:00
Clark Gaebel
174975061e Dump the flow tree with println, instead of error 2014-10-20 11:14:03 -07:00
Clark Gaebel
81bd3cbd9d Fixes the table_percentage_width_a.html reftest with incremental reflow turned on. 2014-10-20 11:13:31 -07:00
Glenn Watson
26636474a9 Introduce a basic shared task pool, and use it for image decoding. 2014-10-20 13:34:14 +10:00
bors-servo
852378209b auto merge of #3729 : glennw/servo/opts-cleanup, r=mbrubeck 2014-10-19 21:33:25 -06:00
Glenn Watson
076495db94 Use opts as a global, to avoid cloning and passing the struct all over the code. 2014-10-20 10:48:47 +10:00
bors-servo
a983debaf1 auto merge of #3711 : glennw/servo/cleanup-opts, r=pcwalton
r? @pcwalton @metajack
2014-10-19 18:00:30 -06:00
Glenn Watson
b816550a17 Remove render backend option as it doesn't work and confuses people. 2014-10-20 07:39:36 +10:00
bors-servo
c123f75558 auto merge of #3712 : Ms2ger/servo/parser-crash, r=Manishearth
This was regressed by the html5ever landing.
2014-10-19 06:03:27 -06:00
Ms2ger
b9d8533760 Don't crash on invalid utf-8 in the HTML parser.
This was regressed by the html5ever landing.
2014-10-19 13:18:25 +02:00
bors-servo
65856dd00a auto merge of #3720 : gilles-leblanc/servo/fix-grammatical-errors, r=jdm
This corrects and improves the dom/bindings/DESIGN.md document and also
corrects a grammatical error in a tests/reftest.rs message.
2014-10-18 00:24:25 -06:00
Gilles Leblanc
8b727e3680 Edits dom/bindings/DESIGN.md
This corrects and improves the dom/bindings/DESIGN.md document and also
corrects a grammatical error in a tests/reftest.rs message.
2014-10-17 23:12:58 -04:00
bors-servo
3906cecd16 auto merge of #3719 : mrobinson/servo/flow-dump, r=pcwalton
The flow tree is currently dumped for debugging purposes early on in
the flow process, so many values are still zero. If we wait to dump it
until later, the output will more accurately reflect the real flow tree.
2014-10-17 19:51:24 -06:00
Martin Robinson
e7c79906bd Wait to dump flow tree until flow is complete
The flow tree is currently dumped for debugging purposes early on in
the flow process, so many values are still zero. If we wait to dump it
until later, the output will more accurately reflect the real flow tree.
2014-10-17 18:48:09 -07:00
bors-servo
b86344b697 auto merge of #3706 : cgaebel/servo/fix-image-dynamic-remove, r=pcwalton
This also adds some extra debugging infrastructure which I found useful tracking
this bug down. A regression in the br reftests is also uncovered by this patch,
which I'll work on fixing next.

EDIT: nevermind. no regression, I just tested that before a rebase.

r? @pcwalton
2014-10-17 12:15:23 -06:00
Clark Gaebel
8496c056e7 Fixed the inline_element_border_a reftest with incremental layout turned on. 2014-10-17 11:11:14 -07:00
Clark Gaebel
2faf5b270f Fix image_dynamic_remove reftest with incremental layout turned out
This also adds some extra debugging infrastructure which I found useful tracking
this bug down. A regression in the br reftests is also uncovered by this patch,
which I'll work on fixing next.

r? @pcwalton
2014-10-17 11:11:14 -07:00
bors-servo
a1efb79cf4 auto merge of #3700 : Ms2ger/servo/update-wptrunner, r=jdm 2014-10-17 06:33:19 -06:00
Ms2ger
da50824655 Update wptrunner to pick up crash-detection fixes. 2014-10-17 13:37:23 +02:00
bors-servo
9ee87b9cea auto merge of #3709 : glennw/servo/update-mozjs, r=jdm 2014-10-16 20:24:19 -06:00
bors-servo
de2178bbc0 auto merge of #3710 : gilles-leblanc/servo/issue-3677, r=jdm
...of a boolean

Fixes #3677
2014-10-16 19:45:22 -06:00