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
Bruno de Oliveira Abinader
48f0e12237
Added link to GitHub & Critic PR handling 101
...
TSIA.
2014-01-30 13:40:18 -05:00
bors-servo
3256cfb78c
auto merge of #1564 : pcwalton/servo/small-vector, r=larsbergstrom
...
12% improvement on style recalc for the rainbow page.
r? @larsbergstrom
2014-01-30 10:13:32 -08:00
bors-servo
572959c3e6
auto merge of #1583 : brunoabinader/servo/document-url, r=Ms2ger
...
Specs:
http://dom.spec.whatwg.org/#dom-document-url
http://dom.spec.whatwg.org/#dom-document-documenturi
This is a sub-task for #1428 .
2014-01-30 08:58:40 -08:00
Patrick Walton
61b030552e
layout: Small vector optimize CSS selector matching
2014-01-30 08:43:24 -08:00
Patrick Walton
beb9b9bd92
util: Implement a small vector type.
...
This will be upstreamed to the Rust library once it bakes.
2014-01-30 08:43:02 -08:00
bors-servo
74562b43f3
auto merge of #1580 : brunoabinader/servo/dom-exception, r=Ms2ger
...
Spec:
http://dom.spec.whatwg.org/#domexception
This is a subtask for #1542 .
2014-01-30 07:28:38 -08:00
Bruno de Oliveira Abinader
43416ef91f
Implement document.URL & document.documentURI
...
Specs:
http://dom.spec.whatwg.org/#dom-document-url
http://dom.spec.whatwg.org/#dom-document-documenturi
This is a sub-task for #1428 .
2014-01-30 10:41:24 -04:00
bors-servo
0777f211df
auto merge of #1567 : pcwalton/servo/quicksort-selector-matching, r=larsbergstrom
...
17% improvement in selector matching on the rainbow page.
r? @larsbergstrom
2014-01-30 04:01:44 -08:00
Patrick Walton
b27f4a8969
layout: Introduce a DOM leaf set as a prerequisite for parallel flow
...
construction.
This will be very slow until we have the concurrent hash table, but we
might as well get it in.
2014-01-29 21:05:50 -08:00
Patrick Walton
3764c3c49f
style: Quicksort rules to avoid allocation of temporary vectors.
...
17% improvement in selector matching on the rainbow page.
2014-01-29 20:43:33 -08:00
bors-servo
9f6ab8ed77
auto merge of #1589 : pcwalton/servo/stop-removing-flows, r=larsbergstrom
...
to be leaves.
60% improvement in flow tree construction time on the rainbow page.
r? @larsbergstrom
2014-01-29 15:09:52 -08:00
Patrick Walton
e579daefc2
layout: Stop adding flows to the leaf set that are obviously never going
...
to be leaves.
60% improvement in flow tree construction time on the rainbow page.
2014-01-29 15:01:26 -08:00
bors-servo
7e3075522d
auto merge of #1587 : pcwalton/servo/profile-damage, r=larsbergstrom
...
WebKit calls it) into one supercategory in the profiler.
r? @larsbergstrom
2014-01-29 12:28:39 -08:00
Patrick Walton
21656b874d
layout: Profile layout damage propagation and group "style recalc" (as
...
WebKit calls it) into one supercategory in the profiler
2014-01-29 11:41:22 -08:00
Bruno de Oliveira Abinader
0c6de1bb34
Basic skeleton for DOMException
...
Spec:
http://dom.spec.whatwg.org/#domexception
This is a subtask for #1542 .
2014-01-29 14:58:22 -04:00
bors-servo
6c63de1c03
auto merge of #1582 : saneyuki/servo/1569, r=Ms2ger
...
retry: #1581
this will fix #1569
2014-01-29 04:53:07 -08:00
Tetsuharu OHZEKI
c95bb6403c
Make Node::{remove, insert} take a descriptive enum for suppress_observers instead of a boolean.
2014-01-29 20:13:12 +09:00
bors-servo
e29247ce55
auto merge of #1562 : wowus/servo/master, r=metajack
...
Is there a central configuration module which I can query for max_redirects?
2014-01-28 19:20:48 -08:00
Clark Gaebel
015902f778
Added bound to number of HTTP redirects, and prevented redirect loops.
2014-01-28 21:38:00 -05:00
bors-servo
75acf1175a
auto merge of #1566 : pcwalton/servo/fewer-allocations, r=SimonSapin
...
hash.
31% win on selector matching.
r? @larsbergstrom
2014-01-27 16:59:18 -08:00
bors-servo
d47df0812f
auto merge of #1547 : deokjinkim/servo/fix_white_space, r=metajack
...
If html has empty line, it is not handled currently.
Because pending line is empty in such case, flushing current line doesn't care empty line.
For example, below html has two empty line(line 2 and line 4)
<div>
test1
test2
</div>
To handle empty line, added empty box to pending line.
2014-01-27 16:32:53 -08:00
bors-servo
e7aa20a36d
auto merge of #1574 : pcwalton/servo/cheat-before-after, r=SimonSapin
...
125% win on selector matching (!)
r? @SimonSapin
2014-01-27 16:06:10 -08:00
Deokjin Kim
765e1f2a36
Fix white-space property(pre)
...
If html has empty line, it is not handled currently.
Because pending line is empty in such case, flushing current line doesn't care empty line.
For example, below html has two empty line(line 2 and line 4)
<div>
test1
test2
</div>
To handle empty line, added empty box to pending line.
2014-01-28 09:04:28 +09:00
Patrick Walton
c6fed026ac
style: Stop allocating when lowercasing element names for lookup in the
...
hash.
31% win on selector matching.
2014-01-27 15:44:51 -08:00
Patrick Walton
8f2d83005b
style: Short-circuit the selector matching process if the map is empty.
...
125% win on selector matching (!)
2014-01-27 15:34:14 -08:00
bors-servo
78e0545918
auto merge of #1571 : pcwalton/servo/combine-cascading, r=metajack
...
Speeds up the cascade by 3x.
r? @metajack
2014-01-27 15:10:15 -08:00
Patrick Walton
9c3af574e5
layout: Perform cascading in parallel.
...
Speeds up the cascade by 3x.
2014-01-27 14:41:52 -08:00
bors-servo
fa02b82b88
auto merge of #1570 : larsbergstrom/servo/reftest_better, r=metajack
...
Previously, small errors were very hard to see because they would only have a value that was off by a few points from solid white. Now, they will show up vibrantly!
I considered reconstructing the pixels and using either black/white or a scaling "red" but in practice this gives good results on a wide variety of errors and has the bonus that if you've got chroma-power you can tell if there's an R, G, or B error :-)
r? @metajack
2014-01-27 13:46:59 -08:00
Lars Bergstrom
cb31b3cf6c
Change the values emitted for incorrect pixels to make small errors visible
2014-01-27 15:07:06 -06:00
bors-servo
ffa80ae46f
auto merge of #1559 : pcwalton/servo/parallel-selector-matching, r=metajack
...
10% speedup over what we had before.
r? @metajack
2014-01-27 12:49:14 -08:00
Patrick Walton
cb2e225b14
layout: Switch parallel selector matching over to using work stealing.
...
10% speedup over what we had before.
2014-01-27 12:44:54 -08:00
bors-servo
d944567b9a
auto merge of #1546 : ksh8281/servo/inline_add2, r=larsbergstrom
...
implement inline border.
it gives same result in "src/test/html/test_inline_border.html" with chrome,firefox
r? @pcwalton
2014-01-26 20:55:13 -08:00
patrick kim
aa57f82f71
disable ref test :(
2014-01-27 13:00:08 +09:00
patrick kim
b0d4093a86
add comment & add ref test
2014-01-27 12:45:23 +09:00
patrick kim
c2ced790ba
implement inline border
2014-01-27 12:45:23 +09:00
bors-servo
882cc0bf69
auto merge of #1565 : larsbergstrom/servo/ref-tests-enable, r=pcwalton
...
Ref tests should now be stable enough to put them back in the list of checked tests that we run at checkin. This will at least ensure ACID1 no longer breaks.
I had to disable three tests that have regressed since ref tests first became unstable. I will open separate issues for each of them if we agree to land this PR.
2014-01-26 18:40:17 -08:00
Lars Bergstrom
9a74cadc02
Enable ref tests on darwin
2014-01-26 20:34:13 -06:00
Lars Bergstrom
a7fcbd9d60
Disable 3 broken ref tests so that we can start blocking on check-ref again
2014-01-26 20:29:45 -06:00
bors-servo
1d0de1682d
auto merge of #1563 : pcwalton/servo/profile-cascade, r=larsbergstrom
...
It's slow.
r? @metajack
2014-01-26 17:13:06 -08:00
Patrick Walton
55ccfae1e8
layout: Profile the CSS cascade as well as selector matching.
...
It's slow.
2014-01-25 18:13:59 -08:00
bors-servo
edda06115a
auto merge of #1561 : SimonSapin/servo/refactor-namespace, r=pcwalton
...
This builds on top of #1560 (… which I realize now may confuse Critic)
This refactors Namespace to reduce the overall amount of copying and conversion. In particular, it makes parsed selectors contain Namespace enums rather than strings.
2014-01-25 13:19:02 -08:00
bors-servo
98a4623e4a
auto merge of #1560 : SimonSapin/servo/restore-1554, r=pcwalton
...
Lower-case attribute names when parsing selectors rather than when matching. This avoid one allocation in matching code.
Also do not lowercase names for *AttributeNS APIs. (Move lower-casing to callers.)
2014-01-25 12:49:04 -08:00
Simon Sapin
2782d1d07f
Do not copy the result of get_link()
2014-01-25 12:23:11 -08:00
Simon Sapin
5ae7aad6e2
Make Namespace::to_str() return a string.
2014-01-25 12:23:11 -08:00
Simon Sapin
e9ece24de9
Convert to Namespace during CSS parsing rather than selector matching.
2014-01-25 12:23:11 -08:00
Simon Sapin
fdafc3701f
Make get_attr() take a &Namespace rather than Option<~str>
2014-01-25 12:23:04 -08:00
Simon Sapin
624e2714d4
Move script::dom::namespace into util, in order to use it from style later.
2014-01-25 12:14:06 -08:00