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
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