Commit graph

5232 commits

Author SHA1 Message Date
Brian Anderson
02d82a5739 Move brson's submodule remotes to mozilla-servo 2012-10-17 16:02:11 -07:00
Brian J. Burg
3c58145f1a Fix some bugs in display list construction/dirty rect intersection. Rename some variables to emphasize that dirty rect is w.r.t. global coords. 2012-10-17 15:35:36 -07:00
Brian J. Burg
5fd7e72d06 Compute actual linebox bounding boxes, and set heights of RenderBoxes in an InlineFlow.. 2012-10-17 15:35:35 -07:00
Brian J. Burg
7c26c56f49 Update rust-geom with correct union impl. 2012-10-17 15:35:35 -07:00
Brian Anderson
82c829c0e7 More lipsum 2012-10-17 07:49:58 -07:00
Patrick Walton
0a7f127a76 layout: Emergency fix to get burritocats displaying again.
This simply makes some asserts nonfatal.
2012-10-17 00:05:31 -07:00
Brian Anderson
dafa055e05 Add some tests 2012-10-16 22:39:22 -07:00
Brian J. Burg
5c5a7a1866 Hook up linebox scanner, and fix many glitches in the scanning algorithm. 2012-10-16 21:09:05 -07:00
Brian J. Burg
5e7f9fc585 Rewrite iter_indivisible_pieces_for_range in idiomatic offset+length parlance. 2012-10-16 21:09:05 -07:00
Brian J. Burg
c32b74eb63 Fix off-by-one errors in whitespace-word clumping. 2012-10-16 21:09:05 -07:00
Brian J. Burg
5e5844a33d Don't measure advance zero-length text. 2012-10-16 21:09:05 -07:00
Brian J. Burg
6b7a0a00f8 Don't try to measure pref-width of a single newline. 2012-10-16 21:09:05 -07:00
Brian J. Burg
c545dd901b Fix Font::measure_text() to actually compute a bounding box width. 2012-10-16 21:09:05 -07:00
Brian J. Burg
22af9770b8 Clean up when exactly an inline flow's RenderBoxes are assigned their widths and heights. 2012-10-16 21:09:05 -07:00
Brian J. Burg
e3873620b3 Update rust-geom hash. 2012-10-16 21:09:05 -07:00
Brian J. Burg
3e0495f97c Add indirection and logging to display list construction; temporarily disable dirty region intersection in Renderbox display item generation. 2012-10-16 21:09:05 -07:00
Brian J. Burg
3f9db09163 Add RenderBox::margin_box() 2012-10-16 21:05:35 -07:00
Brian J. Burg
1704daccb7 Work around a bug in rustc. 2012-10-16 21:05:35 -07:00
Brian J. Burg
061e58797b Implement LineboxScanner 2012-10-16 21:05:35 -07:00
Brian Anderson
ceb496230a Add something like absolute positioning 2012-10-16 19:21:49 -07:00
Brian Anderson
7aa07816d4 Add basic borders 2012-10-16 17:11:31 -07:00
Brian J. Burg
928eec48b4 Finish RenderBox::split_to_width() 2012-10-15 18:48:41 -07:00
Brian Anderson
83bb1bda0e Move the contents of BuildMsg to a struct 2012-10-15 18:39:23 -07:00
Brian Anderson
fdf7dc1a02 Add most font metrics for FreeType 2012-10-15 18:14:10 -07:00
Brian J. Burg
952d0ce2f1 Remove spurious debug statement 2012-10-15 17:27:54 -07:00
Brian J. Burg
451828bce0 Implement TextRun::metrics_for_range, and text box splitter helper. 2012-10-15 17:23:15 -07:00
Brian J. Burg
78cfdee5e8 Use text run's font when measuring text run min width. 2012-10-15 17:23:15 -07:00
Brian J. Burg
357905c202 Store text run's font on the TextRun object; write a dummy serialize/deserialize method so textruns can still be copied into/out of display list. 2012-10-15 17:23:15 -07:00
Brian J. Burg
4aa9bbd2ab Add trait for TextRun methods. 2012-10-15 17:23:15 -07:00
Brian J. Burg
8b80e15fd0 Add stubs for box-splitting. 2012-10-15 17:23:15 -07:00
Brian Anderson
40f26cf63e Move rust-css to rust-netsurfcss 2012-10-15 16:43:33 -07:00
Brian Anderson
6ffde5fdda Fix linux breakage 2012-10-15 16:43:33 -07:00
Brian J. Burg
a81bf8692e Fix CoreText font metrics bindings. 2012-10-15 15:10:38 -07:00
Brian J. Burg
ec9cbeb150 Fix arithmetic error in au::from_pt(). 2012-10-15 15:10:38 -07:00
Brian J. Burg
54f1e83844 Fonts compute their own metrics using NativeFont. 2012-10-15 15:10:37 -07:00
Brian J. Burg
e28827d1c0 measure_text(): actually extend text bounding box with each new glyph advance. 2012-10-15 15:10:37 -07:00
Brian J. Burg
47144ce3c3 Stub out more complicated RunMetrics. 2012-10-15 15:10:37 -07:00
Brian J. Burg
f7e3886231 Implement au::scale_by 2012-10-15 15:10:37 -07:00
Brian Anderson
c2567fb2f3 Apply background colors to all box types 2012-10-15 15:02:23 -07:00
Brian Anderson
fc93bea3c6 Make GenericBox display background colors again 2012-10-15 14:33:37 -07:00
Brian J. Burg
d1caa74d44 Improve debug logging for range repair in TextRunScanner 2012-10-15 11:11:09 -07:00
Brian Anderson
3e9254ef0f Add rust-css, bindings for libcss 2012-10-14 17:40:56 -07:00
Brian J. Burg
c8f686083a Fix stack blowup. 2012-10-14 12:43:08 -07:00
Brian J. Burg
2441c77991 Rewrite the box builder's guts; decompose things and make the BuilderContext do the heavy lifting. 2012-10-14 12:43:08 -07:00
Brian Anderson
c41ff73847 Rate limit resize events 2012-10-14 12:35:05 -07:00
Brian Anderson
a06d45f2a5 Refactor how dom events are propagated
There is no longer an out-of-place add_event_listener method on Compositor.
Instead the creator of Engine sets of the dom (Port, SharedChan) pair and
distributes a channel to OSMain and the Port to ContentTask.
2012-10-14 12:16:18 -07:00
Brian Anderson
bee47744a3 Convert the content task's control messages and dom events to pipes 2012-10-14 12:16:16 -07:00
Brian Anderson
c2377c574c Renderer can't just skip frames 2012-10-14 01:09:28 -07:00
Brian Anderson
1d23caffe8 Add more timing to layout_task 2012-10-14 01:02:23 -07:00
Brian Anderson
e6c8ee9913 Refactor layout_task a little 2012-10-14 00:42:25 -07:00