Commit graph

4860 commits

Author SHA1 Message Date
Brian Anderson
d12e4fe8ed Use a color type in the display list 2012-10-31 21:49:16 -07:00
Brian Anderson
0e9b611e4f Time aux ptr initialization and selector matching separately 2012-10-31 21:49:16 -07:00
Brian Anderson
d95b96185c Selector matching doesn't need a LayoutContext just now 2012-10-31 21:49:16 -07:00
Brian Anderson
0e94860305 Rename css::styles to css::matching 2012-10-31 21:49:15 -07:00
Brian Anderson
bd9a9421d2 Move aux pointer initialization to layout::aux 2012-10-31 21:49:15 -07:00
Brian Anderson
85293b61ca Delete unused old CSS code 2012-10-31 21:49:15 -07:00
Brian Anderson
3fb6cc439d Update rust-wapcaplet, rust-netsurfcss 2012-10-31 21:49:15 -07:00
Brian Anderson
4ae8ca5d29 Begin working on background color 2012-10-31 21:49:15 -07:00
Brian Anderson
5c606a8dbb Move node style getter/setter to css::node_util 2012-10-31 21:49:15 -07:00
Brian Anderson
fafe3883ef Correctly update node SelectResult 2012-10-31 21:49:15 -07:00
Brian Anderson
d8a8a4bc3f Generate node names for CSS selection 2012-10-31 21:49:15 -07:00
Brian Anderson
5fd318be80 Add css::compute, for computing styles from Node + SelectResult 2012-10-31 21:49:15 -07:00
Brian Anderson
2c2ad1018a Replace SpecifiedStyle with SelectResults in the aux pointer. Further disable old styling code 2012-10-31 21:49:15 -07:00
Brian Anderson
c0350e7739 Change StyleMethods::style to return a region pointer instead of copying the style object 2012-10-31 21:49:15 -07:00
Brian Anderson
b00885f77a Begin integrating selector matching 2012-10-31 21:49:15 -07:00
Brian Anderson
806517b9bb Add the CSS SelectCtx to Layout 2012-10-31 21:49:14 -07:00
Brian Anderson
8c98b0e49c Use newcss::Stylesheet for the stylesheet type 2012-10-31 21:49:14 -07:00
Brian Anderson
cdd17b5fce Convert to new Stylesheet definition. Break styling temporarily 2012-10-31 21:49:14 -07:00
Brian Anderson
921dd909d7 Comment out failing font tests 2012-10-31 21:49:14 -07:00
Patrick Walton
8c94a80ee2 Add a Skia submodule 2012-10-31 19:49:17 -07:00
Brian Anderson
685ecb9ac8 Update rust-netsurfcss 2012-10-30 19:03:05 -07:00
Brian Anderson
813b1d2a84 Let stylesheets live in layout instead of content 2012-10-30 19:01:55 -07:00
Brian Anderson
23b6b386cb Move CSS lexing into the parser to create a simpler interface 2012-10-30 16:51:21 -07:00
Brian Anderson
66f4fdc017 Update rust-css 2012-10-30 16:01:06 -07:00
Brian Anderson
0b9dfde349 Flatten the css module 2012-10-30 15:58:26 -07:00
Brian Anderson
fbe17a1e36 Move the entire servo CSS selection interface to css::styles 2012-10-30 15:54:05 -07:00
Brian Anderson
fc3ca6738a Remove dead CSS code 2012-10-30 15:48:51 -07:00
Brian Anderson
bf19709645 Move css parser and lexer to rust-css 2012-10-30 14:54:34 -07:00
Brian Anderson
37d45c6872 Remove CSS lexer's dependency on resource_task 2012-10-30 14:54:34 -07:00
Brian Anderson
86ce867a1c Remove lexer_util's dependency on resource_task 2012-10-30 14:54:34 -07:00
Brian Anderson
2ea80e2407 Move lexer_util to css module 2012-10-30 14:54:34 -07:00
Brian J. Burg
b7d4ec1217 Create FontContext from matcher, remove platform-specific matchers. Move default font into FontCache. Fixes #166. 2012-10-30 12:07:16 -07:00
Brian J. Burg
b545e4821e Create font matchers and native equivalents. Add in a dummy font cache. Untangle some test font stuff. 2012-10-29 18:53:55 -07:00
Brian J. Burg
82434c749c Clean up NativeFont constructors. 2012-10-29 17:15:12 -07:00
Brian J. Burg
2365a903b3 Move the workaround for Issue #163 next to the typedef. 2012-10-29 17:15:12 -07:00
Brian Anderson
ada1da1073 Move css::color, and css::value to rust-css 2012-10-29 16:42:25 -07:00
Brian J. Burg
ef63245502 Reuse harfbuzz font, face objects on subsequent shaper calls. Move static functions into HarfbuzzShaper. 2012-10-29 16:28:21 -07:00
Brian J. Burg
82faedf9fc Shaper holds a reference to its font. 2012-10-29 15:01:55 -07:00
Brian J. Burg
97b7b21452 Add Font.shape_text(), and instantiate/reuse Shaper instance off of Font lazily. Shaper now takes a font, text, and glyph storage. 2012-10-29 14:54:59 -07:00
Brian J. Burg
09686c234f Shaper now uses actual font point size. Closes #162. 2012-10-29 14:54:59 -07:00
Brian J. Burg
365a99a276 Add note about Issue #163 to source. 2012-10-29 14:54:59 -07:00
Brian Anderson
81277cca75 Move util::color to css::color 2012-10-29 14:27:02 -07:00
Brian Anderson
21cd748269 Remove PngCompositor. Will need a different solution 2012-10-29 14:25:35 -07:00
Brian Anderson
ddd3065c0b Add casts to FreeType code to fix build 2012-10-29 13:59:06 -07:00
Brian J. Burg
960cde1fbe Move around native font implementations and shapers. 2012-10-29 12:05:58 -07:00
Brian Anderson
dbfe0869e2 Update rust-netsurfcss, rust-wapcaplet 2012-10-28 02:35:08 -07:00
Patrick Walton
ad540f870a gfx: Disable tiles for now due to bustage 2012-10-27 21:08:05 -07:00
Brian J. Burg
9f94b54c89 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. 2012-10-26 19:53:26 -07:00
Brian Anderson
2e5afb7050 Add rust-css submodule 2012-10-26 18:51:03 -07:00
Brian Anderson
7db5ebee34 Update submodules with build fixes 2012-10-26 18:30:51 -07:00