Commit graph

1758 commits

Author SHA1 Message Date
bors-servo
eb86e5086e auto merge of #564 : jdm/servo/contenttest, r=metajack 2013-07-09 10:13:55 -07:00
Josh Matthews
27b059b062 Make contenttest harness build again. 2013-07-09 12:53:34 -04:00
Jack Moffitt
e0e5e1a2a7 Replace glut with glfw.
Also fixes initial window size to get based on the windowing code instead of
being hardcoded everywhere. This code works on HiDPI displays, but does not
appropriately scale the output up yet.
2013-07-04 12:54:30 -06:00
Jack Moffitt
39e759fb20 Fix clean targets. 2013-07-04 12:51:23 -06:00
Jack Moffitt
1230282cec Add glfw and glfw-rs to servo build. 2013-07-04 12:51:02 -06:00
bors-servo
32c147fbde auto merge of #558 : tkuehn/servo/master, r=metajack
* constellation grants permission to renderers instead of passing tokens
* render tasks wrap layer buffer sets in ARCs
* removed no-longer-used field (constellation chan) from render task struct
2013-07-03 18:36:35 -07:00
Tim Kuehn
1f55db99bb removed unused constellation chan from render task 2013-07-03 16:52:03 -07:00
Tim Kuehn
dc8e3cbf9b render task no longer copies the layer buffer sets before sending paint messages -- uses an ARC instead 2013-07-03 16:28:26 -07:00
Tim Kuehn
6ba2f8d535 permission bool replaces compositor token 2013-07-03 14:09:48 -07:00
bors-servo
525519efac auto merge of #549 : jdm/servo/overload, r=jdm,metajack 2013-07-03 12:23:04 -07:00
Josh Matthews
eb95d82fe6 Implement WebIDL method overloads. Fixes #540. 2013-07-03 15:18:05 -04:00
bors-servo
213d9a011a auto merge of #550 : tkuehn/servo/master, r=metajack
When loading pages, the constellation spawns a new script<-->layout<-->renderer pipeline that loads in the background while scripts continue executing on the currently loaded page.
2013-07-03 09:42:47 -07:00
Tim Kuehn
6f7107ee9b removed unused macros from main/macros.rs 2013-07-02 17:26:46 -07:00
Tim Kuehn
c9c6cb3bf5 new token-permissions model, and compositor filters paint messages based on id 2013-07-02 17:26:46 -07:00
Tim Kuehn
a6eaffcd93 forward/back navigation with shift+backspace and backspace
script caches last loaded url -- currently no caching policy
naive caching of render layers for near-instant forward/back
handling evicted pipelines is currently broken
2013-07-02 17:26:30 -07:00
Tim Kuehn
d17a1f2ad7 rename engine --> constellation 2013-07-01 11:03:31 -07:00
Tim Kuehn
fba7ec423c add pipeline.rs, modularized pipelines communicating with constellation 2013-07-01 11:03:31 -07:00
bors-servo
fdb0d820a4 auto merge of #555 : sankha93/servo/master, r=jdm
Fixes the broken check-content target as reported by @jdm in #519.
2013-07-01 04:24:52 -07:00
Sankha Narayan Guria
3a306a463b Fixes check-content target. 2013-07-01 16:40:44 +05:30
bors-servo
fed4f951c1 auto merge of #551 : sfowler/servo/run-layout-once, r=metajack
Performance will be better and benchmarking easier if we don't run layout an extra unnecessary time when loading a page from the commandline. This is happening because we always send a resize event to the script task from the compositor whenever the platform tells us one happened, even if the window size didn't change. This PR fixes this by checking that the window size is actually different before sending the event.
2013-06-27 19:12:34 -07:00
Seth Fowler
72f5e5f30d Don't send a resize event if the window size didn't change 2013-06-27 19:04:01 -07:00
bors-servo
74ab914149 auto merge of #548 : sfowler/servo/glyph-store-cache, r=pcwalton
This PR makes text runs store the results of shaping as a vector of ARC<GlyphStore>; each element of the vector holds the shaped glyphs for a nonbreakable unit of text (basically a word). This change allows us to cache the shaped glyphs for the words, an approach that Gecko (and probably WebKit) uses. We get pretty good cache hit ratios even on the first run of layout for a page (I saw 62% on Wikipedia's main page today), although a lot of that is due to whitespace. This really comes into its own on subsequent layout runs, though, which are completely cached in the typical case.
2013-06-27 15:45:46 -07:00
Seth Fowler
677fce2546 Cache shaped text at word granularity 2013-06-26 18:58:44 -07:00
Seth Fowler
0ac520631a Add utility methods to Range 2013-06-26 18:58:44 -07:00
Seth Fowler
39c3a6ff1d Add HashCache and switch all caches from Copy to Clone 2013-06-26 18:58:38 -07:00
bors-servo
a066ce67d7 auto merge of #539 : sfowler/servo/create-textruns-in-box-builder, r=pcwalton
This is a preliminary step to adding parallel text shaping. In order to have enough time to do a useful amount of work in parallel, we need to trigger text shaping earlier. This PR moves TextRun creation into the box building phase of layout.

I'm pushing this in before the rest of the text shaping patches to avoid bitrot; it's already been through one unpleasant rebase.
2013-06-26 17:57:25 -07:00
Seth Fowler
4b172a312d Create text runs during box building 2013-06-26 17:51:36 -07:00
bors-servo
3defac6390 auto merge of #547 : brson/servo/alert, r=metajack
Depends on https://github.com/mozilla-servo/rust-alert/pull/2
2013-06-26 16:45:45 -07:00
Brian Anderson
70d9dd7634 Updgrade rust-alert 2013-06-26 16:19:32 -07:00
bors-servo
bc520e0143 auto merge of #546 : brson/servo/master, r=metajack 2013-06-26 15:36:53 -07:00
Brian Anderson
56e5ba1b82 Update for language changes 2013-06-26 13:44:26 -07:00
bors-servo
a01f6b97f2 auto merge of #542 : eric93/servo/floats, r=pcwalton
I added the minimal amount of code needed to place left-floats on the screen (right floats should also be possible soon). Text does not wrap around floats yet.

One thing I'm curious about is whether some existing abstractions (like Cell) can be used instead of this weird overwriting thing done in float_context.rs.
2013-06-25 16:18:31 -07:00
Eric Atkinson
427328e8e4 Stop crashing when building the flow tree 2013-06-25 11:12:29 -07:00
Eric Atkinson
49f80fd894 Fix up problems with float placement 2013-06-24 16:07:02 -07:00
Eric Atkinson
0c63dda290 Allow floats to have specified heights 2013-06-24 16:07:02 -07:00
Eric Atkinson
94e7a86b7e Added floats to the flow tree 2013-06-24 16:07:02 -07:00
Eric Atkinson
d3fe4f4e3a Add helper functions for floats 2013-06-24 16:07:02 -07:00
bors-servo
033af01283 auto merge of #535 : saneyuki/servo/o-opt, r=metajack
I think that we should show the error message until we restore the feature outputting the rendering result to a file.
2013-06-24 14:24:26 -07:00
bors-servo
6df102a117 auto merge of #537 : GlitchMr/servo/darwin-uname-m, r=metajack
I know that this is very small commit, but I guess it still counts, as comment simply lies.
2013-06-24 08:27:29 -07:00
Konrad Borowski
ab31e3165d It's actually uname -m lying. 2013-06-24 15:01:07 +02:00
saneyuki_s
5e096fa82a Show the error massage if 'o' option is passed. 2013-06-23 21:17:19 +09:00
bors-servo
9f34278931 auto merge of #533 : pcwalton/servo/slow-debug-code, r=metajack
r? @metajack
2013-06-21 13:36:24 -07:00
Patrick Walton
0371ea78e3 Remove slow debug code from box.rs. 2013-06-21 13:14:41 -07:00
bors-servo
8f32094d73 auto merge of #531 : eschweic/servo/master, r=metajack
There is now a SharedChan from the compositor to the renderer. Using this, tiles are re-rendered the tiles at a higher resolution after zooming (this is currently bound to a MouseClickUp event). Also, extra texture layers are deleted, which fixes a bug where old content was being displayed when a new paint message was sent.

Depends on rust-layers: 1e1e359da32c9d0ddb4f93b505a658d669008426
2013-06-20 20:09:25 -07:00
bors-servo
eb1e0230a9 auto merge of #532 : jrfeenst/servo/line-height3, r=pcwalton
Wikipedia, lipsum, and everything else I looked at seems fine now.
2013-06-20 19:24:29 -07:00
Joel Feenstra
09a4ba8d75 Fix computing line height for generic boxes and images. 2013-06-20 22:15:42 -04:00
Joel Feenstra
5038924a1a Fix line height for "normal" line-height styles. 2013-06-20 22:15:42 -04:00
Joel Feenstra
cb36464f06 Reapply "Add initial support for the line-height property. Line height is only based on the tallest box in each line and does not factor in the vertical-alignment. Improves whitespace handling by passing the whitespace state between function invocations."
This reverts commit 0bb3fbdde0.
2013-06-20 22:15:21 -04:00
eschweic
d95988da80 Implement dynamic resolution, messaging from compositor to renderer, delete unused texture layers 2013-06-20 17:37:47 -07:00
Patrick Walton
6301b18685 Merge pull request #530 from eschweic/master
Revert line height changes
2013-06-20 15:22:34 -07:00