W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2008

2002/css-validator/org/w3c/css/css StyleSheet.java,1.13,1.14

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 20 Mar 2008 14:50:53 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JcM6X-0006qt-Fu@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv26209

Modified Files:
	StyleSheet.java 
Log Message:
tweak to find conflict to trigger more string optimizations


Index: StyleSheet.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheet.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- StyleSheet.java	13 Jul 2007 13:32:19 -0000	1.13
+++ StyleSheet.java	20 Mar 2008 14:50:50 -0000	1.14
@@ -173,6 +173,10 @@
     public void findConflicts(ApplContext ac) {
 	for (Enumeration e = getRules().elements(); e.hasMoreElements();) {
 	    CssSelectors sel = (CssSelectors) e.nextElement();
+	    sel.markAsFinal();
+	}
+	for (Enumeration e = getRules().elements(); e.hasMoreElements();) {
+	    CssSelectors sel = (CssSelectors) e.nextElement();
 	    sel.findConflicts(ac, warnings, getRules().elements());
 	}
     }
Received on Thursday, 20 March 2008 14:51:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT