Commit Graph

718 Commits

Author SHA1 Message Date
Brian J. Burg
a97fdf3c1e servo: Create font matchers and native equivalents. Add in a dummy font cache. Untangle some test font stuff.
Source-Repo: https://github.com/servo/servo
Source-Revision: b545e4821e23bdbbeca15e293787fe507b1cf2e7
2012-10-29 18:41:53 -07:00
Brian J. Burg
33b4026899 servo: Clean up NativeFont constructors.
Source-Repo: https://github.com/servo/servo
Source-Revision: 82434c749c4eacc144a473a6c7e4140a7daaf03e
2012-10-29 17:10:53 -07:00
Brian J. Burg
09b98ba68f servo: Move the workaround for Issue #163 next to the typedef.
Source-Repo: https://github.com/servo/servo
Source-Revision: 2365a903b3cad138e265ffd60e86d267bfac4a7e
2012-10-29 16:41:17 -07:00
Brian Anderson
617c194107 servo: Move css::color, and css::value to rust-css
Source-Repo: https://github.com/servo/servo
Source-Revision: ada1da1073889e8a0955221817645c28ff384f82
2012-10-29 16:31:24 -07:00
Brian J. Burg
286ddefcec servo: Reuse harfbuzz font, face objects on subsequent shaper calls. Move static functions into HarfbuzzShaper.
Source-Repo: https://github.com/servo/servo
Source-Revision: ef6324550294da2ae20a104ac17eb0cf0715b6c6
2012-10-29 16:28:21 -07:00
Brian J. Burg
d55c40d17c servo: Shaper holds a reference to its font.
Source-Repo: https://github.com/servo/servo
Source-Revision: 82faedf9fcef1c9f0b9ba001f430c88a16eb972d
2012-10-29 15:01:55 -07:00
Brian J. Burg
4aa91b39f5 servo: Add Font.shape_text(), and instantiate/reuse Shaper instance off of Font lazily. Shaper now takes a font, text, and glyph storage.
Source-Repo: https://github.com/servo/servo
Source-Revision: 97b7b21452198cec0d3e827ba5ba4888d8888acc
2012-10-29 14:54:47 -07:00
Brian J. Burg
09de764aeb servo: Shaper now uses actual font point size. Closes #162.
Source-Repo: https://github.com/servo/servo
Source-Revision: 09686c234fd3ca8d71bfafe8f6cdade1163e154e
2012-10-29 12:45:56 -07:00
Brian J. Burg
1a3635661d servo: Add note about Issue #163 to source.
Source-Repo: https://github.com/servo/servo
Source-Revision: 365a99a2763044e5091061c41bd14265e8474c43
2012-10-29 12:20:53 -07:00
Brian Anderson
1feb622201 servo: Move util::color to css::color
Source-Repo: https://github.com/servo/servo
Source-Revision: 81277cca75391602a95392e609043cdf222e0e3f

--HG--
rename : servo/src/servo/util/color.rs => servo/src/servo/css/color.rs
2012-10-29 14:27:02 -07:00
Brian Anderson
4d54be37b8 servo: Remove PngCompositor. Will need a different solution
Source-Repo: https://github.com/servo/servo
Source-Revision: 21cd74826979f6c60c2f6b0d14db2205db99fe6b
2012-10-29 14:25:35 -07:00
Brian Anderson
09b1cfe78f servo: Add casts to FreeType code to fix build
Source-Repo: https://github.com/servo/servo
Source-Revision: ddd3065c0b6953aaadb6785af605f34e4a21e3e2
2012-10-29 13:58:29 -07:00
Brian J. Burg
8ff0672729 servo: Move around native font implementations and shapers.
Source-Repo: https://github.com/servo/servo
Source-Revision: 960cde1fbe0e956020fccf09a8177b6628446ea4

