Commit graph

2461 commits

Author SHA1 Message Date
Keegan McAllister
ec2111edbf Use rust-http typed headers 2013-10-10 18:18:39 -07:00
Keegan McAllister
48af4e53a9 Refactor resource loader protocol to send metadata first 2013-10-10 18:18:39 -07:00
Keegan McAllister
cb67a50a95 Fix indentation in URL loaders 2013-10-10 18:18:39 -07:00
Keegan McAllister
05901f8761 Simplify ResourceTask creation 2013-10-10 18:18:39 -07:00
bors-servo
368d512b99 auto merge of #1034 : Ms2ger/servo/nodeName-Value, r=kmcallister 2013-10-10 14:10:36 -07:00
Ms2ger
cfc9f4956a Reindent some match expressions. 2013-10-10 23:05:30 +02:00
Ms2ger
a5233f2bc4 Support Node.nodeType and Node.nodeValue. 2013-10-10 22:09:34 +02:00
bors-servo
9d04be98e5 auto merge of #1032 : bholley/servo/unsafe_reflector_casts, r=jdm
r? @jdm
2013-10-10 04:28:00 -07:00
Bobby Holley
c4bbc4cd37 Introduce mutable/immutable variants of reflector() with named lifetimes, and kill unsafe casts. 2013-10-10 13:11:24 +02:00
Bobby Holley
e6be738d97 Fix infinite-looping reflector() implementation for WindowProxy. 2013-10-10 13:11:24 +02:00
bors-servo
b0ac5911ec auto merge of #1027 : Ms2ger/servo/owner-document, r=jdm
I'm not happy about `is_in_doc`, but that should improve once @jdm lands his document-as-node changes.
2013-10-10 02:27:59 -07:00
Ms2ger
40106841f8 Address review comment and add fixmes. 2013-10-10 10:57:38 +02:00
Ms2ger
04319fdb68 Issue #888 - Node's owner document should never be None. 2013-10-10 10:57:38 +02:00
bors-servo
59d2d345c8 auto merge of #1013 : huonw/servo/text-iter, r=pcwalton
And 3 other minor clean-ups: removing a redundant `if`, a redundant function call, and using `slice_from` where it is possible.
2013-10-09 16:19:24 -07:00
bors-servo
46e81f6caa auto merge of #1031 : luisbg/servo/master, r=kmcallister
HTMLFormElementTypeId, ElementNodeTypeID and Node are not used anymore in htmlformelement.rs

The compiler was giving a warning error about unused imports.
2013-10-09 13:37:16 -07:00
Luis de Bethencourt
5801f948e3 Remove unused imports in htmlformelement 2013-10-09 16:33:04 -04:00
bors-servo
89dd9dd8eb auto merge of #1028 : bholley/servo/reflector_rename, r=jdm
There are still a few instances of "wrapper"-ish names scattered throughout the code, but this is a good start.
2013-10-09 05:40:12 -07:00
Bobby Holley
5ed8b9e83f Rename |wrapper| to |reflector_| in Reflectable implementations for DOM objects. 2013-10-09 12:21:38 +02:00
Bobby Holley
92e91c58da Rename the |wrapper| field in Reflector. 2013-10-09 12:18:17 +02:00
Bobby Holley
549ac6a29b Rename some local variables and shorten some lines.
This was done manually, and might benefit from a more careful review.
2013-10-09 12:15:56 +02:00
Bobby Holley
622aa76515 Rename WrappableDocument stuff. 2013-10-09 12:13:18 +02:00
Bobby Holley
6bf740d967 Rename {get,set}_wrapper to {get,set}_jsobject. v1 2013-10-09 12:13:18 +02:00
Bobby Holley
62ddac8b6f Rename get_wrappercache() to reflector(). v1
I also updated some variable names in the codegen.
2013-10-09 12:11:25 +02:00
Bobby Holley
2cbe2d7ce9 Rename WrapperCache to Reflector.
I think the abstraction from the raw JSObject is still probably worthwhile for
now.
2013-10-09 12:07:41 +02:00
Bobby Holley
0a0599ad9b Rename CacheableWrapper to Reflectable. 2013-10-09 12:03:18 +02:00
bors-servo
77f8dba48b auto merge of #1016 : Ms2ger/servo/ownerdoc, r=jdm 2013-10-08 05:16:01 -07:00
bors-servo
9cd2494d5a auto merge of #1023 : Ms2ger/servo/cleanup, r=jdm 2013-10-07 07:52:04 -07:00
Ms2ger
388f685549 Cleanup some code. 2013-10-07 16:30:34 +02:00
Ms2ger
e43505d641 Remove Document::set_root.
All callers have an AbstractDocument, and this makes my life easier later.
2013-10-07 15:17:47 +02:00
bors-servo
d99e69e244 auto merge of #1012 : deokjinkim/servo/glyph_advance_cache, r=ILyoan
#1008 has unnecessary code change. So I want to revert this code.
2013-10-06 21:16:05 -07:00
bors-servo
f353150bca auto merge of #1020 : SimonSapin/servo/external-UA-css, r=jdm
Oops, I broke the UA stylesheet in #1017. The fact that our tests still passed is not a good sign :/
2013-10-06 20:37:07 -07:00
Simon Sapin
e45482b825 Fix UA stylesheet: remove Rust string escaping 2013-10-06 15:01:40 +02:00
Ms2ger
179582d939 Remove unnecessary mutability. 2013-10-06 09:15:38 +02:00
Ms2ger
17796725f4 Address review comments. 2013-10-06 09:02:12 +02:00
bors-servo
6832f4feec auto merge of #1017 : SimonSapin/servo/external-UA-css, r=jdm
… as suggested in https://github.com/mozilla/servo/pull/1015#issuecomment-25755957

