Commit graph

318 commits

Author SHA1 Message Date
Jaeman Park
6dba191efe Implementation of pseudo class 'first-child'. 2013-10-29 14:53:39 +00:00
Patrick Walton
42092921c1 Optimize reflow by changing enums to traits and inlining more 2013-10-28 13:22:26 -07:00
Patrick Walton
baba35adc9 Revert "Make Document a Node." for breaking Acid1
This reverts commit 4e47d59165.

Conflicts:

	src/components/script/dom/domparser.rs
2013-10-24 15:08:09 -07:00
Ms2ger
4c69d748bd Cleanup DOMParser binding. 2013-10-24 19:20:03 +02:00
bors-servo
13644ccab1 auto merge of #1079 : jdm/servo/docnode, r=jdm,metajack
The bit I don't like about these changes is that I ended up hiding the document node from the CSS selecting/matching code, so it continues thinking of the document's first child as the root. When I tried to send the full tree including the document node to layout, the layout code refused to create any child flows. When I sent the document's first child without hiding the document, it saw inherited values for properties like font-family, and later tried to treat the document node as an Element when searching for named nodes.
2013-10-24 09:15:55 -07:00
Josh Matthews
4e47d59165 Make Document a Node. 2013-10-24 18:07:46 +02:00
bors-servo
a9e2329939 auto merge of #1126 : Ms2ger/servo/get_scope_and_cx, r=jdm 2013-10-24 08:00:58 -07:00
bors-servo
b1c068b203 auto merge of #1125 : Ms2ger/servo/ClientRectList, r=jdm 2013-10-24 07:42:59 -07:00
Ms2ger
5d1eea5f03 Remove unused get_scope_and_cx functions. 2013-10-24 16:37:56 +02:00
bors-servo
ecf741f3ad auto merge of #1119 : Ms2ger/servo/dead-init_wrapper, r=kmcallister 2013-10-24 07:04:07 -07:00
bors-servo
d97249cc8c auto merge of #1118 : Ms2ger/servo/NodeList, r=kmcallister 2013-10-24 06:43:03 -07:00
bors-servo
d222443b38 auto merge of #1117 : Ms2ger/servo/HTMLCollection, r=kmcallister 2013-10-24 06:22:16 -07:00
bors-servo
86ec0a32f5 auto merge of #1116 : Ms2ger/servo/ClientRect, r=kmcallister 2013-10-24 06:01:15 -07:00
bors-servo
21270738ae auto merge of #1102 : Ms2ger/servo/dead-document-code, r=jdm
I don't think it's useful to keep those lying around, in particular because we should never even implement some of those (`mozHidden`, `mozVisibilityState`, …)
2013-10-24 05:40:24 -07:00
Ms2ger
8a9129abb8 Remove unused init_wrapper functions. 2013-10-23 21:20:36 +02:00
Ms2ger
5ee3bc7450 Cleanup NodeList bindings. 2013-10-23 21:13:18 +02:00
Ms2ger
8cb4976136 Cleanup HTMLCollection binding. 2013-10-23 20:59:14 +02:00
Ms2ger
6af555ab23 Cleanup ClientRectList binding. 2013-10-23 20:44:22 +02:00
Ms2ger
f75568e939 Cleanup ClientRect binding. 2013-10-23 20:15:36 +02:00
Simon Sapin
2045f6a068 Remove (now unused) NetSurf’s libcss and libwapcaplet.
This removes four submodules (two C libraries and their Rust bindings.)
2013-10-23 14:42:29 +02:00
bors-servo
9b25df1968 auto merge of #1109 : sanxiyn/servo/new-style, r=SimonSapin
Regressions are:
* Incremental layout is broken
* `:link` is broken
* Source URL is not passed to CSS parser
* `text-decoration` propagation for block containers establishing an inline formatting context is not handled

This also does not remove NetSurf libcss from the build. That can be done in a followup.

