Commit graph

3647 commits

Author SHA1 Message Date
Adenilson Cavalcanti
adaa6435ed Following suggestion in the merge request, reuse the parameter passed to the
function that has the application name (so in future, if the browser no longer
is named 'servo', the code will continue to work fine).

Signed-off-by: Adenilson Cavalcanti <a.cavalcanti@sisa.samsung.com>
2013-11-18 12:52:03 -08:00
bors-servo
736a258c26 auto merge of #1271 : pcwalton/servo/incremental-reflow, r=larsbergstrom
This replaces flow construction with a strict bottom-up tree traversal,
allowing for parallelism. Each step of the traversal creates a flow or
a `ConstructionItem`, similar to how Gecko works. {ib} splits are
handled by not creating `InlineFlow`s until the containing block is
reached.

This should be able to be incrementalized by storing the `Flow` from
layout to layout, and performing fixups during flow construction
and/or wiping containing blocks in a previous pass.

r? @larsbergstrom
2013-11-18 11:54:00 -08:00
Patrick Walton
155befe10d Rewrite flow construction to be incrementalizable and parallelizable.
This replaces flow construction with a strict bottom-up tree traversal,
allowing for parallelism. Each step of the traversal creates a flow or
a `ConstructionItem`, similar to how Gecko works. {ib} splits are
handled by not creating `InlineFlow`s until the containing block is
reached.

