Commit graph

5232 commits

Author SHA1 Message Date
bors-servo
c085a93f9d auto merge of #574 : metajack/servo/bindgen-deps, r=jdm
This touches the `.rs` files even if they don't change. This will cause libscript to rebuild sometimes even when it doesn't have to. This seems better than having bindgen run every time as the case where CodegenRust.py changes but doesn't change the output `.rs` seems like it should be rare.

r? @jdm
2013-07-10 15:33:47 -07:00
Tim Kuehn
8b8d2f5a4b scripts from inactive pipelines resize upon navigating to their pages 2013-07-10 15:18:56 -07:00
Tim Kuehn
9f6cbf91c6 mildly cleaner profiling code in util::time 2013-07-10 14:11:28 -07:00
Jack Moffitt
ebbfde06f9 Bindings gen touches output Rust files to prevent it from running every time. 2013-07-10 15:04:18 -06:00
Jack Moffitt
525fdd431d Fix replaceFileIfMissing return value. 2013-07-10 15:03:47 -06:00
Josh Matthews
65f9aefb78 Generate DOM bindings for UIEvent and MouseEvent. 2013-07-10 16:41:08 -04:00
Josh Matthews
8787c1ac1f WebIDL codegen: Remove unneeded C++ goop. 2013-07-10 16:40:02 -04:00
Josh Matthews
f2ab39376a WebIDL codegen: Add support for dictionary inheritance. 2013-07-10 16:37:05 -04:00
Josh Matthews
0d39bd1ba9 DOM bindings: Add support for fallible JS unwrapping. 2013-07-10 16:34:02 -04:00
Josh Matthews
354ac9b8cb Add missing license header. 2013-07-10 16:27:43 -04: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
Josh Matthews
d0ddca7323 WebIDL codegen: Add setter support. 2013-07-10 16:26:27 -04:00
Josh Matthews
ea983cf8e4 Import partial interface support for WebIDL parsing from Gecko. 2013-07-10 16:18:02 -04: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
25385e7be5 Add support for closing the window with window chrome or escape key. 2013-07-10 10:18:06 -06:00
Jack Moffitt
3d91193527 Added new dependencies and info about keyboard shortcuts and make targets. 2013-07-10 09:47:15 -06:00
Josh Matthews
e1c406f594 Avoid endlessly regenerating bindings after modifying CodegenRust.py. 2013-07-10 11:28:17 -04: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