Commit graph

3324 commits

Author SHA1 Message Date
Patrick Walton
18a2050a64 layout: Port parallel layout over to a generic "work queue"
infrastructure.

The work queue accepts abstract generic "work units", which in this case
are layout operations. The same speedups have been observed.
2014-01-24 20:50:30 -08:00
bors-servo
86c29d253a auto merge of #1554 : pcwalton/servo/faster-attribute-comparison, r=SimonSapin
15% improvement in selector matching performance on the rainbow page.

r? @SimonSapin
2014-01-24 17:22:15 -08:00
Patrick Walton
1b786fe414 script: Avoid an allocation when getting attribute data.
15% improvement in selector matching performance on the rainbow page.
2014-01-24 16:58:07 -08:00
bors-servo
6ee9f8a982 auto merge of #1552 : jdm/servo/movegen, r=larsbergstrom
The WebIDL move wasn't quite correct. Now the dependencies and output directory are all correct.
2014-01-24 16:50:41 -08:00
Josh Matthews
97d2ce98c4 Fix DOM binding generation to use proper output directory. 2014-01-24 15:40:19 -08:00
bors-servo
192097315a auto merge of #1550 : jdm/servo/logicalrange, r=metajack
...tor index failures.
2014-01-24 14:11:45 -08:00
Josh Matthews
2ee9d2be83 Use logical clump offset into newline position list. Fixes wikipedia vector index failures. 2014-01-24 14:02:13 -08:00
bors-servo
6e4d96a7f6 auto merge of #1540 : pcwalton/servo/destroy-flows, r=larsbergstrom
Fixes a crash on http://en.wikipedia.org/wiki/South_China_Sea

It plants a destructor bomb on flows so that this can't happen again.

r? @larsbergstrom
2014-01-24 10:41:25 -08:00
Patrick Walton
5cc744d25d layout: Destroy flows properly under display: none.
Fixes a crash on http://en.wikipedia.org/wiki/South_China_Sea

It plants a destructor bomb on flows so that this can't happen again.
2014-01-24 10:37:46 -08:00
bors-servo
9de5cc5197 auto merge of #1544 : larsbergstrom/servo/improve-reftesting, r=metajack
r? @metajack
2014-01-24 00:19:01 -08:00
bors-servo
4885c18dee auto merge of #1543 : metajack/servo/local-submodules, r=jdm
For some reason the webconvforge organization is the cause of many API
failures. They seem to be sporadic but no one has any idea why it
happens.
2014-01-23 17:28:33 -08:00
bors-servo
b28d08b4bc auto merge of #1529 : ibnc/servo/display_list_debug, r=metajack 2014-01-23 16:55:26 -08:00
bors-servo
a8d785cbbc auto merge of #1541 : teosz/servo/master, r=metajack 2014-01-23 16:31:22 -08:00
bors-servo
6edb293de0 auto merge of #1539 : aydinkim/servo/misc, r=metajack
fix android build error on certain environment
2014-01-23 16:03:48 -08:00
Lars Bergstrom
1daad45dca The compositor needs to not process a Paint message after it has started
shutdown or it will crash creating a native layer. This happened during
reftests using -o to emit a PNG of the backbuffer and then exiting early.
2014-01-23 14:39:12 -08:00
Lars Bergstrom
28fa9b0069 Make ref tests check the pixels for differences and emit a difference file. 2014-01-23 14:38:34 -08:00
bors-servo
26fc108924 auto merge of #1507 : deokjinkim/servo/white_space, r=metajack
In order to support line-break by new-line character,
Fist, calculate new-line character's position.(fn flush_clump_to_list)
Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
2014-01-23 13:50:44 -08:00
Jack Moffitt
7bc142c64a Move servo-android-glue submodule to mozilla-servo.
For some reason the webconvforge organization is the cause of many API
failures. They seem to be sporadic but no one has any idea why it
happens.
2014-01-23 13:33:35 -07:00
Isabelle Carter
5663ca1eef Dumping display list levels to rust log 2014-01-23 12:06:54 -08:00
=
74301f71e6 Use &str instead ~str in make_url 2014-01-23 21:56:59 +02:00
Deokjin Kim
3d941413da Implement white-space property(pre)
In order to support line-break by new-line character,
Fist, calculate new-line character's position.(fn flush_clump_to_list)
Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
2014-01-23 13:21:59 +09:00
aydin.kim
ea24d8792f fix option order of make servo 2014-01-23 10:34:33 +09:00
bors-servo
6662fb0c32 auto merge of #1506 : ksh8281/servo/inline_add, r=pcwalton
add inline stuff & color support
it makes same result with firefox in "http://www.w3.org/Style/CSS/Test/CSS1/current/sec543.htm"
makes line-height property can inherit
2014-01-22 17:13:03 -08:00
patrick kim
4133982050 RareFlowFlags -> ~RareFlowFlags 2014-01-23 10:10:38 +09:00
patrick kim
baad6e3963 add RareFlowFlags 2014-01-23 09:51:08 +09:00
patrick kim
dac1176d15 fix line-height property 2014-01-23 09:51:08 +09:00
patrick kim
815d222e00 change position of setting inline_data for "<span>asdf<div>b</div></span>" case 2014-01-23 09:51:08 +09:00
patrick kim
b0380ae96a fix text-decoration property in layout 2014-01-23 09:51:08 +09:00
bors-servo
57d91c4b58 auto merge of #1520 : ksh8281/servo/img_s, r=pcwalton
it makes same result with firefix, chrome in http://www.w3.org/Style/CSS/Test/CSS1/current/sec5523.htm
2014-01-22 16:49:06 -08:00
bors-servo
d11e431887 auto merge of #1533 : metajack/servo/unsafe-get-attr, r=jdm
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
2014-01-22 16:28:20 -08:00
bors-servo
11187c0eea auto merge of #1493 : pcwalton/servo/parallel-layout-new, r=pcwalton,metajack
r? @metajack
2014-01-22 16:04:08 -08:00
Jack Moffitt
c443bcbfff Change get_attr() to get_attr_val_for_layout().
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
2014-01-22 17:02:21 -07:00
Patrick Walton
54f0f17f83 layout: Implement parallel reflow for the bubble-widths and
assign-heights phases.