--HG--
rename : servo/src/servo/text/native_font/ft_native_font.rs => servo/src/servo/text/freetype/native_font.rs
rename : servo/src/servo/text/native_font/quartz_native_font.rs => servo/src/servo/text/quartz/native_font.rs
2012-10-29 12:05:58 -07:00
Patrick Walton
bf706e5bb3 servo: gfx: Disable tiles for now due to bustage
Source-Repo: https://github.com/servo/servo
Source-Revision: ad540f870a8b991dbed6109b994ae46f8982a0af
2012-10-27 00:27:44 -07:00
Brian J. Burg
d60fd18945 servo: Create FontStyle, FontFaceProperties, and hook up (hardcoded) adjustable font sizes. Also ripped out some native font tests that won't make sense with font machinery refactor.
Source-Repo: https://github.com/servo/servo
Source-Revision: 9f94b54c89f65ef868e3de099f41059588af49d8
2012-10-26 19:53:13 -07:00
Brian Anderson
05bc8ed8c0 servo: Add rust-css submodule
Source-Repo: https://github.com/servo/servo
Source-Revision: 2e5afb7050217fd3cd236b88440aa85674542c00
2012-10-26 18:51:03 -07:00
Patrick Walton
81c212fee5 servo: layout: Make the display list freezable/dual mode
Source-Repo: https://github.com/servo/servo
Source-Revision: b101f8258e81735e572fcde469e49ab641b51cbd
2012-10-25 22:01:52 -07:00
Patrick Walton
23d6d20a0c servo: gfx: Implement tiled rendering
Source-Repo: https://github.com/servo/servo
Source-Revision: 7c029a322def27469a490b01870d95e944296546
2012-10-25 20:36:34 -07:00
Patrick Walton
a94c17e86d servo: Update rust-azure
Source-Repo: https://github.com/servo/servo
Source-Revision: 37da0262fe652dc953cde3b8c9c62e144416681c
2012-10-25 18:51:48 -07:00
Patrick Walton
78f5011924 servo: platform: Render all layers
Source-Repo: https://github.com/servo/servo
Source-Revision: b0ad3089d17b97a3dfe858896e672797a6a5f5a2
2012-10-25 17:46:28 -07:00
Patrick Walton
c009024674 servo: platform: Create an image layer for each buffer
Source-Repo: https://github.com/servo/servo
Source-Revision: 9135fbdd4a1cb54fb991b52a7a36a3e490dd6609
2012-10-25 17:08:57 -07:00
Patrick Walton
2c3f482b67 servo: gfx: Place rects in the layer buffers, not just sizes
Source-Repo: https://github.com/servo/servo
Source-Revision: 38fb01b43f379f075d158eb00d4a7c75de60a9bb
2012-10-25 16:33:28 -07:00
Patrick Walton
35b5b7e287 servo: gfx: Use layer buffer sets instead of a single layer buffer
Source-Repo: https://github.com/servo/servo
Source-Revision: 5c373c21d83cfb537c79e854d72544c0835cec2e
2012-10-25 16:20:39 -07:00
Patrick Walton
3d1961829a servo: Fix the origin when resizing
Source-Repo: https://github.com/servo/servo
Source-Revision: 467c79953277971854604ea53f50b2b0766b50c5
2012-10-25 15:16:34 -07:00
Brian J. Burg
235fc827af servo: Fix linux build for recent submodule splits.
Source-Repo: https://github.com/servo/servo
Source-Revision: 12954d12c34ade1043658a487352349482be81f3
2012-10-25 15:16:43 -07:00
Brian J. Burg
a1761d1656 servo: Split out xlib to rust-xlib and cairo to rust-cairo.
Source-Repo: https://github.com/servo/servo
Source-Revision: 5c68d158f0d8585a51a3539d8b7ed217de0591cc
2012-10-25 14:56:07 -07:00
Brian J. Burg
303c4a617d servo: Split fontconfig bindings into rust-fontconfig.
Source-Repo: https://github.com/servo/servo
Source-Revision: e01d97460bd115b30bfabe2d0282d57f4cfb0c6f
2012-10-25 12:34:01 -07:00
Brian J. Burg
1e57c6bae5 servo: Put extern mod declaration for freetype inside an OS guarded section.
Source-Repo: https://github.com/servo/servo
Source-Revision: 800bf0a8eda253af36a033b7dff199cd5cd3eecf
2012-10-25 11:45:53 -07:00
Brian J. Burg
58cda6476a servo: Split freetype bindings into rust-freetype submodule.
Source-Repo: https://github.com/servo/servo
Source-Revision: 9bde1e9f2648b54a917b25277658b9eb7740edc9
2012-10-25 11:32:10 -07:00
Patrick Walton
f0eaadb802 servo: build: Optimize C++ code in submodules. Closes #157.
Source-Repo: https://github.com/servo/servo
Source-Revision: 104020d2421546183f769e2cc817b75e02b8de93
2012-10-24 23:05:33 -07:00
Patrick Walton
ad2d1e7434 servo: Fix CFG_RUSTC variable in configure
Source-Repo: https://github.com/servo/servo
Source-Revision: 0eea6621a8de51d4deb7c92dad0c1be3d82828f1
2012-10-24 22:18:27 -07:00
Brian Anderson
de8e0e4026 servo: Update rust-wapcaplet
Source-Repo: https://github.com/servo/servo
Source-Revision: 9fdab777c6661b623eb1f055e4a2014566b7d78d
2012-10-24 19:37:17 -07:00
Brian J. Burg
4f8ed4b4dc servo: Cache AzScaledFontRef inside of Font instances. Fixes #83.
Source-Repo: https://github.com/servo/servo
Source-Revision: eb0942593e24c3abaf84b50f4bd11d9bc2d6bd30
2012-10-24 18:16:28 -07:00
Brian J. Burg
8020babeb3 servo: Move RenderContext::draw_text() to Font::draw_text_into_context(). Fixes #156.
Source-Repo: https://github.com/servo/servo
Source-Revision: a06b573e74e2493e181330f1bd554bf207f575e7
2012-10-24 17:29:41 -07:00
Brian J. Burg
06622e5c59 servo: Fix incorrect origin for drawing glyphs. Fixes #153.
Source-Repo: https://github.com/servo/servo
Source-Revision: 416ffeaca6870e94ea3c579673f4d38bec7d0ef0
2012-10-24 16:24:04 -07:00
Brian J. Burg
0a6701c599 servo: Snap borders with odd pixel width to pixel boundaries.
Add debug bounding boxes for text boxes (RUST_LOG=servo::layout::box)
and all boxes (RUST_LOG=servo::gfx::display_list).

