aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
AgeCommit message (Collapse)Author
2010-10-07CSS part for font-variant: small-caps supportJorge Arellano Cid
(some uppercasing is done but not utf8)
2010-10-01fix last commitJohannes Hofmann
dw::core::style::Style must always hold the computed values of CSS properties, as those are inherited. The computed value of border-width is 0 if border-style is 'none', so avoid the combination of border-width != 0 and border-style 'none'. Refactor StyleEngine a bit.
2010-10-01rework border-width handlingJohannes Hofmann
The initial value of border-width-* is "medium" not 0 (see http://www.w3.org/TR/CSS2/box.html#border-width-properties). Redo the border handling for tables to deal with this.
2010-08-20parse the CSS property floatJohannes Hofmann
2010-04-20css word-spacing propertycorvid
2010-04-04line-heightcorvid, Johannes Hofmann
2010-01-18mergeJorge Arellano Cid
2010-01-18Changed the default background color when allow_white_bg=NO (part 2)Jorge Arellano Cid
2010-01-07make Doctree a non-virtual classJohannes Hofmann
Doctree now is a proper class with it's own implementation. StyleEngine no longer needs to provide the Doctree interface itself. This hopefully make the code easier to understand and should also be a bit faster as no virtual methods are involved.
2009-12-18support border-width: thin | medium | thickJohannes Hofmann
2009-12-08add support for CSS property list-style-positionJohannes Hofmann
2009-12-02set style.display in StyleEngineJohannes Hofmann
2009-11-17commentsJohannes Hofmann
2009-11-17properly handle comma separated lists of font names in CSSJohannes Hofmann
2009-11-15use first font name in comma separated list in StyleEngineJohannes Hofmann
This is just a bandaid until we find a way to test whether a given font exists on the system.
2009-10-18limit letter-spacing valuesJohannes Hofmann
2009-10-17add letter-spacing support to CSS subsystemJohannes Hofmann
The implementation in the fltk backend is still missing.
2009-10-03some tooltipscorvid
2009-09-20trim some spacescorvid
2009-07-11optimize splitStr()Johannes Hofmann
2009-07-11split class attributes at whitespaceJohannes Hofmann
2009-07-11support multiple classes per doctree nodeJohannes Hofmann
2009-06-22remove system includescorvid
2009-04-19wrap long lines in src/ css codecorvid
2009-04-08support CSS @import directiveJohannes Hofmann
2009-03-23disable negative margins for nowJohannes Hofmann
dw::Textblock does not handle them properly yet.
2009-03-15replace a_Css_parse(), a_Css_parse_declaration() with static methodsJohannes Hofmann
2009-03-11whitespaceJorge Arellano Cid
2009-03-11fix allow_white_bg=NO caseJohannes Hofmann
This is not perfect, as the replacement color is hardcoded to 0xdcd1ba.
2009-03-09whitespaceJohannes Hofmann
2009-03-06remove bg_color dillorc optionJohannes Hofmann
To set a custom background color add a line like: body {background-color: white} to your ~/.dillo/style.css file. This also works for plain text display and image viewing.
2009-03-05reduce number of styleEngine::style0() callsJohannes Hofmann
Rearrange code, so that for each new element, StyleEngine::setNonCssHints() is called before the first call to StyleEngine::style() or StyleEngine::wordStyle(). This avoids unnecessary CSS style computations which are expensive. Add an assertion to ensure this.
2009-02-17fix missing background color for ComplexButton (noticed by corvid)Johannes Hofmann
2009-02-17add font_max_size dillorc optionJohannes Hofmann
2009-02-16check base font against font_min_sizeJohannes Hofmann
2009-02-15clean StyleEngine::stack on deletionJohannes Hofmann
2009-02-11add "font_min_size" dillorc optionJohannes Hofmann
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-08mergeJohannes Hofmann
2009-02-07inherit valign when inheritBackgroundColor is setJohannes Hofmann
This fixes <sup><u> not up </u> up </sup>, but is not the real solution. Things like <sup> up <sup> upper </sup></sup> still don't work, but they didn't work in dillo-2.0 either. Noticed by: corvid
2009-02-06support font-size enum valuesJohannes Hofmann
2009-02-06switch font-weight handling to new multi type systemJohannes Hofmann
2009-02-05move CssProperty::Name and CssProperty::Value out of CssProperty classJohannes Hofmann
2009-02-02remove unused order_count parameterJohannes Hofmann
It seems that in dillo-0.8.0-css-3 it was used to make sure that later definitions of the same CSS property have more weight than previous ones. If for example a first stylesheet sets background-color to black, and a second stylesheet sets it to green, green should win. But as we currently parese everything in order (throughing away all parsed CSS data when a new CSS stylesheet has arrived), we don't need to remember the original ordering of stylesheets.
2009-01-30remove todoJohannes Hofmann
2009-01-29free font names from style="" attributes (found by Jeremy)Johannes Hofmann
2009-01-26adapt font-family preferences to match CSSJohannes Hofmann
CSS 2.1 uses the following predefined font names: 'serif', 'sans-serif', 'cursive', 'fantasy', 'monospace'. Add preferences so that the user can set real font names for these. Basically the new "font_sans_serif" option is what "vw_fontame" used to be and "font_monospace" is equivalent to "fw_fontname". The other two options are new.
2009-01-22improve font handlingJohannes Hofmann
The vw_fontname and fw_fontname preferences are now used to define the CSS fontanmes "sans" and "monospace".
2009-01-21start supporting "auto" value in CSSJohannes Hofmann
2009-01-19switch default font size to 14Johannes Hofmann