Commit graph

185 commits

Author SHA1 Message Date
Keegan McAllister
36b8f63984 Restore failure handling
We probably leak some threads and resources, e.g. when the script task crashes
and doesn't get a chance to send layout data back to layout to be deallocated.

Not tested with iframes yet.
2014-02-12 18:07:32 -08:00
xiongmao86
a0a2802535 Fix #1612 Rename .rc to .rs, and relevant changes in Makefile.in 2014-02-09 13:56:47 +08:00
Ms2ger
5de886b31d Remove duplicate imports from render_task.rs. 2014-02-01 10:16:44 +01:00
Isabelle Carter
0892fada74 Multiple display list support 2014-01-30 17:11:17 -06:00
bors-servo
b28d08b4bc auto merge of #1529 : ibnc/servo/display_list_debug, r=metajack 2014-01-23 16:55:26 -08:00
Isabelle Carter
5663ca1eef Dumping display list levels to rust log 2014-01-23 12:06:54 -08:00
Deokjin Kim
3d941413da Implement white-space property(pre)
In order to support line-break by new-line character,
Fist, calculate new-line character's position.(fn flush_clump_to_list)
Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
2014-01-23 13:21:59 +09:00
patrick kim
b0380ae96a fix text-decoration property in layout 2014-01-23 09:51:08 +09:00
Patrick Walton
54f0f17f83 layout: Implement parallel reflow for the bubble-widths and
assign-heights phases.

This uses the new work-stealing deque. By default, 3/4 of a thread per
logical CPU is used. This can be tuned with the `-y` flag.

I measured a 65% reflow speedup on `perf-rainbow.html` and a 247% reflow
speedup on `http://en.wikipedia.org/wiki/South_China_Sea` on a 4-core
HyperThreaded Core i7. However, numbers were fairly volatile, especially
for the latter.
2014-01-22 15:59:21 -08:00
Lars Bergstrom
3e6ff80f18 Add extra debugging information. 2014-01-15 15:26:24 -06:00
zmike
193b6d2635 add names for all servo spawned tasks
* add servo_util::task::{spawn_named,spawn_with_named} functions

* add name param for spawn_listener and spawn_conversation functions

this should resolve #1169
2014-01-13 13:12:48 -05:00
Jack Moffitt
a7ef1cd35e Upgrade to latest Rust. 2014-01-12 19:45:45 -07:00
bors-servo
9340b1892d auto merge of #1455 : SimonSapin/servo/font-style, r=kmcallister
* Using .connect(", ") just to use .split(",") later is silly. Keep it a vector.
* The 'font-style' property can not be both italic and oblique. Use an enum instead of two booleans.
2014-01-03 13:28:27 -08:00
bors-servo
90f44738a4 auto merge of #1445 : webconv/servo/PR_android, r=kmcallister
1. We've aimed to android 4.3 Jellybean devices like Galaxy 10.1 and Galaxy Nexus, etc. I think it could still support android 4.1
2. Needs android ndk r9(not r9b) and latest android sdk
3. Needs some device list update on sdk for apk build.
4. Currently we can not build android port on mac because compiler build problem like https://github.com/mozilla/rust/pull/10921. Hopefully I expect that it could be resolved at next rust upgrade.
2014-01-03 07:40:48 -08:00
Simon Sapin
447cc64a40 Remove some trailing whitespace 2014-01-03 15:11:17 +00:00
Simon Sapin
5372212161 Refactor FontStyle and really fix #193
* Using .connect(", ") just to use .split(",") later is silly.
Keep it a vector.
* The 'font-style' property can not be both italic and oblique.
Use an enum instead of two booleans.
2014-01-03 15:11:17 +00:00
bors-servo
da14203f91 auto merge of #1454 : deokjinkim/servo/font_style, r=jdm
Add oblique style to pattern to find proper font.
2014-01-03 06:52:30 -08:00
Deokjin Kim
ddcbb3f038 Support oblique(font-style) for linux and android
Add oblique style to pattern to find proper font.
2014-01-03 21:06:55 +09:00
Simon Sapin
facac01524 Remove a dead function.
Turns out it wasn’t actually used anymore.
2014-01-03 10:13:08 +00:00
Deokjin Kim
5756680d90 Fix font-weight propery
Currently, hard coded value(FontWeight300) is used for font-weight property.
To display it properly, use parsed CSS font-weight value.
2014-01-03 17:18:09 +09:00
aydin.kim
28757e2257 update gfx font stuffs for android 2013-12-31 09:59:02 +09:00
Jack Moffitt
0c62b99559 Build with make instead of rustpkg. 2013-12-26 23:57:58 -07:00
Daniel Hedlund
e7a591a7e1 Ensure render and layout tasks get destructed before main thread finishes
Fixes #1097.
2013-12-15 14:25:41 -08:00
Ms2ger
9e2af4aae1 Mark some rust files as non-executable. 2013-12-13 18:34:57 +01:00
Tetsuharu OHZEKI
0f98647edc Remove unused import. 2013-12-13 23:50:09 +09:00
Patrick Walton
a2e91d242b layout: Perform text decoration propagation per CSS 2.1 § 16.3.1 without
going to the DOM.
2013-12-12 17:54:51 -08:00
Keegan McAllister
f0613184cf Don't clear buffers if we have no native graphics context
Fixes ./servo -z for content that calls window.close(), such as content tests.
2013-12-11 16:31:08 -08:00
Keegan McAllister
e349bfadb7 Kill Servo instead of displaying about:failure when running content tests
Fixes #1380.
2013-12-11 16:24:47 -08:00
patrick kim
ac216be06d makes linux/Arc<FontContextHandle> Rc<FontContextHandle> 2013-12-11 11:42:14 +09:00
patrick kim
0026eb0899 remove @ in LayoutTask.FontContext 2013-12-11 11:42:14 +09:00
patrick kim
55771bc307 make font/platform/gfx/font_context safe 2013-12-11 11:40:58 +09:00
Ryan Choi
d26bf36833 removing @ from flowtree. (but cloning boxes when creating a display list) 2013-12-10 13:44:20 +09:00
Patrick Walton
30bbaa49b7 Revert "auto merge of #1356 : ksh8281/servo/remove_@_in_LayoutTask.FontContext, r=pcwalton"
This reverts commit e8ffac13d7, reversing
changes made to db923feffe.