This uses the new work-stealing deque. By default, 3/4 of a thread per
logical CPU is used. This can be tuned with the `-y` flag.

I measured a 65% reflow speedup on `perf-rainbow.html` and a 247% reflow
speedup on `http://en.wikipedia.org/wiki/South_China_Sea` on a 4-core
HyperThreaded Core i7. However, numbers were fairly volatile, especially
for the latter.
2014-01-22 15:59:21 -08:00
bors-servo
1ee5224486 auto merge of #1531 : ibnc/servo/git_ignore_vim, r=larsbergstrom
For me and fellow vim users.
2014-01-22 13:38:11 -08:00
Isabelle Carter
a10751370d added vim tmp files to git ignore 2014-01-22 13:24:56 -08:00
bors-servo
4fcb48da64 auto merge of #1530 : larsbergstrom/servo/android_fixups, r=metajack
These two fixes are required for Android. We need to generate a toplevel crate map because it is used by both debugging and the libuv stuff. We also need to manually link against rustuv because we cannot dynamically inject it on Android.

r? @metajack
2014-01-22 13:13:26 -08:00
Lars Bergstrom
960ed1ec9d Add the Rust crate map to the servo library and dependency on libuv 2014-01-22 11:48:04 -08:00
bors-servo
2dc4359937 auto merge of #1525 : brunoabinader/servo/document-contenttype, r=Ms2ger
Spec:
http://dom.spec.whatwg.org/#dom-document-contenttype

This is a subtask for #1428 and #1510.
2014-01-22 05:37:13 -08:00
patrick kim
5ce3bae160 add assign_height in box_ 2014-01-22 14:29:54 +09:00
Bruno de Oliveira Abinader
1067da7df8 Basic support for Document::contentType
Spec:
http://dom.spec.whatwg.org/#dom-document-contenttype

This is a subtask for #1428, #1510 and #1526.
2014-01-21 12:48:09 -04:00
patrick kim
ef122f8fbf add comment & add ref test 2014-01-21 11:27:22 +09:00
bors-servo
539cf58f73 auto merge of #1523 : brunoabinader/servo/domimpl-createhtmldocument, r=Ms2ger
Spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument

Closes #1510.
2014-01-20 11:25:08 -08:00
Bruno de Oliveira Abinader
a58838e14b Implement DOMImplementation::createHTMLDocument
Spec:
http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument

Closes #1510.
2014-01-20 15:20:23 -04:00
bors-servo
733162e217 auto merge of #1508 : Ms2ger/servo/following-siblings-iter, r=jdm 2014-01-20 05:05:35 -08:00
bors-servo
a71c1125ee auto merge of #690 : recrack/servo/webidl, r=jdm
FIX #648

PR again #662, need to fix Makefile.in

I really want to use `$(Q)touch $@`. but, it is difficult to me.
So i will fix them next time. Can i ? I need to study Makefile.
2014-01-20 04:34:12 -08:00
patrick kim
8912df8a5b some refactor & fix image size compute 2014-01-20 18:46:26 +09:00
Youngmin Yoo
0523a7dfe9 Move webidl files to dom/webidl 2014-01-20 12:56:23 +09:00
Youngmin Yoo
897e037db3 Update Makefile.in for move webidls 2014-01-20 12:56:23 +09:00
bors-servo
f5ee8270f4 auto merge of #1518 : brunoabinader/servo/remove-document-title, r=Ms2ger
There is no current use for this variable.

This is a subtask for #1428.
2014-01-17 06:07:33 -08:00
Bruno de Oliveira Abinader
cdf29d4394 Remove Document's unused 'title'
There is no current use for this variable.

This is a subtask for #1428.
2014-01-17 10:00:50 -04:00