aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
AgeCommit message (Collapse)Author
2011-09-06remove trailing whitespaceJorge Arellano Cid
2011-06-07support !important in style attributesJohannes Hofmann
2011-05-02indentationcorvid
2011-05-01fix handling of CSS length values of 0 without unitJohannes Hofmann
Reported by: "Rob S." <mr_semantics@hotmail.com> Submitted by: corvid <corvid@lavabit.com>
2010-12-14border-color: transparentcorvid
2010-11-24trim some spacescorvid
2010-11-09mergeJorge Arellano Cid
2010-11-09css text-indent propertycorvid
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-November/007801.html
2010-10-21imported patch border-collapse-parsingJorge Arellano Cid
2010-10-17fix another Style leak in StyleEngineJohannes Hofmann
2010-10-17remove redundant assert()Johannes Hofmann
Bounds checking is already done by SimpleVector.
2010-10-17also recompute backgroundStyle in StyleEngine::restyle()Johannes Hofmann
2010-10-17fix Style leaks in StyleEngineJohannes Hofmann
2010-10-17mergeJohannes Hofmann
2010-10-15don't try to set lineHeight if illegal value 'auto' is specifiedJohannes Hofmann
Testcase: <div style="line-height: auto"> foo<br>foo<br>foo<br> </div> This only fixes the use of uninitialzed values in this case. The real fix will be to drop the invalid declaration in the CSS parser. This needs to be implemented with a later commit. Reported-by: Jeremy Henty <onepoint@starurchin.org>
2010-10-14set border-width to 0 if border-style is 'hidden'Johannes Hofmann
2010-10-14inline setNonCssHint()Johannes Hofmann
2010-10-13commentsJohannes Hofmann
2010-10-12implement optional deep copy for CssPropertyListJohannes Hofmann
2010-10-11use background-color on <html>-elementJohannes Hofmann
2010-10-11start restyling at 1Johannes Hofmann
2010-10-11add StyleEngine::restyle()Johannes Hofmann
2010-10-11rework nonCssHints API of StyleEngineJohannes Hofmann
* Instead of passing the nonCssHints as a CssPropertyList, set the hints separately and create the list in StyleEngine. * The CssPropertyList holding the nonCssHints is now completely managed by StyleEngine and kept on the stack. * Replace the table_cell_props mechanic in html.cc/table.cc with a new method inheritNonCssHints() in StyleEngine.
2010-10-11store style attribute as CssPropertyList instead of a stringJohannes Hofmann
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-23add lout::misc::roundInt() for double -> int conversionJohannes Hofmann
Add lout::misc::roundInt() and use it for double -> int conversion instead of doing the + 0.5 trick all over the place. It was wrong for negative values and we might even replace roundInt() with rint() from libm in the future. Reported-by: corvid
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.