This should be able to be incrementalized by storing the `Flow` from
layout to layout, and performing fixups during flow construction
and/or wiping containing blocks in a previous pass.
2013-11-18 11:24:11 -08:00
bors-servo
01667ef22b auto merge of #1261 : recrack/servo/add_overflow_testfile, r=pcwalton
Thanks @metajack @ksh8281, @jaeminMoon
2013-11-18 11:17:10 -08:00
bors-servo
37f9427b6c auto merge of #1278 : saneyuki/servo/rm_box, r=pcwalton 2013-11-18 10:18:02 -08:00
Tetsuharu OHZEKI
bce462a1d5 Integrate 'BoxModel' into 'RenderBoxBase'. (#1257) 2013-11-18 22:43:34 +09:00
Adenilson Cavalcanti
b2adac0cf3 Implemeting help message for servo browser app using groups::opts module.
Signed-off-by: Adenilson Cavalcanti <a.cavalcanti@sisa.samsung.com>
2013-11-18 03:22:46 -08:00
bors-servo
426d18ffb1 auto merge of #1219 : ksh8281/servo/impl_window_self, r=jdm
in order to Implement window.self
#868
2013-11-17 19:19:24 -08:00
bors-servo
c5ecc0da39 auto merge of #1273 : sammykim/servo/issue-1197, r=jdm
Fix #1197
2013-11-17 18:55:31 -08:00
Sangeun Kim
120284d186 Fix use of display().to_str in find_tests 2013-11-18 11:50:48 +09:00
bors-servo
9a7ded729c auto merge of #1266 : Ms2ger/servo/double-root, r=jdm
This removes the duplicate html element.
2013-11-17 06:29:33 -08:00
Ms2ger
dc6dbc63af Make the HTML parser parse into the document rather than an element.
This removes the duplicate html element.
2013-11-17 13:58:24 +01:00
bors-servo
800c2b3c0f auto merge of #1267 : evilpie/servo/blob, r=jdm
I was going to add the Constructor overload, but that requires implementing that fallthrough case in CGCase, which I didn't feel like doing. At least we can compile the dict now.
2013-11-16 14:43:20 -08:00
Tom Schuster
586dd6aed6 Add some more Blob methods/types 2013-11-15 17:56:11 +01:00
bors-servo
8880419a76 auto merge of #1250 : Ms2ger/servo/event-new, r=jdm 2013-11-15 07:34:25 -08:00
june0cho
7b49ea33c9 Add acid2 test case. 2013-11-15 17:55:39 +09:00
Youngmin Yoo
f037d8c046 Add CSS overflow property(hidden) test file 2013-11-15 13:23:33 +09:00
Jack Moffitt
0cc6962540 Update mac platform submodules. 2013-11-14 18:59:36 -07:00
bors-servo
e98ddef9bb auto merge of #1229 : june0cho/servo/fix_582, r=metajack
...this is not implemented. With @sonwow
@brson
2013-11-14 16:37:17 -08:00
bors-servo
0df8c2a34f auto merge of #1259 : Ms2ger/servo/get-attr, r=jdm 2013-11-14 15:46:25 -08:00
bors-servo
7e41e86007 auto merge of #1256 : kmcallister/servo/configure, r=metajack
This isn't a full fix for #522 / #835 but it prevents the unrecoverable loss of work without changing the behavior of configure generally.

If configure drops committed local work, it can be recovered from the reflog.
2013-11-14 15:01:38 -08:00
Ms2ger
d4a48995a2 Remove type_id arguments from Event::new and UIEvent::new. 2013-11-14 21:10:23 +01:00
Ms2ger
871d2f796c Remove an unused lifetime parameter from Element::get_attribute. 2013-11-14 19:49:36 +01:00
bors-servo
7f13566d57 auto merge of #1209 : saneyuki/servo/domstr, r=jdm
This will fix #1201.
This maybe the work in progress.

@jdm:
* Should we pass `DOMString` directly to `dom::utils::null_str_as_...`?
* Do you have any good idea to update the comment in `CodegenRust.py`?
2013-11-14 09:40:31 -08:00
bors-servo
38b17026de auto merge of #1255 : recrack/servo/fix_compute_height, r=metajack
Thanks @metajack
2013-11-14 06:55:31 -08:00
Jack Moffitt
e9d0770b48 Move from webconvforge to mozilla-servo organization for android repos. 2013-11-14 06:47:38 -07:00
Tetsuharu OHZEKI
f5ef4365f4 Stop passing DOMStrings via borrowed pointer. (#1201) 2013-11-14 20:35:36 +09:00
Jack Moffitt
b1762655e6 Change GitHub http submodules to https. 2013-11-14 01:34:10 -07:00
Keegan McAllister
095a7c7e42 Update rust-alert to find deps through rustpkg 2013-11-14 15:34:02 +09:00
Keegan McAllister
c1eefcd5af configure: Refuse to do anything if a submodule has a dirty working tree
This isn't a full fix for #522 / #835 but it prevents the unrecoverable
loss of work without changing the behavior of configure generally.

If configure drops committed local work, it can be recovered from the reflog.
2013-11-14 15:08:33 +09:00
Youngmin Yoo
ff84a4f930 Fix compute height using 'height' property 2013-11-14 14:58:06 +09:00
Keegan McAllister
94937b2f2a Pass Mac OS version cfg flags to rust-opengles build
This was in the rust-opengles Makefile.in pre-rustpkg.
2013-11-14 14:16:21 +09:00
sh8281.kim
853bcba0d1 fix indent & name 2013-11-14 13:44:02 +09:00
bors-servo
85e0bfe7f7 auto merge of #1231 : sonwow/servo/list-item, r=SimonSapin 2013-11-13 20:34:30 -08:00
bors-servo
76b367ceb6 auto merge of #1254 : pcwalton/servo/rule-hash, r=pcwalton
This is @pradeep90's PR with one little optimization.
2013-11-13 20:13:34 -08:00
bors-servo
82dd9b5699 auto merge of #1251 : Ms2ger/servo/attr-localname, r=kmcallister 2013-11-13 19:22:39 -08:00
Patrick Walton
74913ff05a Avoid one allocation in selector matching 2013-11-14 12:13:35 +09:00
S Pradeep Kumar
60d0757a02 Append to a vector argument instead of returning an owned vector.
Also, use stack-allocated vector for fixed-length vector instead of allocating
on the heap.
2013-11-14 12:13:35 +09:00
S Pradeep Kumar
315352c3c5 Insert and lookup element selectors case-insensitively.
Both the insertion key for rules having a LocalNameSelector and the lookup-key sent in
get_all_matching_rules should be ASCII lower case.
2013-11-14 12:13:35 +09:00
S Pradeep Kumar
c4903298a4 Implement Rule Hash for Selector Matching.
+ Add index fields in Rule for parent StyleRule and parent Stylesheet to break
  ties while cascading.
  Sorting by (specificity, stylesheet index, rule index) removes the need to use stable sorts.
2013-11-14 12:13:35 +09:00
bors-servo
e9ecf3c584 auto merge of #1249 : Ms2ger/servo/set-attr, r=kmcallister 2013-11-13 19:04:37 -08:00
bors-servo
cbd34bcbfa auto merge of #1247 : saneyuki/servo/rename, r=metajack
@metajack ?
2013-11-13 18:40:41 -08:00
Keegan McAllister
db6d25ff13 Build some dependencies with rustpkg
Also take a rust-layers bugfix.

In collaboration with Jack Moffitt.
2013-11-14 11:21:08 +09:00
Ms2ger
d57c3a8149 Make Attr::local_name always initialized. 2013-11-13 20:38:51 +01:00
Ms2ger
591de8cff5 Cleanup attribute setting functions a bit. 2013-11-13 17:38:08 +01:00
Tetsuharu OHZEKI
3cdc115ff0 Rename main/layout/aux.rs -> main/layout/extra.rs. (#1226) 2013-11-13 20:25:52 +09:00
Youngsoo Son
98c3c09e3e Make list-item's display style block 2013-11-13 18:08:42 +09:00
bors-servo
4eb8449621 auto merge of #1208 : pcwalton/servo/any-layout-data, r=metajack
Breaks the dependency between `gfx` and `script`, which is nice.

This exposed some performance issues with Rust's `Any` type, which I've filed:

https://github.com/mozilla/rust/issues/10382
2013-11-13 00:07:16 -08:00
bors-servo
01262861e3 auto merge of #1227 : pcwalton/servo/debug-more, r=kmcallister
r? @larsbergstrom
2013-11-12 18:25:20 -08:00
Patrick Walton
b67ec304de layout: Add debug strings for float flows and boxes 2013-11-13 11:19:18 +09:00