Commit graph

2461 commits

Author SHA1 Message Date
Brian Anderson
531140b85c Touch rust-auto-clean-trigger 2013-09-06 15:26:53 -07:00
Brian Anderson
13a3865e4e Update rust 2013-09-06 15:14:22 -07:00
bors-servo
da4cede500 auto merge of #878 : evilpie/servo/navigator, r=metajack 2013-09-06 11:13:08 -07:00
bors-servo
21cef446f1 auto merge of #881 : Ms2ger/servo/CharacterData-data, r=jdm 2013-09-06 09:58:01 -07:00
Tom Schuster
dee71e6d64 Add finish() call 2013-09-06 12:55:15 -04:00
Sangeun Kim
7a1493a5d4 Fix infinite loop bug. 2013-09-06 18:00:48 +09:00
Ms2ger
efff6be86c Make CharacterData store a ~str rather than a DOMString, because its data can never be null. 2013-09-06 09:45:16 +02:00
Tom Schuster
e81fed7b58 Implement Navigator 2013-09-05 19:09:10 -04:00
bors-servo
9073329737 auto merge of #876 : Ms2ger/servo/textcontent, r=jdm
The setter is a little more work, so I left that for another day.
2013-09-05 12:30:48 -07:00
Ms2ger
be2df5d024 Issue #852 - Implement the Node.textContent getter. 2013-09-05 21:20:36 +02:00
bors-servo
0e351d9f50 auto merge of #872 : brson/servo/http, r=metajack
It was a silly mistake.
2013-09-04 19:03:47 -07:00
Brian Anderson
8f2906b09e Remove unreachable code from http_loader 2013-09-04 18:33:58 -07:00
bors-servo
21307ebc2a auto merge of #871 : kmcallister/servo/debug-build, r=metajack 2013-09-04 18:30:52 -07:00
Keegan McAllister
db0bffe0a0 Add SpiderMonkey debug build fix 2013-09-04 17:39:33 -07:00
Keegan McAllister
8f74a3122c sub.mk: Remove CFLAGS_mozjs
Seems to have no effect.
2013-09-04 17:39:33 -07:00
bors-servo
264408a44b auto merge of #870 : brson/servo/http, r=metajack
We don't need to repeatedly read the headers, and need to send the Done message.
2013-09-04 16:24:50 -07:00
bors-servo
94a1231b64 auto merge of #869 : Ms2ger/servo/inline-script, r=jdm
This follows the approach of external scripts in executing tests all together after parsing finishes.
2013-09-04 12:42:50 -07:00
Brian Anderson
e10d3889b7 Fix logic in http_loader
We don't need to repeatedly read the headers, and need to send the Done message.
2013-09-04 12:40:56 -07:00
Ms2ger
916d0253b3 Issue #561 - Execute inline JS.
This follows the approach of external scripts in executing tests all together after parsing finishes.
2013-09-04 21:38:35 +02:00
bors-servo
3afcddcc67 auto merge of #820 : jdm/servo/tracehook, r=metajack 2013-09-04 10:33:50 -07:00
Josh Matthews
329f92a41d Add trace hooks for all generated derivatives of Node. 2013-09-04 13:13:03 -04:00
bors-servo
df2906fc29 auto merge of #831 : SimonSapin/servo/newnewcss, r=metajack
I started this in a [separate repository](https://github.com/SimonSapin/servo-style), and imported it with [git-subtree](https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt) into `servo/src/components/script/style` after some Rust minor upgrades.

I move this into the script crate because it’s gonna both need stuff there (the content tree, for selector matching) and be needed by stuff there (the HTML parser calls the CSS parser). As far as I know, we can not have circular dependencies between crates.
2013-09-04 10:00:52 -07:00
Simon Sapin
1912b82bfa Add missing license header in src/components/script/style/mod.rs 2013-09-04 17:42:28 +01:00
bors-servo
b5dcbd287d auto merge of #864 : jdm/servo/displaylist, r=metajack 2013-09-04 08:21:58 -07:00
Josh Matthews
79444596d1 Make querying layout for content boxes an infallible operation. 2013-09-04 11:07:11 -04:00
bors-servo
a567eb007d auto merge of #863 : brson/servo/http, r=metajack
This adds rust-http as a submodule and wires it into the resource loader for http urls. It *does not* do DNS resolution yet, sadly, since Rust doesn't support it yet. That's what I'll be working on next.
2013-09-03 22:18:59 -07:00
Brian Anderson
c94d601ebf Update rust-http 2013-09-03 22:14:45 -07:00
Brian Anderson
7d23834795 Use https for rust-http submodule 2013-09-03 20:37:25 -07:00
bors-servo
1cdd513c04 auto merge of #862 : kmcallister/servo/embed-layout-data, r=jdm 2013-09-03 19:47:07 -07:00
Brian Anderson
232bdae8e6 Add rust-http to the build and begin using it to resolve http urls 2013-09-03 16:42:21 -07:00
Keegan McAllister
51c639c380 Remove a layer of Option on LayoutData
The individual fields are also Options, and LayoutData::new() is a fine default
value.
2013-09-03 16:00:14 -07:00
Brian Anderson
6fe337e215 Add rust-http as a submodule
Conflicts:
	.gitmodules
2013-09-03 14:27:04 -07:00
Simon Sapin
496072c8e1 Trigger a rust rebuild
I previously changed this to the same date as another commit, so the changed "disappeared" when I rebased.
2013-09-03 22:19:05 +01:00
Keegan McAllister
c22547a4ef Embed layout data directly in Node
This eliminates

    layout_data: Option<@mut ()>

and the unsafe casting around it, which was causing crashes on exit.

Fixes #762.
2013-09-03 13:10:51 -07:00
Keegan McAllister
fc3afc5059 Add a hexdump function for debugging 2013-09-03 13:10:51 -07:00
Keegan McAllister
317add5528 Warning police 2013-09-03 13:10:51 -07:00
Simon Sapin
8abab6f546 Add cascading. 2013-09-03 19:05:59 +01:00
bors-servo
4cfcad0a0e auto merge of #837 : saneyuki/servo/webidl, r=jdm 2013-09-03 10:46:00 -07:00
bors-servo
a8718d77f1 auto merge of #836 : bfrohs/servo/834upperTagName, r=jdm
http://dom.spec.whatwg.org/#dom-element-tagname

I added `window.alert(elem.tagName);` to line 14 of `test_bindings.js` to test (segfault at line 17), and it indeed uppercased the tagName. I didn't add that to this commit, however, because `tagName` is already tested on line 50 of that file. I'm assuming the duplication isn't necessary. Am I correct in that assumption? Or should tests be added somewhere for this? Where?
2013-09-03 09:46:03 -07:00
Simon Sapin
7a70200250 Resolve 'unset' to 'initial' or 'inherit' when parsing. 2013-09-03 16:56:12 +01:00
Simon Sapin
96dce99e8f Handle 'color: currentColor' 2013-09-03 16:39:40 +01:00
Simon Sapin
cb340df79c Add style structs. 2013-09-03 16:38:46 +01:00
Brandon Frohs
02437f7e87 Convert tagName to uppercase ASCII per spec
http://dom.spec.whatwg.org/#dom-element-tagname
2013-09-02 21:21:30 -04:00
Simon Sapin
91593b54d2 Build the new (yet unused) style system as part of libscript, to avoid bitrot. 2013-09-02 17:32:26 +01:00
Simon Sapin
71ca10a50c Add 'src/components/script/style/' from commit 'dd8b178860'
git-subtree-dir: src/components/script/style
git-subtree-mainline: 0c726b4581
git-subtree-split: dd8b178860
2013-09-02 17:30:45 +01:00
Simon Sapin
0c726b4581 Upgrade to rustc 0.8-pre (0ac3e02 2013-08-30 05:45:45 -0700) 2013-09-02 17:25:35 +01:00
bors-servo
7ea10ff8af auto merge of #853 : evilpie/servo/file-url, r=metajack
This makes the JavaScript error prettier.
2013-08-31 20:03:59 -07:00
Tom Schuster
a0d900e1f6 Pass the javscript file url to the evaluate function 2013-08-31 20:07:08 -04:00
Tetsuharu OHZEKI
80e3109bc9 Add testcases. 2013-09-01 06:57:55 +09:00
Tetsuharu OHZEKI
17e888bfea Generate bindings for HTMLAudioElement, HTMLVideoElement. 2013-09-01 06:51:33 +09:00