Also add a comment on the `border-width` work-around.
2013-10-05 16:46:04 -07:00
Simon Sapin
8df49c1c1d Move the User-Agent styleesheet to a CSS file instead of a Rust string.
… as suggested in
https://github.com/mozilla/servo/pull/1015#issuecomment-25755957

Also add a comment on the `border-width` work-around.
2013-10-05 23:56:43 +02:00
Ms2ger
c93d13b0da Don't require passing a root element to Document::new (needed for issue #888). 2013-10-05 21:42:13 +02:00
Huon Wilson
451519b6ff Use str.char_offset_iter instead of manually calling str.char_range_at. 2013-10-04 22:26:36 +10:00
bors-servo
f13438d012 auto merge of #1011 : metajack/servo/summit-demos, r=larsbergstrom
summit2.html is a two pane demo of rust logo and matrix math.

summit3.html is a three pane demo adding longcat.

summit-fail.html is thw two pane demo with failing page on the right.
2013-10-03 23:24:47 -07:00
Jack Moffitt
4f04efa380 Add summit demos.
summit2.html is a two pane demo of rust logo and matrix math.

summit3.html is a three pane demo adding longcat.

summit-fail.html is thw two pane demo with failing page on the right.
2013-10-04 00:16:48 -06:00
Deokjin Kim
6aa9104907 Revert unnecessary code change 2013-10-04 14:49:28 +09:00
bors-servo
5d59c00575 auto merge of #1008 : deokjinkim/servo/glyph_advance_cache, r=jdm
To reduce number of FT_Load_Glyph call, use glyph advance cache.
2013-10-03 02:45:49 -07:00
Deokjin Kim
70578e6350 Remove cast::transmute 2013-10-03 14:39:57 +09:00
Deokjin Kim
7716c2bc2f Fix strange indentation 2013-10-03 11:47:04 +09:00
Deokjin Kim
46776e1974 Add glyph advance cache to enhance speed of layout 2013-10-03 09:23:55 +09:00
bors-servo
d6d2534b56 auto merge of #1001 : SimonSapin/servo/newnewcss, r=kmcallister
Add selector matching, style structs, cascading. The matching is quite naive and has many low hanging fruits for optimization. No pseudo-class (except `:not()`) is implemented yet, but those are easy to add as needed.

Next step is to update the layout code to use this and drop netsurf-css.

(Most of the +7066 lines stat is for bootstrap.css, added as a test.)
2013-10-02 12:21:53 -07:00
bors-servo
096af85834 auto merge of #1005 : jdm/servo/failfixes, r=metajack
Fixes #1004. I haven't seen the other ones be reported, but I saw often saw `task <unnamed> failed at 'RenderChan.send: render port closed', /home/jdm/sdb/servo/src/components/gfx/render_task.rs:76`, `task <unnamed> failed at 'receiving on closed channel', /home/jdm/sdb/servo/src/compiler/rust/src/libstd/rt/comm.rs:487`, and failed assertions due to layout running after we had begun tearing down the window.
2013-10-01 23:54:50 -07:00
Josh Matthews
499935b77e Silence occasional task failure that occurs from sending to the render task after it's shut down. 2013-10-02 01:43:21 -04:00
Josh Matthews
bc81716c30 Make proxy finalizers retrieve the DOM object from the right slot. 2013-10-02 01:43:14 -04:00
Josh Matthews
92f6599854 Wait for any layout tasks to complete in a page tree before a handling a pipeline's exit message. 2013-10-02 01:43:08 -04:00