Commit graph

684 commits

Author SHA1 Message Date
Brian J. Burg
f08f56d40d Add port of Gecko's CompressedGlyph. 2012-10-03 15:14:10 -07:00
Josh Matthews
eaada181b1 Merge branch 'windowbinding' 2012-10-02 11:03:43 -04:00
Josh Matthews
92212ee4e4 Update submodules. 2012-10-02 11:02:45 -04:00
Josh Matthews
8fb858b269 Fix linux build. 2012-10-02 00:25:25 -04:00
Josh Matthews
27ccaa80be Add basic content test framework. 2012-10-02 00:23:04 -04:00
Josh Matthews
006f5be58f Move Window method implementations into actual impl to better reflect proposed bindings. 2012-10-01 23:55:34 -04:00
Brian J. Burg
8729ea5791 Fix missing import in layout/inline.rs 2012-09-29 12:13:24 -07:00
Brian J. Burg
9ed67b31df Remove remaining #doc attr comments 2012-09-29 12:11:55 -07:00
Brian J. Burg
5774950ede More inline flow struct refactor 2012-09-29 12:03:14 -07:00
Brian J. Burg
90f3fa97b5 Change InlineFlowData.boxes from DVec to DList 2012-09-29 12:03:14 -07:00
Brian J. Burg
300ff62ca5 Fix a test. 2012-09-26 20:42:32 -07:00
Brian J. Burg
49de0a7fac Refactor FlowContext to have the preferred nesting strategy of enum variants and structs. 2012-09-26 18:17:44 -07:00
Brian J. Burg
e89d2fa782 Swap RenderBox and RenderBoxData, making RenderBox variants each hold
the common struct as first field. Add a d() accessor for the common
struct data. Other miscellaneous fixes.
2012-09-26 17:26:21 -07:00
Brian J. Burg
b9b3895a8a Store pointer to Content in JSContext private slot; add methods for pure folding over a flow's boxes; Set up layout query protocol; Hook up HTMLImageElement.width to use content->layout blocking queries. 2012-09-25 16:07:38 -07:00
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