/[suikacvs]/markup/html/whatpm/Whatpm/CSS/Cascade.pm
Suika

Diff of /markup/html/whatpm/Whatpm/CSS/Cascade.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by wakaba, Tue Jan 1 15:56:24 2008 UTC revision 1.7 by wakaba, Wed Jan 2 07:39:21 2008 UTC
# Line 58  sub ___associate_rules ($) { Line 58  sub ___associate_rules ($) {
58                  ($selector);                  ($selector);
59          for (@{$selectors_to_elements->{$selector_str}}) {          for (@{$selectors_to_elements->{$selector_str}}) {
60            my $current_specificity = $elements_to_specificity->{refaddr $_};            my $current_specificity = $elements_to_specificity->{refaddr $_};
61            if ($selector_specificity->[0] > $current_specificity->[0] or            if (not defined $current_specificity or ## "*"-only case.
62                  $selector_specificity->[0] > $current_specificity->[0] or
63                $selector_specificity->[1] > $current_specificity->[1] or                $selector_specificity->[1] > $current_specificity->[1] or
64                $selector_specificity->[2] > $current_specificity->[2] or                $selector_specificity->[2] > $current_specificity->[2] or
65                $selector_specificity->[3] > $current_specificity->[3]) {                $selector_specificity->[3] > $current_specificity->[3]) {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24