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
Simon Sapin
284770aa02
Selector matching: tweak variable naming, add comments.
2013-10-02 01:37:03 +01:00
Simon Sapin
02364d7db7
Sorting on specificity needs to be stable for correctness of the cascade.
2013-10-02 01:19:36 +01:00
Simon Sapin
a04e96b7c6
Fix missing license header.
2013-10-02 00:31:57 +01:00
Simon Sapin
20089e4bea
New style sytsem: add selector matching
...
Also make scribt::dom::element::Element::get_attr ASCII case-insensitive
on attribute names, per spec:
http://dom.spec.whatwg.org/#dom-element-getattribute
2013-10-02 00:28:14 +01:00
bors-servo
be5deb2a68
auto merge of #1002 : brson/servo/scriptthread, r=jdm
...
This appears to fix the problem with the Rust logo stopping during the demo.
Though this is the right way to spawn a SpiderMonkey thread, I'm not entirely sure why this fixes the problem in all scenarios. With enough threads (i.e. `RUST_THREADS=32`), and running with some Rust patches that are available on master (which I applied during testing), I would expect work stealing to not allow starvation here. In my tests though I see the problem even with lots of threads, so this may yet indicate a scheduler bug. Still, SpiderMonkey should get its own thread.
2013-10-01 15:52:41 -07:00
Brian Anderson
38ea00074c
Run script in its own thread to avoid starving other tasks
2013-10-01 15:43:45 -07:00
bors-servo
5fc5542590
auto merge of #998 : jdm/servo/tracehook, r=metajack
...
Needs https://github.com/mozilla-servo/rust-mozjs/pull/38 and https://github.com/mozilla-servo/mozjs/pull/6 . Fixes #819 . Fixes #962 .
2013-09-30 23:27:47 -07:00
Josh Matthews
cb826f9920
Make proxy bindings generate trace and finalization hooks.
2013-09-30 22:14:27 -04:00
bors-servo
74c3859548
auto merge of #996 : kmcallister/servo/azure-skia-fixes, r=larsbergstrom
...
Fixes #979 .
2013-09-30 12:30:10 -07:00
Keegan McAllister
0f758b3d80
Fix crashes and leaks in Azure and Skia
...
Fixes #979 .
2013-09-30 11:57:39 -07:00
bors-servo
1e4e8d5224
auto merge of #995 : jdm/servo/demoborders, r=larsbergstrom
...
Fixes #993 .
2013-09-30 11:53:19 -07:00
Josh Matthews
2a0ec06bf3
Make borders show up on summit.html
2013-09-30 14:45:44 -04:00
Simon Sapin
226ccf7e72
Merge commit ' 25d6448f28
'
2013-09-30 19:21:27 +01:00
Simon Sapin
25d6448f28
Fix SimonSapin/servo-style#2 : failed assertion in selector parsing.
...
Add a test: "parse bootstrap.css without failing"
2013-09-30 17:46:18 +01:00
bors-servo
a3bad43e8a
auto merge of #978 : ryanhc/servo/renderbox-cache, r=metajack
2013-09-25 20:06:42 -07:00
Ryan Choi
9fa389938c
Update submodule
2013-09-26 11:42:15 +09:00