aboutsummaryrefslogtreecommitdiff
path: root/src/css.cc
AgeCommit message (Collapse)Author
2009-03-15move CssPropertyInfo definition to cssparser.ccJohannes Hofmann
2009-03-15replace a_Css_parse(), a_Css_parse_declaration() with static methodsJohannes Hofmann
2009-03-09needn't include prefs.hcorvid
2009-02-15fix leak in CssStyleSheet::addRule()Johannes Hofmann
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-07minor cleanupJohannes Hofmann
2009-02-06set type in CssPropertyList::set()Johannes Hofmann
2009-02-06add type to CSS propertiesJohannes Hofmann
2009-02-05move CssProperty::Name and CssProperty::Value out of CssProperty classJohannes Hofmann
2009-02-05add CssProperty::typeJohannes 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-31remove debugging codeJohannes Hofmann
2009-01-31remove unnecessary initializationJohannes Hofmann
2009-01-31optimize CssStyleSheet::apply() a bitJohannes Hofmann
2009-01-31fix cascading orderJohannes Hofmann
CSS data given in style="" attributes can be overruled by AUTHOR_IMPORTANT style data. This fixes http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/t060402-c31-important-00-b.htm
2009-01-31commentJohannes Hofmann
2009-01-30commentJohannes Hofmann
2009-01-30apply CSS rules ordered by their specificityJohannes Hofmann
2009-01-30simplify CssSimpleSelector::specificity()Johannes Hofmann
2009-01-30insert rules in correct orderJohannes Hofmann
2009-01-30add CssRule::specificityJohannes Hofmann
2009-01-30add CssSelector::specificity()Johannes Hofmann
2009-01-30add commentJohannes Hofmann
2009-01-30whitespaceJohannes Hofmann
2009-01-30CssContext::addRule(): only add rules with nonempty property listJohannes Hofmann
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