Commit graph

1719 commits

Author SHA1 Message Date
Keegan McAllister
9f6de7e5e3 Fix build failure in make check-content 2013-07-10 16:02:54 -07:00
bors-servo
1f7c738a89 auto merge of #568 : SimonSapin/servo/rust-cssparser-in-tree, r=metajack
[As discussed](https://github.com/mozilla/servo/wiki/Meeting-2013-07-01#css), even though this parser is not used yet, having it built and tested with the rest of Servo helps ensure it does not bitrot.
2013-07-10 13:27:41 -07:00
Simon Sapin
d75489356e Add a submodule for rust-cssparser
Even though this parser is not used yet, having it built
and tested with the rest of Servo helps ensure it does not bitrot.
2013-07-10 20:40:01 +01:00
bors-servo
66c9828a9e auto merge of #567 : metajack/servo/more-to-read, r=jdm
...s.
2013-07-10 10:12:46 -07:00
Jack Moffitt
dbeaa9e13f Added note about make bindings. 2013-07-10 10:19:56 -06:00
Jack Moffitt
3d91193527 Added new dependencies and info about keyboard shortcuts and make targets. 2013-07-10 09:47:15 -06:00
bors-servo
34a35054e9 auto merge of #563 : metajack/servo/glfw, r=metajack
This code replaces glut with glfw. The motivation here is address the GPU driver bugs on Linux when using multiple `Display *` pointers with shared GL contexts instead of a single common one. GLFW has native access methods which provide access to its `Display *`, which appears to be unique among all the similar toolkits.

Details:
- Adds glfw and glfw-rs to the build
- Removes GLUT code and replaces it with GLFW versions
- Fixes hard coded initial window values
- Fixes clean targets
- Event loop doesn't block on windowing events anymore
2013-07-10 06:57:36 -07:00
Jack Moffitt
cfc7491b1f Add Makefile trigger for forcing clean-rust to happen. 2013-07-09 16:26:33 -06:00
bors-servo
5af5888432 auto merge of #566 : kmcallister/servo/derive-eq, r=metajack
Fixes #181.
2013-07-09 13:42:44 -07:00
Jack Moffitt
870db39836 Update to latest Rust. 2013-07-09 14:37:53 -06:00
Keegan McAllister
cfffd05424 Derive more Eq implementations
Fixes #181.
2013-07-09 13:09:14 -07:00
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