Commit graph

6939 commits

Author SHA1 Message Date
Tetsuharu OHZEKI
bf22a473fa Use DOMRefCell for TimerManager. 2014-10-22 10:01:01 +09:00
Tetsuharu OHZEKI
71b4143d32 Use DOMRefCell for XMLHttpRequest. 2014-10-22 10:01:01 +09:00
Tetsuharu OHZEKI
6d089a87d5 Use DOMRefCell for URLSearchParams. 2014-10-22 10:01:01 +09:00
Tetsuharu OHZEKI
38ddddd1ca Use DOMRefCell for ServoHTMLParser. 2014-10-22 10:01:01 +09:00
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
9e48010c8f auto merge of #3748 : mrobinson/servo/trimmer-flow-tree-output, r=mbrubeck
Logical geometry is complicated, so the string formatted output is
verbose. This means that flow tree dumps often go well beyond the
edge of the terminal screen. With a simple notation, we can shorten the
output and make it slightly easier to read. This notation also makes it
more similar to the formatted output of Rect, Point2D, and Size2D.
2014-10-21 19:00:37 -06:00
Simon Sapin
325536ea27 Merge pull request #3767 from pcwalton/readme-header
readme: Embiggen the name of the project
2014-10-22 09:59:00 +09:00
Tetsuharu OHZEKI
d530e8def9 Remove the help text for render backend option. follow up #3711. 2014-10-22 09:58:58 +09:00
Patrick Walton
50781c54ed readme: Embiggen the name of the project 2014-10-21 17:55:42 -07: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
Clark Gaebel
b31f9e0188 properly incrementally set block size 2014-10-21 14:26:22 -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
Patrick Walton
32e34663cd gfx: Switch the default to CPU painting.
We've discussed this some and I think there's consensus to do it as a
pragmatic decision for now. CPU painting is more stable, especially with
buggy drivers, and faster (because we aren't caching the necessary
OpenGL objects yet and possibly for other reasons), so it provides a
better "out of the box" experience for newcomers to Servo who don't know
to pass the `-c` option. This patch continues to reftest both Skia and
Skia-GL out of a desire to keep options open. Skia-GL remains a
first-class citizen.
2014-10-21 11:13:21 -07: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
Fabrice Desré
38ccbe61ae Update toml.py to upstream 1069d2449760525535ca77514a92e9237ee0deaf 2014-10-20 22:20:15 -07: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
Patrick Walton
d08dfc0bcf gfx: Update rust-azure to pick up arcs, gradients, and subpixel text 2014-10-20 21:36:28 -07:00
Martin Robinson
29303c0636 Improve logical geometry formatting
Logical geometry is complicated, so the string formatted output is
verbose. This means that flow tree dumps often go well beyond the
edge of the terminal screen. With a simple notation, we can shorten the
output and make it slightly easier to read. This notation also makes it
more similar to the formatted output of Rect, Point2D, and Size2D.
2014-10-20 18:04:48 -07: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