Source-Repo: https://github.com/servo/servo
Source-Revision: 91c7ca11b3b07178a6022a62af6958543fb0a9ab
2012-10-24 13:52:14 -07:00
Brian J. Burg
1fd60be07a servo: Update servo to rust 3b6f5a1. Removes extraneous by-ref parameter to option::get(), and removes binary move operator.
Source-Repo: https://github.com/servo/servo
Source-Revision: a7c796aaf1982810751c5126cdae3373604dfc5f
2012-10-24 14:27:10 -07:00
Brian J. Burg
af462434fe servo: Fix test bustage.
Source-Repo: https://github.com/servo/servo
Source-Revision: 5594e12236e5772732231afde6f03c336c8ed5f4
2012-10-23 17:28:53 -07:00
Brian J. Burg
e295fcbfee servo: Remove uses of str::raw::buf_as_slice, and eliminate some valgrind warnings.
Source-Repo: https://github.com/servo/servo
Source-Revision: 496964123f26d9b90eb67de846e2bfe07f3dc46e
2012-10-23 17:28:14 -07:00
Brian J. Burg
6a0ba12467 servo: Clean up the code that interacts with hubbub parser, and stop stashing pointers to pointers on the stack.
Source-Repo: https://github.com/servo/servo
Source-Revision: 96d0d25824dd01491d86eff255e4ae8bc4db106d
2012-10-23 14:37:34 -07:00
Brian J. Burg
1e1bd186b4 servo: Invert DisplayItem enum variant data nesting, and add some TextRun static new's. Fixes #96.
Source-Repo: https://github.com/servo/servo
Source-Revision: 14388d6b4796b1f8f5e7dfb1c3bb3cd4a2a45cdf
2012-10-23 10:05:18 -07:00
Gabriel
2297c98507 servo: Merge #144 - Fix the mozjs special case so that build products are where rust-mozjs expects them (from g2p:master)
Source-Repo: https://github.com/servo/servo
Source-Revision: cb5b10c6da0e7e499cd961ce323bcb741b19e217
2012-10-22 18:59:22 -07:00
Brian J. Burg
399a64a59c servo: Refactor box building so that we push and pop nodes instead of boxes to BoxGenerator. LayoutTreeBuilder is only concerned with Flow tree creation, while BoxGenerator deals with boxes.
Source-Repo: https://github.com/servo/servo
Source-Revision: 7a27c01691894da050367de967a1e7105c55a974
2012-10-22 18:34:46 -07:00
Brian J. Burg
1bedfd821e servo: Move BoxConsumer to box_builder.rs, and other minor refactoring.
Source-Repo: https://github.com/servo/servo
Source-Revision: c0452d5a0fed7cab2f4f65589b2ebae76a2aeb64
2012-10-22 16:47:35 -07:00
Brian J. Burg
3bc6d2fb4f servo: Convert to static new() in the box builder, and correct context/BoxConsumer reuse for implicit inline flowed boxes.
Source-Repo: https://github.com/servo/servo
Source-Revision: c11480db62afdfdc9807248e82394f66cd140b37
2012-10-22 16:17:38 -07:00
Brian J. Burg
c8cc4f5f37 servo: Convert InlineFlowData.elems into ElementMapping struct. Add some debug logging for fixing range repair bugs.
Source-Repo: https://github.com/servo/servo
Source-Revision: 9debb1ee9debfbe84fb544cdcdd0c457137bbeef
2012-10-22 15:45:10 -07:00
Brian Anderson
cc6d1825ee servo: Remove servo-sandbox build code
Source-Repo: https://github.com/servo/servo
Source-Revision: e5da9952807f0a7c31f42caa4717106cd3f7186f
2012-10-22 16:29:18 -07:00
Brian J. Burg
1a5e699098 servo: Work around a miscompilation bug in LineboxScanner::repair_elem_ranges
Source-Repo: https://github.com/servo/servo
Source-Revision: b0536d7898a1543e7bde015babe9bd6c657884d1
2012-10-22 12:27:21 -07:00
Brian J. Burg
c984c1b95e servo: Convert NodeRange to a struct with a static new() function.
Source-Repo: https://github.com/servo/servo
Source-Revision: ee47778bd5dd45666a578a73a0620fedca0445fc
2012-10-22 11:50:39 -07:00
Brian J. Burg
b2fec0e1f1 servo: Stop combining several UnscannedTextboxes into a single TextBox, since it loses node mapping information.
Source-Repo: https://github.com/servo/servo
Source-Revision: 8ea5c64bd0f998e4d28857bd30d0419a4f3273b6
2012-10-22 11:42:38 -07:00