Commit graph

1112 commits

Author SHA1 Message Date
Brian J. Burg
42c6e45d08 Persist original character flag data (is space, is cluster, is breakable, etc) in the glyph store when setting glyph-related data. 2012-11-20 18:17:34 -08:00
Brian J. Burg
d460162306 Add hack to reduce baseline wrongness. Also issue-ify all TODOs in inline layout. 2012-11-20 17:08:41 -08:00
Brian J. Burg
a9fdbf0c66 Add pixel-snapping method to Au. 2012-11-20 17:08:17 -08:00
Brian Anderson
e1d4045399 Update rust-css, rust-netsurfcss for line-height 2012-11-19 16:02:46 -08:00
Brian J. Burg
6d5bb1e5c6 Draw baselines when debug logging servo/layout/box.rs. Closes #154. 2012-11-19 16:00:07 -08:00
Brian J. Burg
0b37bdb332 Don't coalesce UnscannedTextBoxes if their font styles differ. 2012-11-19 15:17:51 -08:00
Brian J. Burg
d76195757a Force root flow's box size to coincide with the viewport if child
flows have less combined height than the viewport height.

This makes Issue #218 go away in the case when the HTML element's
style specifies a background color.
2012-11-19 14:43:10 -08:00
Brian J. Burg
02e0734613 Correctly attach a box (corresponding to the root node) to the root flow. 2012-11-19 13:50:58 -08:00
Brian J. Burg
d65140f2d2 Make DebugMethods pure; fix uses in flow and box (somewhat barbarically). 2012-11-19 13:05:22 -08:00
Brian J. Burg
ec60c5827b box_builder: Add logging for cases when BoxGenerator attaches a singleton box to root or block flow. 2012-11-19 13:03:23 -08:00
Brian J. Burg
e838b171b9 In GlyphStore API, clarify function names to indicate whether byte or character indices are being iterated over. 2012-11-19 11:22:42 -08:00
Patrick Walton
0537e3723f html: Implement shallow node cloning. http://yellow5.com/pokey/ doesn't crash now. 2012-11-18 22:54:28 -08:00
Patrick Walton
2120a651c5 sub: Update rust-netsurfcss 2012-11-18 22:33:06 -08:00
Patrick Walton
1e389ebf17 Fix assert in Quartz backend 2012-11-18 22:32:02 -08:00
Patrick Walton
1ddfc14881 content, layout: Very, very early beginnings of support for incremental reflow.
Don't perform CSS selector matching when the window is resized.
2012-11-18 22:19:01 -08:00
Patrick Walton
c31bd43570 css, gfx, sub: Eliminate many copies 2012-11-18 22:01:40 -08:00
Patrick Walton
0c72f6ded8 gfx, html, layout: Unbreak images by removing a bad copy 2012-11-18 21:14:54 -08:00
Patrick Walton
61f558dffc css, dom, text: Stop copying so much. Also stop asserting. 2012-11-18 19:12:34 -08:00
Patrick Walton
230ac2dd17 css, sub: Don't copy so much 2012-11-18 18:59:34 -08:00
Brian J. Burg
2a1e97c80f Delete old range, s/MutableRange/Range/g; 2012-11-18 18:57:46 -08:00
Brian J. Burg
da17edee92 Move away from using non-freezable Range. 2012-11-18 18:49:46 -08:00
Brian J. Burg
a706a57f32 Move Range::relation_to_range 2012-11-18 18:31:01 -08:00
Brian J. Burg
0562871cc7 Make MutableRange freezable. 2012-11-18 18:25:02 -08:00
Brian J. Burg
25f019b9df Add a simple multi-byte character unicode test. 2012-11-18 17:00:18 -08:00
Brian J. Burg
451f99c5b1 Handle multi-byte characters in the hb output-interpretation code. (the multi-byte glyph storage code doesn't quite work yet, though.) 2012-11-18 16:59:46 -08:00
Brian J. Burg
fa8839250d Make the ligatures test case easier to see. 2012-11-18 15:31:32 -08:00
Brian J. Burg
cc1a0e5d6a Refactor the harfbuzz output interpretation function to be easier to follow. Remove old commented out version. 2012-11-18 15:29:17 -08:00
Brian J. Burg
f72548d8fa Split apart tests for ligatures and combining character sequences. 2012-11-18 12:48:28 -08:00
Brian J. Burg
1c04624312 Properly handle harfbuzz output for some simple ligature cases. 2012-11-18 12:48:23 -08:00
Patrick Walton
b1ab49d842 submodules: Update rust-css and rust-netsurfcss 2012-11-18 11:57:16 -08:00
Patrick Walton
5317939b64 Implement CSS text-align 2012-11-16 19:15:11 -08:00
Patrick Walton
fbd3bf0c8e Add node_id and node_has_id 2012-11-16 19:02:38 -08:00
Patrick Walton
fa7f985d08 Update submodules and set default text size to 16 2012-11-16 18:49:45 -08:00
Brian Anderson
43ebaa6006 Update rust-netsurfcss, rust-css 2012-11-16 18:30:29 -08:00
Patrick Walton
bb94e7cec5 Update rust-css 2012-11-16 18:08:20 -08:00
Patrick Walton
4539a0fa68 Implement font-size and font-style 2012-11-16 18:04:03 -08:00
Brian Anderson
73078bd2a0 Update rust-netsurfcss, rust-css 2012-11-16 17:42:07 -08:00
Brian J. Burg
31313d16b1 Implement text-align of left, center, right. 2012-11-16 16:27:20 -08:00
Patrick Walton
dba9905bbc layout: Hook up CSS to font rendering 2012-11-16 16:13:52 -08:00
Brian J. Burg
7fbba0b441 Switch to use CGFont binding. Give out the same CGFont for each new ScaledFont. Closes #152. Closes #184. 2012-11-16 15:21:34 -08:00
Patrick Walton
786746d3c6 gfx: Implement generic font names per CSS2 15.3.1 2012-11-16 15:16:19 -08:00
Brian J. Burg
dd1dcf33b2 Implement AbstractCFType::type_id(). Switch to use CFTypeRef::downcast(). 2012-11-16 14:31:18 -08:00
Brian J. Burg
9f91f2814e Fix some submodule test breakage. 2012-11-16 12:18:57 -08:00
Brian J. Burg
51461cd104 Rewrite the Core Foundation wrapper system. 2012-11-16 12:00:19 -08:00
Brian J. Burg
d3debc6bf8 add test case with a few ligatures and combining character sequences. 2012-11-16 09:43:09 -08:00
Brian J. Burg
c29855f66a Update rust version. 2012-11-16 08:54:44 -08:00
Patrick Walton
54a71a7d0c gfx: Allow tile size to be set on the command line 2012-11-15 20:47:27 -08:00
Patrick Walton
4fd486970b text: Don't crash on kerning/ligatures 2012-11-15 20:47:13 -08:00
Patrick Walton
6d9193233e Update rust-core-foundation to fix crash 2012-11-15 20:46:52 -08:00
Patrick Walton
ca217b4f75 css, gfx, layout, submodules: Update for compiler bugfixes 2012-11-15 17:34:18 -08:00