summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-06-07 12:06:52 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-06-07 12:06:52 +0200
commitd9d884f2437dcfaf9bb576194767247616e5efdb (patch)
treee181c6d58b6c925f96862e02d5bce8ca97be52ec /src/css.cc
parent605ef351d2f344aebb48631db74e330f45158c61 (diff)
support !important in style attributes
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/css.cc b/src/css.cc
index cb0864fd..d8f086db 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -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);
}