- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 04 Apr 2012 14:53:16 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv2908/css/properties/css3 Modified Files: CssBoxShadow.java Log Message: added equivalence function (is this needed?) Index: CssBoxShadow.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssBoxShadow.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- CssBoxShadow.java 4 Apr 2012 14:36:25 -0000 1.6 +++ CssBoxShadow.java 4 Apr 2012 14:53:14 -0000 1.7 @@ -293,6 +293,36 @@ CssValue shadow_mod; public boolean equals(CssBoxShadowValue v) { + if (!v.horizontal_offset.equals(horizontal_offset)) { + return false; + } + if (!v.vertical_offset.equals(vertical_offset)) { + return false; + } + if (blur_radius != null && !blur_radius.equals(v.blur_radius)) { + return false; + } + if (blur_radius == null && v.blur_radius != null) { + return false; + } + if (spread_distance != null && !spread_distance.equals(v.spread_distance)) { + return false; + } + if (spread_distance == null && v.spread_distance != null) { + return false; + } + if (color != null && !color.equals(v.color)) { + return false; + } + if (color == null && v.color != null) { + return false; + } + if (shadow_mod != null && !shadow_mod.equals(v.shadow_mod)) { + return false; + } + if (shadow_mod == null && v.color != shadow_mod) { + return false; + } // at last! return true; }
Received on Wednesday, 4 April 2012 14:53:30 UTC