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
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
Luis de Bethencourt
5801f948e3
Remove unused imports in htmlformelement
2013-10-09 16:33:04 -04: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
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
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
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
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
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
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
Brian Anderson
38ea00074c
Run script in its own thread to avoid starving other tasks
2013-10-01 15:43:45 -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
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
Ryan Choi
9fa389938c
Update submodule
2013-09-26 11:42:15 +09:00
Ryan Choi
9a3a6f2829
Cache font-style and text-decoration to speed up can_merge_with_box()
2013-09-25 15:50:38 +09:00
bors-servo
c246188605
auto merge of #826 : metajack/servo/android-darwin, r=jdm
...
This cleans up configure and Makefile.in so that things build correctly on Darwin.
This needs https://github.com/mozilla-servo/nss/pull/6 before it can be merged. Please hold any r+ until that lands and I push the submodule update.
2013-09-24 13:09:40 -07:00
bors-servo
b7d186dec2
auto merge of #977 : kmcallister/servo/redirect, r=jdm
2013-09-24 12:45:44 -07:00
Tim Kuehn
103cd6255d
split script_task::ExitMsg into WindowExitMsg and PipelineExitMsg
2013-09-24 00:15:35 -04:00
Tim Kuehn
99f125bb64
script task only exits when the root pipeline exits
2013-09-24 00:03:52 -04:00
Tim Kuehn
c56b015623
find_mut ==> find. it's only mut because of the data type iterated over
2013-09-24 00:03:51 -04:00