Include pseudo-class in rule specifity.
Include pseudo-class in rule specifity.


Index: pyglet/layout/css.py
===================================================================
--- pyglet/layout/css.py	(revision 480)
+++ pyglet/layout/css.py	(working copy)
@@ -254,7 +254,9 @@
         for s in simples:
             if s.id:
                 specifity += 1 << 16
-            specifity += (1 << 8) * (len(s.classes) + len(s.attribs))
+            specifity += (1 << 8) * (len(s.classes) + 
+                                     len(s.attribs) + 
+                                     len(s.pseudos))
             if s.name:
                 specifity += 1
         self.specifity = specifity



git-svn-id: d4fdfcd4de20a449196f78acc655f735742cd30d@483 14d46d22-621c-0410-bb3d-6f67920f7d95

regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations