diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-07-14 12:42:02 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-07-14 12:42:02 +0000 |
commit | 2d95b8aa57a160cb05082bf29b4103c6ffd36e79 (patch) | |
tree | a078c380f799d96cbcc656d48d5faa6662c8f43f /desktop/plot_style.c | |
parent | 336b21198dd9ef58ad208e5232781bf9f04b29ab (diff) | |
download | netsurf-2d95b8aa57a160cb05082bf29b4103c6ffd36e79.tar.gz netsurf-2d95b8aa57a160cb05082bf29b4103c6ffd36e79.tar.bz2 |
Rename debug outline plot styles and make them const.
svn path=/trunk/netsurf/; revision=8518
Diffstat (limited to 'desktop/plot_style.c')
-rw-r--r-- | desktop/plot_style.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/desktop/plot_style.c b/desktop/plot_style.c index 42a4c924f..fa94076e8 100644 --- a/desktop/plot_style.c +++ b/desktop/plot_style.c @@ -18,7 +18,7 @@ /** \file Plotter global styles. * - * These plot styles are globaly available and used in many places. + * These plot styles are globaly available and used in many places. */ #include "desktop/plotters.h" @@ -41,26 +41,30 @@ static plot_style_t plot_style_fill_red_static = { }; plot_style_t *plot_style_fill_red = &plot_style_fill_red_static; -static plot_style_t plot_style_stroke_red_static = { +/* Box model debug outline styles for content, padding and margin edges */ +static const plot_style_t plot_style_content_edge_static = { .stroke_type = PLOT_OP_TYPE_SOLID, - .stroke_colour = 0x000000ff, + .stroke_colour = 0x00ff0000, .stroke_width = 1, }; -plot_style_t *plot_style_stroke_red = &plot_style_stroke_red_static; +plot_style_t const * const plot_style_content_edge = + &plot_style_content_edge_static; -static plot_style_t plot_style_stroke_blue_static = { +static const plot_style_t plot_style_padding_edge_static = { .stroke_type = PLOT_OP_TYPE_SOLID, - .stroke_colour = 0x00ff0000, + .stroke_colour = 0x000000ff, .stroke_width = 1, }; -plot_style_t *plot_style_stroke_blue = &plot_style_stroke_blue_static; +plot_style_t const * const plot_style_padding_edge = + &plot_style_padding_edge_static; -static plot_style_t plot_style_stroke_yellow_static = { +static const plot_style_t plot_style_margin_edge_static = { .stroke_type = PLOT_OP_TYPE_SOLID, .stroke_colour = 0x0000ffff, .stroke_width = 1, }; -plot_style_t *plot_style_stroke_yellow = &plot_style_stroke_yellow_static; +plot_style_t const * const plot_style_margin_edge = + &plot_style_margin_edge_static; /* caret style used in html_redraw_caret */ static plot_style_t plot_style_caret_static = { |