aboutsummaryrefslogtreecommitdiff
path: root/src/css.cc
AgeCommit message (Collapse)Author
2009-01-30remove unused methodJohannes Hofmann
2009-01-29free font names when replacing themJohannes Hofmann
2009-01-28make sure strings from CSS parser are freedJohannes Hofmann
2009-01-28a few dStrcasecmp()scorvid
2009-01-28simplify CssContext::buildUserStyle()corvid
2009-01-28descendent -> descendant (noticed by corvid)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-26use ConstString in CssStyleSheet::apply()Johannes Hofmann
2009-01-25allocate/deallocate CssSimpleSelector properlyJohannes Hofmann
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-21don't call docTree->top() over and overJohannes Hofmann
2009-01-21move assert from CssSelector::match() to CssRule constructorJohannes Hofmann
2009-01-21refactor CssSelector::match() making it slightly more efficientJohannes Hofmann
2009-01-21cosmetic change to CssSelector::match()Johannes Hofmann
2009-01-21simplify CssSelector a bitJohannes Hofmann
2009-01-21fix minor issue in CSS optimizationJohannes Hofmann
This brings down the number of CssSimpleSelector::match() calls from 816603 to 602787 on http://www.spiegel.de
2009-01-19remove debugging codeJohannes Hofmann
2009-01-19fix border around images within linksJohannes Hofmann
2009-01-19switch default color for visited links to #800080 againJohannes Hofmann
2009-01-16update copyrightJohannes Hofmann
2009-01-15refactor CssSelector::match() a bitJohannes Hofmann
2009-01-13mergeJohannes Hofmann
2009-01-13minor cleanupJohannes Hofmann
2009-01-13initial implementation of a CSS selector matching optimizationJohannes Hofmann
The idea is to avoid repeated checks of CssSimpleSelector against the same part of the doctree. E.g .navigation * { background-color:green } Would result in checking for class="navigation" all the way down to the document root for all elements. The optimization shortcuts this, for parts of the doctree that have been checked before.
2009-01-12add RuleList class to implement proper memory managementJohannes Hofmann
2009-01-12String -> ConstStringJohannes Hofmann
2009-01-12remove CssRule reference countingJohannes Hofmann
2009-01-12avoid unnecessary lout::object::String creationJohannes Hofmann
2009-01-12fix some bugsJohannes Hofmann
2009-01-12initial implementation of hashmap based CSS selector matchingJohannes Hofmann
2009-01-12replace fixed break space in Html_tag_open_li() with a user agent styleJohannes Hofmann
This changes allows to set the margin of <li> elements to zero via CSS. Subsequent <li> elements then have no spacing in between. Test case: <html> <head> <style type="text/css"> li { border: 1px solid black; margin: 0; } </style> </head> <body> <ul> <li>hello</li> <li>hello</li> </ul> </body> </html> There should be no vertical space between the two boxes.
2009-01-09cleanup user agent styleJohannes Hofmann
2009-01-03fix <dt> handlingJohannes Hofmann
2009-01-03set list-style-type to decimal for <ol>Johannes Hofmann
2009-01-03fix debug printing of CSS selectorsJohannes Hofmann
2009-01-03convert list handling to use styleEngineJohannes Hofmann
2008-12-19Interim patch for CSS stylesheet loading. Not finished yet.Jorge Arellano Cid
2008-12-17remove unnecessary this->Johannes Hofmann
2008-12-17initialize refCount in CssRuleJohannes Hofmann
2008-12-17add CssSelector destructorJohannes Hofmann
2008-12-16speed up CSS selector matchingJohannes Hofmann
A CssStyleSheet is now an array of lists of CssRules. The array holds a list if those rules that might potentially match whith a given element on the top of docTree.
2008-12-15remove border style definition for <img> from user-agent styleJohannes Hofmann
2008-12-14convert Html_tag_open_img()Johannes Hofmann
2008-12-11remove table border color definitions from user-agent styleJohannes Hofmann
2008-12-11fix <hr> handlingJohannes Hofmann
2008-12-11update user agent style for tablesJohannes Hofmann
2008-12-10convert Html_tag_open_hr() and Html_tag_open_pre()Johannes Hofmann
2008-12-05add margin directives to user agent style to replace Html_add_indented()Johannes Hofmann
2008-12-04fix default table bordersJohannes Hofmann
2008-12-02disable debug outputJohannes Hofmann