Commit graph

3647 commits

Author SHA1 Message Date
Patrick Walton
ff6cefb798 Update for language changes 2012-09-20 15:04:00 -07:00
Brian J. Burg
f3a8253bc8 Fix some unused variable compiler warnings. 2012-09-19 17:49:55 -07:00
Brian J. Burg
da7ae8a280 Add comments on overall design; move display list building to Flows and Boxes; create a DisplayListBuilder context; rename Box to RenderBox 2012-09-19 17:45:22 -07:00
Brian J. Burg
4e9e679547 Change some debug comment style and statements 2012-09-18 13:28:14 -07:00
Brian J. Burg
197d5f440e Update README macports instructions. Add latest working rust commit. 2012-09-18 11:26:04 -07:00
Josh Matthews
88a51c6a18 Remove references to libSDL in the readme. 2012-09-18 12:07:51 -03:00
Brian J. Burg
5e3ea3f872 Remove a stale comment and add missed context.rs (LayoutContext) 2012-09-17 18:50:06 -07:00
Brian J. Burg
989a96526b Remove used min/pref width from BoxLayoutData 2012-09-17 18:20:13 -07:00
Brian J. Burg
09e17ffc6b Move root flow size initialization into root.rs; move screen size into LayoutContext 2012-09-17 17:55:17 -07:00
Brian J. Burg
972791bb9f Thread RenderContext and LayoutContext throughout computations needing task assets, such as document URL, font cache, or image cache. 2012-09-17 17:24:42 -07:00
Brian J. Burg
bcdc2ac597 Shuffle around code in layout/base.rs to have better locality; move DebugMethods trait to own file 2012-09-17 17:24:31 -07:00
Brian J. Burg
eb9a6c0597 Add font metrics API for CoreText, and stub one out for FreeType 2012-09-17 15:11:37 -07:00
Brian J. Burg
1095c9e4ff Rewrite the layout tree to use tandem flow/box trees. Flows are
responsible for determining layout positioning based on formatting
context (block, inline, absolute, etc), while boxes are relatively
dumb, responsible only for reporting content-specific metrics to the
coordinating flow context, and creating display lists of oneself.

This design is experimental and may be axed in favor of a
traditional, single-tree layout data structure if it doesn't work out.
2012-09-17 10:53:12 -07:00
Brian Anderson
4e3e5a879d Do a little less copying in TextRun.split 2012-09-15 16:31:38 -07:00
Brian Anderson
d2da516ec0 Store the CTFont inside QuartzNativeFont 2012-09-15 14:42:14 -07:00
Josh Matthews
b4934473a0 Fix image width setter to use actual argument. Fix hasInstance checks to reflect the Handle changes in the JSAPI. 2012-09-15 17:11:19 -04:00
Patrick Walton
632bffd8f4 Add some primitive text line breaking 2012-09-14 19:57:10 -07:00
Brian Anderson
b7c241a091 Fix reftest 2012-09-14 18:37:30 -07:00
Brian Anderson
daf61fd483 Cleanup 2012-09-14 17:58:54 -07:00
Brian Anderson
b085bddd37 Change TextRun.break_text to TextRun.split 2012-09-14 17:51:55 -07:00
Brian Anderson
8cab503b02 Add TextRun.break_text 2012-09-14 17:18:12 -07:00
Brian Anderson
879f23d2c3 Remove doc attrs from text_run 2012-09-14 16:30:34 -07:00
Brian Anderson
6a5a579b98 Remove mode from TextRun ctor 2012-09-14 16:30:04 -07:00
Brian Anderson
6859730f7a Another attempt at computing the minimum breaking width for TextRuns 2012-09-14 16:26:47 -07:00
Brian Anderson
ddcc11069e That min_width calculation was totally wrong 2012-09-13 20:14:49 -07:00
Brian Anderson
397c049c71 Add TextRun.min_width 2012-09-13 20:10:01 -07:00
Brian Anderson
728c1ae601 Make shape_text take &str instead of ~str 2012-09-13 19:46:18 -07:00
Brian Anderson
ae27032299 Add TextRun.preferred_width 2012-09-13 19:39:02 -07:00
Brian Anderson
8bce1b60ed Precalculate the size of TextRuns 2012-09-13 19:37:57 -07:00
Brian Anderson
a475304754 Fonts should keep their libraries alive 2012-09-13 19:13:01 -07:00
Patrick Walton
d937e3c2fe Fix a build system typo and update submodules to correct linkage directives 2012-09-13 18:53:07 -07:00
Brian Anderson
c079d337f3 Give DisplayList its own GlyphRun type 2012-09-13 18:33:01 -07:00
Brian Anderson
4bb240ac79 Move display_list from layout to gfx 2012-09-13 18:17:30 -07:00
Brian Anderson
000b37cab6 as_buf -> as_imm_buf 2012-09-13 17:17:02 -07:00
Brian Anderson
365ef92f07 Fix accidental bogus copying of the font binary 2012-09-13 17:03:45 -07:00
Brian Anderson
413d458857 Ignore some busted tests 2012-09-13 17:03:17 -07:00
Patrick Walton
55b3aa2673 Fixes for language changes 2012-09-13 16:25:21 -07:00
Brian Anderson
f76755a671 Fix linux build 2012-09-13 14:30:23 -07:00
Brian Anderson
8785a07022 Fix name of stb_image::image mod 2012-09-13 14:27:47 -07:00
Brian Anderson
90565bec53 Update rust-stb-image 2012-09-13 14:24:36 -07:00
Brian Anderson
645009d181 Remove some debug logging 2012-09-12 17:58:03 -07:00
Brian Anderson
25e1529594 Use the correct syntax to ignore tests on mac 2012-09-12 17:56:55 -07:00
Brian Anderson
275d456118 Fix font segfaults 2012-09-12 17:54:12 -07:00
Brian Anderson
0bae84c985 Fix some mac font bustage 2012-09-12 17:09:34 -07:00
Brian Anderson
9e17f1334c Fix infinite recursion in Image ctor 2012-09-12 16:50:17 -07:00
Brian Anderson
23505d31b1 Update rust-core-foundation 2012-09-12 16:24:53 -07:00
Brian Anderson
ce07edcb56 Fix breakage in display_list_builder tests 2012-09-12 16:23:03 -07:00
Brian Anderson
732f8ce194 Update rust-glut and rust-layers 2012-09-12 16:22:46 -07:00
Brian Anderson
1d7aabd41e Update rust-layers 2012-09-12 15:05:33 -07:00
Brian J. Burg
0691c5d47b Move traverse to traverse_parallel 2012-09-12 09:54:52 -07:00