Reverting this change because FreeType is *not* thread safe. See the
documentation here:

http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html

"In multi-threaded applications, make sure that the same FT_Library
object or any of its children doesn't get accessed in parallel."

We will need to use a `MutexArc` instead.
2013-12-09 19:40:08 -08:00
bors-servo
e8ffac13d7 auto merge of #1356 : ksh8281/servo/remove_@_in_LayoutTask.FontContext, r=pcwalton
Remove @ in LayoutTask.FontContext, ScannedTextBox.text_run
#1334
2013-12-09 19:13:45 -08:00
patrick kim
e1e59ac3b6 remove FontContxtHandle.clone 2013-12-10 11:58:51 +09:00
Patrick Walton
64222f5772 layout: Remove DisplayBoxes to save memory and as one step toward an
`@`-free layout
2013-12-09 18:16:06 -08:00
patrick kim
f187035e25 remove @ in LayoutTask.FontContext 2013-12-10 08:59:43 +09:00
patrick kim
5077c771a5 make font/platform/gfx/font_context safe 2013-12-10 08:59:43 +09:00
patrick kim
2865ab4e29 remove @ from ScannedTextBox.run 2013-12-10 08:59:43 +09:00
Daniel Hedlund
79789a18de Implement font leading metric for linux platform
Fixes #76.
2013-12-09 10:33:58 -08:00
Daniel Hedlund
00e3a2144d Document the Au struct and add similar font metrics debug as mac 2013-12-09 10:22:26 -08:00
Daniel Hedlund
b5046d24e0 Remove orphaned gfx::text::shaper code
The shaper code referenced in this issue is no longer being used.  It
was removed in commit a535f22146, but
later reintroduced due to a merge conflict in commit
d64d987e1d.

Fixes #163.
2013-12-07 03:03:39 -08:00
patrick kim
86e2cac8e8 fix indent & some code 2013-12-07 09:52:54 +09:00
Junyoung Cho
ab1291f34a Patch for macos 2013-12-07 09:52:54 +09:00
patrick kim
1b8f9c09d3 remove @ fontcontext 2013-12-07 09:52:54 +09:00
patrick kim
964b5e9d9a remove SendableTextRun & remove @mut Font From TextRun&Shaper(Font),Font.shaper,
fontfamily,fontgroup,render_context.font_ctx
2013-12-07 09:52:06 +09:00
patrick kim
c60ab361a5 remove @ from FontContextHandle in linux 2013-12-07 09:48:19 +09:00
Deokjin Kim
a5db5d5eeb Use last resort font when only there is no font in font group.
There is a little bit of performance gain of layout.
2013-12-06 16:50:25 +09:00
Keegan McAllister
4a72abbbb2 Return None from get_graphics_metadata in headless compositor
This fixes servo -z.
2013-12-05 13:55:33 -08:00
Ms2ger
b8a3f8ad5e Remove unused imports. 2013-11-30 19:50:20 +01:00