Commit graph

4860 commits

Author SHA1 Message Date
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
bors-servo
fb8a24861a auto merge of #1220 : jdm/servo/attrlist2, r=metajack 2013-11-12 17:34:17 -08:00
bors-servo
ce04996734 auto merge of #1225 : Ms2ger/servo/insert-docfrag, r=jdm 2013-11-12 10:29:45 -08:00
Ms2ger
df41a30814 Implement a missing step in the node 'insert' algorithm. 2013-11-12 19:24:22 +01:00
Josh Matthews
249cc6e38f Implement Element.attributes. 2013-11-13 02:09:12 +09:00
bors-servo
3e77a48d77 auto merge of #1222 : jdm/servo/remove_all, r=jdm 2013-11-12 08:52:27 -08:00
Ms2ger
9bcf5468e4 Rewrite replace_all. 2013-11-13 01:47:47 +09:00
bors-servo
6a0201a5a6 auto merge of #1215 : Ms2ger/servo/DOMString-nonnull, r=jdm 2013-11-12 05:53:09 -08:00
Ms2ger
6ee835a9c5 Update test to code changes. 2013-11-12 14:45:11 +01:00
Ms2ger
08afc6d19d Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207. 2013-11-12 13:57:18 +01:00
Ms2ger
803cd4b7cf Make DOMString represent a non-nullable string. 2013-11-12 13:32:53 +01:00
june0cho
ee5ff3f312 Fix the crash on #582. Combining characters are still not shown because this is not implemented. With @sonwow 2013-11-12 21:28:59 +09:00
bors-servo
2975cb69e3 auto merge of #1218 : jdm/servo/attr, r=kmcallister 2013-11-12 02:04:25 -08:00
bors-servo
da4ca51049 auto merge of #1213 : jdm/servo/loadevent, r=kmcallister
It's good enough for now, since we don't track document resources at all. Should be good enough for #841.
2013-11-12 01:01:34 -08:00
sh8281.kim
8db917849a impl window self 2013-11-12 17:57:33 +09:00
James Graham
15b9d4d199 Initial support for Attr and namespaces. 2013-11-12 17:39:04 +09:00
bors-servo
b379b7aa75 auto merge of #1214 : jdm/servo/gdbready, r=larsbergstrom
...timize disable all optimizations.
2013-11-11 23:37:29 -08:00
bors-servo
433f19f5a3 auto merge of #1216 : june0cho/servo/temp_fix_tableflow, r=kmcallister
In order to fix the wikipedia error, I temporarily change the display property of table-related elements to 'block' instead of 'inline'.
When table is implemented, it should be changed to proper value.

@sonwow
@brson
2013-11-11 16:52:34 -08:00
Junyoung Cho
90f88dcc06 fix #1211: for table-related elements, handle temporarily as 'block' display intead of 'inline' display 2013-11-12 09:17:03 +09:00
Josh Matthews
3c80dbbf59 Make --enable-debug turn on full debugging information, and --disable-optimize disable all optimizations. 2013-11-12 00:52:04 +09:00
bors-servo
4297aa33ad auto merge of #1206 : Ms2ger/servo/strings, r=jdm
I'll probably do a followup to actually pass non-nullable strings to the native functions.
2013-11-11 04:01:29 -08:00
Josh Matthews
3b3f891455 Add a spec-incompliant load event. 2013-11-11 16:50:58 +09:00
bors-servo
4a830517e5 auto merge of #1212 : larsbergstrom/servo/dump_flows, r=brson
With @ryanhc

Will add more debugging information for RenderBoxes in InlineFlows and `dump_str` for each of the RenderBoxes later.
2013-11-10 23:07:23 -08:00
Lars Bergstrom
b675618a7b Add some basic debug info for dumping flows. 2013-11-11 15:56:29 +09:00
Ms2ger
793d87f07d Rewrite jsval_to_str and introduce jsval_to_domstring. 2013-11-09 14:49:15 +01:00
Ms2ger
255864a843 Simplify InterfaceObjectToString. 2013-11-09 14:07:09 +01:00
Ms2ger
610d1649cd Introduce jsid_to_str to simplify jsval_to_str callers that have an id. 2013-11-09 14:05:53 +01:00
Patrick Walton
6ff7b4a6a6 Use Any for the layout data.
Breaks the dependency between `gfx` and `script`, which is nice.
2013-11-08 22:45:40 -08:00
bors-servo
bdc7e984eb auto merge of #1204 : jdm/servo/clones, r=kmcallister
r? @kmcallister
2013-11-07 14:58:16 -08:00
bors-servo
30e7fdff7c auto merge of #1202 : SimonSapin/servo/link-selectors, r=jdm
All links are considered "unvisited" for now.

In particular, this fixes the UA stylesheet rule that underlines links.
2013-11-07 13:38:00 -08:00
Josh Matthews
9e99b07723 Remove unneeded clones. 2013-11-07 14:46:18 -05:00
Simon Sapin
74dfc3b66a Add :any-link (Level 4), :link and :visited selectors.
All links are considered "unvisited" for now.
2013-11-07 15:06:17 +00:00
bors-servo
651b2f072b auto merge of #1150 : ILyoan/servo/max_width, r=ILyoan,metajack
For #783, only for block flow.
I'll do the things for other flows as well.

r? @simonsapin, @metajack
2013-11-06 23:01:10 -08:00
Ilyong Cho
ce6a3ec4bd Implement max-width, min-width for BlockFlow. 2013-11-07 15:57:25 +09:00
Ilyong Cho
d73fc68209 Parse min-width and max-width 2013-11-07 15:57:25 +09:00
bors-servo
6357b2fa1b auto merge of #1195 : kmcallister/servo/headless, r=metajack 2013-11-06 16:34:14 -08:00
bors-servo
40a7667580 auto merge of #1182 : pcwalton/servo/no-size-channel, r=metajack
This will make sandboxing much easier since we won't need a
separate Unix pipe just for this.
2013-11-06 15:02:18 -08:00
bors-servo
b023b98b2c auto merge of #1198 : Ms2ger/servo/GetParentObject, r=jdm 2013-11-06 13:13:32 -08:00