Simon Sapin
ff554ee845
Add a fast path in the cascade for anonymous boxes.
2014-05-16 22:33:25 +02:00
Simon Sapin
4310f29431
Keep initial values in a lazy static instead of passing a parameter around.
...
Thanks to @Kimundi for https://gist.github.com/Kimundi/8782487
2014-05-16 22:33:24 +02:00
Glenn Watson
f5c2f7e835
Add various base html elements to parser and test. Fixes #703 .
2014-05-17 05:59:25 +10:00
bors-servo
3ea507f3ea
auto merge of #2454 : Ms2ger/servo/codegen-tests-retvals, r=jdm
2014-05-16 11:55:48 -04:00
bors-servo
d2aa6d8133
auto merge of #2449 : glennw/servo/gdb-helpers, r=jdm
...
I'm not sure if these are useful to anyone else or if we even want them in servo or shall I maintain them elsewhere?
2014-05-16 10:58:53 -04:00
Ms2ger
ab8b62e28d
Add tests for return values of interface methods.
2014-05-16 16:53:54 +02:00
bors-servo
58283527bf
auto merge of #2452 : Ms2ger/servo/getDefaultRetval, r=jdm
2014-05-16 10:25:51 -04:00
Ms2ger
fcd98e1c0d
Stop returning a default return value from getRetvalInfo.
...
This is now unused.
2014-05-16 12:10:57 +02:00
Ms2ger
7abbef8919
Remove getDefaultRetval.
...
getDefaultRetval was supposed to be used after throwing an exception on the
ErrorResult outparam in C++. However, as we throw exceptions through the
return value in Servo, we don't need it at all.
2014-05-16 12:00:59 +02:00
bors-servo
07faf6efa1
auto merge of #2446 : glennw/servo/issue-2440, r=Ms2ger
2014-05-16 05:28:49 -04:00
Cameron Zwarich
dbf260ac1f
Reorder the cases of image_cache_task::Msg so that the priv ones are adjacent.
2014-05-15 19:31:01 -07:00
Cameron Zwarich
2ec4486379
Make some cases of image_cache_task::Msg priv.
2014-05-15 19:30:08 -07:00
Glenn Watson
cc5a04d140
Add gdb pretty printer helpers for TrustedNodeAddress etc. Just a starting point.
2014-05-16 10:50:39 +10:00
Brendan Zabarauskas
868f7501c9
Remove extra split_to_width call
...
This does not seem to do anything, and according to @pcwalton it might be unnecessary. Float layout is rather broken anyway, and needs to be reworked.
2014-05-15 17:47:28 -07:00
Brendan Zabarauskas
d3dfb78683
Reorganise comments
2014-05-15 17:45:57 -07:00
Brendan Zabarauskas
16e2b131e7
Use CharIndex instead of GlyphIndex for LineIndices
...
All of the text run methods use character indices and the split_to_width function also uses character indices. Therefore it will be easier to use character indices to keep track of line breaks than glyph indices.
2014-05-15 17:40:44 -07:00
Matt Brubeck
aeed0ce3b6
Remove unnecessary 'pub's from IOCompositor
2014-05-15 16:04:53 -07:00
Glenn Watson
7cba2f1738
Remove unused imports for UnionTypes codegen. Fixes #2440 .
2014-05-16 08:46:20 +10:00
bors-servo
e5eac5b538
auto merge of #2443 : bjz/servo/linebox_range, r=pcwalton
...
Glyph indices are currently not tracked, once they are, they will allow us to implement faster line breaks in the future.
cc. @pcwalton
2014-05-15 18:37:37 -04:00
Brendan Zabarauskas
fccc5d2071
Add some debug assertions
2014-05-15 15:33:09 -07:00
Brendan Zabarauskas
f883c6238e
Use a tuple of fragment and glyph indices as the index type for LineBoxes
...
Glyph indices are currently not tracked, once they are, they will allow us to implement faster line breaks in the future.
2014-05-15 14:27:19 -07:00
Ms2ger
8182105204
Use JS_ObjectToOuterObject in wrap callbacks.
2014-05-15 20:58:51 +02:00
Brendan Zabarauskas
26e580bbdc
Improve Range method documentation and field and parameter names
2014-05-15 10:48:48 -07:00
bors-servo
3ccc81b9dc
auto merge of #2426 : bjwbell/servo/add-message-to-assert, r=pcwalton
...
If msttcorefonts isn't installed, output a more informative error message.
./servo ../src/test/html/about-mozilla.html prints
"task 'LayoutWorker' failed at 'No matching font(s), are the appropriate fonts installed?',
../servo/src/components/gfx/font_context.rs:195"
vs.
"task 'LayoutWorker' failed at 'assertion failed: fonts.len() > 0',
../servo/src/components/gfx/font_context.rs:195"
2014-05-15 12:19:17 -04:00
bors-servo
51d1284c60
auto merge of #2435 : zwarich/servo/contravariant-lifetime, r=jdm
...
Since ContravariantLifetime doesn't take up any storage space, this
means that JSRef will be a single word. This fixes #2333 .
2014-05-15 10:40:21 -04:00
bors-servo
9865fddbb6
auto merge of #2438 : bjwbell/servo/dotted-border, r=pcwalton
...
Basic support for dotted borders.
2014-05-15 00:40:25 -04:00
Bryan Bell
d570b80b6b
Add dotted border support.
2014-05-14 18:59:27 -07:00
Brendan Zabarauskas
2e37b5e8fe
Make RangeIndex trait more general
2014-05-14 15:41:00 -07:00
bors-servo
2785fcbce0
auto merge of #2436 : zwarich/servo/contravariant-lifetime-layout, r=pcwalton
...
Since ContravariantLifetime uses no storage, this will reduce the size of a LayoutNode from 3 words to 2.
2014-05-14 18:07:25 -04:00
Cameron Zwarich
e9a6430d88
Use ContravariantLifetime in LayoutNode.
...
Since ContravariantLifetime uses no storage, this will reduce the size
of a LayoutNode from 3 words to 2.
2014-05-14 14:59:34 -07:00
Cameron Zwarich
99a0dabc1a
Don't check the field parameter in LayoutNode::eq.
...
The chain field shouldn't be relevant for equality, since it is just a
hack to artificially extend lifetimes.
2014-05-14 14:58:05 -07:00
Cameron Zwarich
b8d423d931
Switch to using ContravariantLifetime in JSRef<'a, T>.
...
Since ContravariantLifetime doesn't take up any storage space, this
means that JSRef will be a single word. This fixes #2333 .
2014-05-14 14:13:58 -07:00
bors-servo
309c9db2ac
auto merge of #2432 : SimonSapin/servo/remove-optnewvector, r=larsbergstrom
...
Before we had Vec<T>, Option<~[T]> was used as an optimization of ~[T] to avoid allocating for empty vectors when that was the common case. Vec<T> itself does this optimization, so there is no need for this anymore.
r? @larsbergstrom
2014-05-14 13:43:15 -04:00
Ms2ger
765cea73d9
Implement iframe.contentWindow.
2014-05-14 17:58:40 +02:00
Ms2ger
85285113e4
Instate a pre-wrap hook that outerizes its argument, to satisfy an undocumented JSAPI requirement.
2014-05-14 17:39:13 +02:00
Ms2ger
8f63c9e1c8
Store the subpage id in the Page.
2014-05-14 17:23:18 +02:00
Simon Sapin
d3a53296cd
Remove OptNewVector and use Vec instead.
...
Before we had Vec<T>, Option<~[T]> was used as an optimization of ~[T]
to avoid allocating for empty vectors when that was the common case.
Vec<T> itself does this optimization, so there is no need for this anymore.
2014-05-14 16:14:23 +01:00
bors-servo
b4bbf546f4
auto merge of #2429 : Ms2ger/servo/page-clone, r=jdm
2014-05-14 10:37:42 -04:00
bors-servo
2168956a59
auto merge of #2430 : Manishearth/servo/patch-2, r=SimonSapin
...
I noticed that our CONTRIBUTING file doesn't link to the easy bugs, maybe it should?
2014-05-14 08:22:17 -04:00
Manish Goregaokar
51ca04766f
Add a link to easy bugs
2014-05-14 17:36:38 +05:30
Ms2ger
b77869bd9a
Add a subpage_id field to NewLayoutInfo.
2014-05-14 12:50:26 +02:00
Ms2ger
69172a1ae5
Rename the pipeline ID fields in NewLayoutInfo.
...
This will make the distinction clearer with the subpage ID field to be added.
2014-05-14 12:44:59 +02:00
Ms2ger
52fbaf7e17
Pass a non-Option SubpageId to Pipeline::with_script.
...
The ScriptTask is only reused for subpages, so there's no reason to pass an
Option.
2014-05-14 12:37:35 +02:00
Ms2ger
44fb9eb28f
Avoid unnecessary Rc clone in Window::new.
2014-05-14 12:26:24 +02:00
bors-servo
288550a2bf
auto merge of #2428 : zwarich/servo/remove-add-html-element, r=jdm
...
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207 .
2014-05-14 01:25:13 -04:00
bors-servo
049fa56fff
auto merge of #2425 : saneyuki/servo/window_helper, r=jdm
...
Fix #2418
2014-05-14 00:55:17 -04:00
Cameron Zwarich
a44e9e8e6c
Remove addHTMLElement from Bindings.conf.
...
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207 .
2014-05-13 21:40:36 -07:00
bors-servo
48b1938ca3
auto merge of #2394 : Ms2ger/servo/instantiateJSToNativeConversionTemplate, r=jdm
...
This moves all the handling of optional arguments into `CGArgumentConverter`, and leaves `instantiateJSToNativeConversionTemplate` to only deal with the declaration of stack variables.
2014-05-14 00:25:17 -04:00
Tetsuharu OHZEKI
facffe0966
Move Window helper methods to a WindowHelpers trait
2014-05-14 13:14:29 +09:00
bors-servo
6871e4ccb6
auto merge of #2420 : Ms2ger/servo/merge-Page-PageTree, r=pcwalton
2014-05-13 23:52:21 -04:00