Commit graph

5232 commits

Author SHA1 Message Date
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
Tetsuharu OHZEKI
a76e46416a Generate bindings for HTMLMediaElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
d3108a898d Generate bindings for HTMLTrackElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
9919bae897 Generate bindings for HTMLLabelElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
f7bc8beb18 Generate bindings for HTMLLegendElement. 2013-08-31 20:00:26 +09:00
Tetsuharu OHZEKI
e55b3d6b86 Generate bindings for HTMLPreElement. 2013-08-31 20:00:25 +09:00
Tetsuharu OHZEKI
22e02b573d Generate bindings for HTMLTemplateElement. 2013-08-31 20:00:25 +09:00
bors-servo
c532c73964 auto merge of #821 : brson/servo/master, r=brson,metajack,metajack
Still needs https://github.com/mozilla-servo/glfw-rs/pull/5 and https://github.com/mozilla-servo/rust-mozjs/pull/31
2013-08-30 15:21:36 -07:00
Brian Anderson
e2aa7b8697 Update contenttest 2013-08-30 15:17:57 -07:00
Brian Anderson
01cdfa3748 Merge remote-tracking branch 'origin/master' 2013-08-30 15:16:45 -07:00
Brian Anderson
4487b1c29a Merge remote-tracking branch 'origin/master'
Conflicts:
	src/components/script/dom/bindings/element.rs
	src/components/script/dom/bindings/node.rs
	src/components/script/dom/bindings/utils.rs
2013-08-30 13:44:44 -07:00
Jack Moffitt
8fb3571bd9 Fix android build on Darwin.
This cleans up configure and Makefile.in so that things build correctly on Darwin.
2013-08-30 14:27:20 -06:00
bors-servo
3e801e777f auto merge of #828 : jdm/servo/contentfix, r=metajack 2013-08-30 13:15:39 -07:00
Josh Matthews
2947c0c5bd Add test for proxy dom bindings setter. Fix up prototypes content test to reflect new bindings. Hook up contenttest harness to make check target. 2013-08-30 15:16:47 -04:00
Josh Matthews
e428c954aa Fix contenttest harness build errors. 2013-08-30 14:53:13 -04:00
Brian Anderson
d78703344c Touch rust-auto-clean-trigger 2013-08-30 11:40:58 -07:00
bors-servo
f89cbef187 auto merge of #827 : jdm/servo/rmoldstuff, r=pcwalton 2013-08-30 10:27:50 -07:00
Josh Matthews
75f1cbd76f Remove all handwritten bindings code. 2013-08-30 13:13:46 -04:00
bors-servo
7584aee98e auto merge of #824 : Constellation/servo/small, r=jdm
I've renew HTMLSmallElement implementation.
2013-08-30 09:06:36 -07:00
Yusuke Suzuki
93fba253a2 Implement IDL based HTMLSmallElement binding 2013-08-31 01:00:05 +09:00
bors-servo
a9b6eb8ff1 auto merge of #823 : june0cho/servo/inline_bgcolor, r=metajack
In case that inline element has `background-color`, bgcolor doesn't work.
Fix the error and add a test case.
2013-08-30 07:27:37 -07:00
Simon Sapin
dd8b178860 Add initial values. 2013-08-30 14:00:04 +01:00
Simon Sapin
bdca6d9fc4 Revert early resolving of currentColor. 2013-08-30 14:00:00 +01:00
Junyoung Cho
d78e109927 Paint background-color in text box 2013-08-30 14:31:40 +09:00
Brian Anderson
6d52445f05 Remove incorrectly-added rust-http directory 2013-08-29 18:20:05 -07:00
Brian Anderson
449a252e7f Rebase and update submodules 2013-08-29 16:50:37 -07:00
Brian Anderson
9624148f18 Merge remote-tracking branch 'origin/master' into HEAD
Conflicts:
	src/components/script/dom/bindings/proxyhandler.rs
	src/components/script/dom/bindings/text.rs
2013-08-29 16:04:52 -07:00
Brian Anderson
1026556477 Update Rust 2013-08-29 15:36:36 -07:00
Simon Sapin
e2ec549da5 Add computed values. 2013-08-29 17:06:33 +01:00
bors-servo
bc3cd8c1c1 auto merge of #818 : sonwow/servo/bindings, r=jdm 2013-08-29 07:06:27 -07:00