Commit graph

5067 commits

Author SHA1 Message Date
Bryan Bell
432b8cdb3b Cleanup whitespace
Cleanup whitespace + move functions for easier reading.
2014-05-20 23:57:42 -07:00
Bryan Bell
2bb5c8bdf3 Refactor groove & ridge border support, add inset & outset border support
Significant cleanup of border support, adds inset & outset border code. Border rendering matches
Chrome's border rendering.
2014-05-20 23:22:28 -07:00
Manish Goregaokar
114d2e3565 Fix some XHR warnings 2014-05-21 10:27:55 +05:30
Bryan Bell
afe0c0bfa6 Add ref test for dashed, dotted, groove, and ridge borders.
Don't line up :'s in render_context.rs (style)
2014-05-20 19:36:11 -07:00
bors-servo
28e3c17340 auto merge of #2442 : Manishearth/servo/xhr-async, r=jdm
(Note that only `getAllResponseHeaders()` is supported at the moment, I'll be adding the other header methods later.)
2014-05-20 12:16:35 -04:00
bors-servo
ca9396ff9c auto merge of #2434 : Ms2ger/servo/contentWindow, r=jdm 2014-05-20 11:43:46 -04:00
Manish Goregaokar
533fab46f9 Async XHR GET with basic response header support 2014-05-20 21:01:12 +05:30
Bryan Bell
792666ec87 Add groove and ridge border support. 2014-05-20 02:20:26 -07:00
Glenn Watson
4d3a0a9faa Update compositor clip rect when page size changes. Fixes #2161. 2014-05-20 15:59:29 +10:00
bors-servo
90a0bcfa78 auto merge of #2380 : Manishearth/servo/progressevent-type, r=Ms2ger 2014-05-18 05:19:32 -04:00
Manish Goregaokar
7bcfaa603b Handle type parameter in ProgressEvent constructor (#2379) 2014-05-18 14:43:52 +05:30
bors-servo
0183483248 auto merge of #2459 : zwarich/servo/tree-map-rev-iter, r=jdm 2014-05-18 00:28:37 -04:00
bors-servo
7bfbb236ba auto merge of #2461 : zwarich/servo/glyph-borrow-workaround, r=jdm 2014-05-17 23:55:42 -04:00
Cameron Zwarich
880842ac60 Remove a workaround for a missing inferred borrow. 2014-05-17 20:12:50 -07:00
Cameron Zwarich
34c90c36ce Use the mut_iter method of TreeMap now that it exists. 2014-05-16 21:20:45 -07:00
bors-servo
f89bc6b958 auto merge of #2458 : bjz/servo/fix-regression, r=pcwalton
Fixes #2457
2014-05-16 20:16:49 -04:00
Brendan Zabarauskas
4a4eeb70ec Fix linebreak regression
Fixes #2457
2014-05-16 17:12:16 -07:00
bors-servo
e6f2178c54 auto merge of #2456 : bjz/servo/metrics, r=pcwalton
cc. @pcwalton
2014-05-16 18:31:34 -04:00
bors-servo
060f17dc6f auto merge of #2450 : zwarich/servo/image-cache-priv, r=pcwalton 2014-05-16 18:01:43 -04:00
bors-servo
47bdecf511 auto merge of #2447 : glennw/servo/issue-703, r=jdm 2014-05-16 17:35:37 -04:00
bors-servo
392cc68652 auto merge of #2416 : SimonSapin/servo/static-initial-values, r=larsberg
Thanks to @Kimundi for https://gist.github.com/Kimundi/8782487

r? @larsbergstrom
2014-05-16 17:07:53 -04:00
Brendan Zabarauskas
3cf82c7c92 Avoid unnecessary calculations of the entire run metrics 2014-05-16 13:59:33 -07:00
bors-servo
f11e860698 auto merge of #2448 : mbrubeck/servo/priv-compositor, r=pcwalton 2014-05-16 16:37:56 -04:00
Brendan Zabarauskas
1f7963e86b Refactor font metric calculation
This splits out the advance calculation and makes it more declarative
2014-05-16 13:34:53 -07:00
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