Commit graph

820 commits

Author SHA1 Message Date
Brian J. Burg
0b42b7f537 Rewrite Makefiles to be closer to doing The Right Thing(tm) 2012-09-24 17:56:35 -07:00
Brian J. Burg
b1ef70b402 Add FlowContext.iter_boxes_for_node 2012-09-21 19:01:18 -07:00
Brian J. Burg
6e9b2ed6af Add some TODO issue numbers 2012-09-21 18:19:35 -07:00
Brian J. Burg
a2c65cd075 Remove RenderBox.get_image() and data.background_image; fix broken image drawing regression
Add TODO about Issue 84
2012-09-21 18:19:19 -07:00
Brian J. Burg
42cf023f63 Add stub implementations for RenderBox.border_box() and content_box() 2012-09-21 17:17:53 -07:00
Brian J. Burg
c4338500b2 Split layout/base.rs into box.rs and flow.rs 2012-09-21 16:23:30 -07:00
Brian J. Burg
b5e0cee1ab Revamp how images are handled. HTMLImageElement sends a prefetch message to the image cache during parsing. Other miscellaneous cleanup. 2012-09-21 15:20:37 -07:00
Brian J. Burg
b7b3cc8bbb Clean up aux layout data creation 2012-09-21 10:20:43 -07:00
Patrick Walton
545acff3a8 Update sharegl 2012-09-20 18:27:51 -07:00
Patrick Walton
36f7886d15 Do cross-process texture sharing if SERVO_SHARE=1 2012-09-20 18:27:14 -07:00
Brian J. Burg
75acc54fde Update readme to latest rust checkpoint 2012-09-20 17:25:10 -07:00
Brian J. Burg
30c3df710b Implement dom::element::Element.{get_attr, set_attr} 2012-09-20 17:25:10 -07:00
Brian J. Burg
719310615e Move Document and Node to own files. 2012-09-20 17:25:10 -07:00
Brian J. Burg
789398ddc2 Move DOM window to own file 2012-09-20 17:25:10 -07:00
Brian J. Burg
76a43555ac Parse a bunch more tags; move ElementData enum to its own file; fix some UA style fakery; remove old DOM parser. 2012-09-20 17:25:10 -07:00
Brian J. Burg
754bbeae41 Move create_box_data to be a method of LayoutTreeBuilder; add an explicit UA stylesheet simulation method 2012-09-20 17:25:10 -07:00
Brian J. Burg
4ec6c3f78e Update rust-core-foundation submodule 2012-09-20 17:24:33 -07:00
Patrick Walton
7a077e3459 Add sharegl and rust-io-surface to the build 2012-09-20 16:58:29 -07:00
Patrick Walton
fa257b7e98 Fix rust-opengles; build rust-io-surface 2012-09-20 16:01:53 -07:00
Brian J. Burg
be302ae2c9 Update rust-glut submodule 2012-09-20 15:53:35 -07:00
Brian J. Burg
4265daafc8 Add entry for submodule sharegl 2012-09-20 15:40:04 -07:00
Brian J. Burg
4e97f1a868 update rust-opengles 2012-09-20 15:38:49 -07:00
Patrick Walton
c679cfe74c Add sharegl submodule 2012-09-20 15:12:21 -07:00
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