summaryrefslogtreecommitdiff
path: root/src/styleengine.cc
AgeCommit message (Collapse)Author
2013-06-03Added CSS properties: position, top, bottom, left, right. (Needed for ↵Sebastian Geerken
absolute positions.)
2012-12-07Merge with <http://hg.dillo.org/dillo>.Sebastian Geerken
2012-12-05start styleengine stack bg color with prefs.bg_colorcorvid
(Prompted by trying to figure out why form widgets had such a tendency to be white.) For the record, I ran this past Johannes before committing.
2012-11-28Merge with http://hg.dillo.org/dillo/.Sebastian Geerken
2012-11-26rm unused arg in Style::createcorvid
2012-11-06Merge.Sebastian Geerken
2012-11-05trim some spacescorvid
2012-11-04own nonCssProperties have precedence over inherited onesJohannes Hofmann
2012-11-04some style engine refactoringJohannes Hofmann
2012-11-03fix nonCssProperties leakJohannes Hofmann
Fix a leak related to inheritNonCssHints() that can be triggered with following test case: <table border=1> <tr lang=en><td> table </table> noticed-by, test-case-by: corvid <corvid@lavabit.com>
2012-11-03more stylengine cleanupsJohannes Hofmann
2012-11-03remove redundant NULL checkJohannes Hofmann
2012-09-20Merge again with main repo.Sebastian Geerken
2012-09-15use D_ASCII_TOLOWERcorvid
2012-09-14Merge of <http://hg.dillo.org/dillo>.Sebastian Geerken
2012-09-13Merge of http://flpsed.org/hgweb/dillo_hyphen/Sebastian Geerken
2012-09-06set top- and bottom-margin for <p> elementsJohannes Hofmann
2012-07-06Attribute "lang" is evaluated for hyphenation; part of dw:core::style::Style.ysgeerken
2012-01-21add display: property to user agent styleJohannes Hofmann
2011-12-30move buildUserAgentStyle and buildUserStyle to styleengine.ccJohannes Hofmann
By moving buildUserAgentStyle and buildUserStyle from css.cc to styleengine.cc we can avoid the circular dependency between css.hh and cssparser.hh.
2011-11-11generic font-family names not case-sensitivecorvid
2011-10-22text-transform propertycorvid
2011-10-14font-size property, let absolute-size and relative-size values have larger ↵corvid
effect Using roughly 1.2 per step, a value mentioned in the CSS2.1 spec. Firefox appears to use a value that is similar but a little larger. http://css-tricks.com/2580-css-font-size/ says that "keyword sizing is pretty consistent across browsers and platforms", and perhaps someday we'll want to go out of our way to make them exactly the same, but this is a start.
2011-09-19mergeJohannes Hofmann
2011-09-06remove trailing whitespaceJorge Arellano Cid
2011-06-07support !important in style attributesJohannes Hofmann
2011-05-28mergeJohannes 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)