summaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-10 00:39:18 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-10 00:39:18 +0000
commit43b8d99a4caba7fe0557117c4cd9ae4554b8a79e (patch)
treeba2652fb45e789984e73e12c0ec9db14a5960b27 /src/stylesheet.c
parent7d50c0354fbcf7d4721f19bdf88286b56484eddb (diff)
downloadlibcss-43b8d99a4caba7fe0557117c4cd9ae4554b8a79e.tar.gz
libcss-43b8d99a4caba7fe0557117c4cd9ae4554b8a79e.tar.bz2
Distinguish between pseudo classes and pseudo elements
svn path=/trunk/libcss/; revision=6406
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index 7c055e1..a9413cc 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -526,6 +526,7 @@ css_error css_stylesheet_selector_append_specific(css_stylesheet *sheet,
/* Update parent's specificity */
switch (detail->type) {
case CSS_SELECTOR_CLASS:
+ case CSS_SELECTOR_PSEUDO_CLASS:
case CSS_SELECTOR_ATTRIBUTE:
case CSS_SELECTOR_ATTRIBUTE_EQUAL:
case CSS_SELECTOR_ATTRIBUTE_DASHMATCH:
@@ -535,11 +536,7 @@ css_error css_stylesheet_selector_append_specific(css_stylesheet *sheet,
case CSS_SELECTOR_ID:
(*parent)->specificity += CSS_SPECIFICITY_B;
break;
- case CSS_SELECTOR_PSEUDO:
- /** \todo distinguish between pseudo classes and elements */
- /* Assume pseudo class for now */
- (*parent)->specificity += CSS_SPECIFICITY_C;
- break;
+ case CSS_SELECTOR_PSEUDO_ELEMENT:
case CSS_SELECTOR_ELEMENT:
(*parent)->specificity += CSS_SPECIFICITY_D;
break;