Commit graph

45417 commits

Author SHA1 Message Date
Brian Anderson
9163dadcd0 Turn off borders again temporarily 2012-11-01 18:41:41 -07:00
Brian Anderson
f380b8d3b3 Make borders sort of work again 2012-11-01 17:01:34 -07:00
Brian Anderson
f06628d14e Update rust-netsurfcss, rust-css 2012-10-31 23:49:19 -07:00
Brian Anderson
010f0df2b0 servo doesn't need to link to netsurfcss 2012-10-31 21:51:42 -07:00
Brian Anderson
e5a5cfaac7 Silence warnings 2012-10-31 21:49:16 -07:00
Brian Anderson
e5a0470042 Fix conversion from CSS color to GFX color 2012-10-31 21:49:16 -07:00
Brian Anderson
beb6ed9f1c Update rust-css 2012-10-31 21:49:16 -07:00
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