diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2011-06-07 12:06:52 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2011-06-07 12:06:52 +0200 |
commit | d9d884f2437dcfaf9bb576194767247616e5efdb (patch) | |
tree | e181c6d58b6c925f96862e02d5bce8ca97be52ec /src/css.cc | |
parent | 605ef351d2f344aebb48631db74e330f45158c61 (diff) |
support !important in style attributes
Diffstat (limited to 'src/css.cc')
-rw-r--r-- | src/css.cc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -535,7 +535,8 @@ CssContext::~CssContext () { */ void CssContext::apply (CssPropertyList *props, Doctree *docTree, DoctreeNode *node, - CssPropertyList *tagStyle, CssPropertyList *nonCssHints) { + CssPropertyList *tagStyle, CssPropertyList *tagStyleImportant, + CssPropertyList *nonCssHints) { if (sheet[CSS_PRIMARY_USER_AGENT]) sheet[CSS_PRIMARY_USER_AGENT]->apply (props, docTree, node); @@ -554,6 +555,9 @@ void CssContext::apply (CssPropertyList *props, Doctree *docTree, if (sheet[CSS_PRIMARY_AUTHOR_IMPORTANT]) sheet[CSS_PRIMARY_AUTHOR_IMPORTANT]->apply (props, docTree, node); + if (tagStyleImportant) + tagStyleImportant->apply (props); + if (sheet[CSS_PRIMARY_USER_IMPORTANT]) sheet[CSS_PRIMARY_USER_IMPORTANT]->apply (props, docTree, node); } |