This was a team effort. Credits to Deokjin Kim, Ilyong Cho, Jaeman Park, Junyoung Cho, Ryan Choi, Sangeun Kim, Yongjin Kim, Youngmin Yoo, Youngsoo Son.
2013-10-23 03:57:55 -07:00
bors-servo
71a43dd219 auto merge of #1101 : Ms2ger/servo/vs-eager, r=jdm 2013-10-23 02:04:01 -07:00
Ilyong Cho
a4aa8b05f7 Implementation of node.parentNode/parentElement 2013-10-23 17:04:57 +09:00
Seo Sanghyeon
b2431912d3 Use the new style system
Credits to:
    Deokjin Kim
    Ilyong Cho
    Jaeman Park
    Junyoung Cho
    Ryan Choi
    Sangeun Kim
    Yongjin Kim
    Youngmin Yoo
    Youngsoo Son
2013-10-23 16:49:35 +09:00
Ms2ger
66a76961cc Wrap ValidityState eagerly. 2013-10-23 09:05:06 +02:00
bors-servo
f3f6e62f7f auto merge of #1104 : ibnc/servo/script_dev, r=jdm
Fixes #845
2013-10-22 16:07:34 -07:00
Isabelle Carter
0e94eb5720 Implemented HTMLScriptElement.Src 2013-10-22 17:27:40 -05:00
Keegan McAllister
5a5223d24e Eagerly reflect {,UI,Mouse}Event 2013-10-22 12:52:04 -07:00
Keegan McAllister
30a9fb2f45 Factor out a helper for eagerly creating JS wrappers 2013-10-22 12:52:04 -07:00
Jack Moffitt
94202661c0 Update to latest Rust. 2013-10-21 17:38:34 -06:00
Ms2ger
e418e4d830 Remove no-op implementations from Document and HTMLDocument. 2013-10-21 19:51:12 +02:00
bors-servo
4d8f7fd056 auto merge of #1099 : Ms2ger/servo/abstract-borrowed-pointers, r=jdm 2013-10-21 09:37:03 -07:00
Ms2ger
b90766404c Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}. 2013-10-21 17:57:44 +02:00
Ms2ger
364256e359 Replace Node::{with_base, with_mut_base} by Node::{node, mut_node}. 2013-10-21 15:58:16 +02:00
bors-servo
accec9c113 auto merge of #1098 : jdm/servo/borrow-fix, r=metajack
Needed for #1067.
2013-10-21 05:57:59 -07:00
Josh Matthews
fda77aa36b Eagerly reflect the navigator object. Fixes #1042. 2013-10-21 12:11:14 +02:00
Ms2ger
9f84c90754 Create FormData reflectors eagerly. 2013-10-19 22:34:25 +02:00
bors-servo
5c725b31af auto merge of #1025 : saneyuki/servo/attr, r=metajack 2013-10-18 20:43:03 -07:00
bors-servo
8dd462c38c auto merge of #1091 : marcoscaceres/servo/master, r=jdm 2013-10-18 19:22:08 -07:00
Marcos Caceres
faf53fd05c Implemention of HTMLMainElement 2013-10-18 22:03:58 +01:00
Ms2ger
40fde80e1a Implement the no-argument Blob constructor. 2013-10-18 19:30:32 +02:00
Ms2ger
9046085506 Make Blob create its binding eagerly. 2013-10-18 19:28:21 +02:00
Ms2ger
321e0373fa Merge BindingObject and Reflectable. 2013-10-18 17:02:16 +02:00
Tetsuharu OHZEKI
41dda86557 Enable to update Element's attributes. 2013-10-19 00:00:43 +09:00
Ms2ger
f585d218cb Remove unused DerivedWrapper implementations. 2013-10-18 16:13:35 +02:00
Ms2ger
3da1a206d8 Remove DerivedWrapper::wrap_shared, as it's unused. 2013-10-18 15:56:35 +02:00
bors-servo
ebe1c1353c auto merge of #1077 : kmcallister/servo/jsstr, r=jdm
This doesn't resolve the big questions of how Servo will represent strings; it's just about doing the conversion correctly for our existing types.
2013-10-17 16:34:30 -07:00
Keegan McAllister
5f14ee617b Check for allocation failure in domstring_to_jsval 2013-10-17 12:59:05 -07:00
bors-servo
79f4d9a47f auto merge of #1080 : Ms2ger/servo/get_jsobject-cast, r=jdm 2013-10-17 10:40:27 -07:00
Ms2ger
f58c7874b2 Remove an unnecessary cast::transmute call. 2013-10-17 19:35:53 +02:00