line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::DOM::Event::Mutation; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.058'; |
4
|
|
|
|
|
|
|
|
5
|
20
|
|
|
20
|
|
678
|
use warnings; no warnings qw 'utf8 parenthesis'; |
|
20
|
|
|
20
|
|
37
|
|
|
20
|
|
|
|
|
674
|
|
|
20
|
|
|
|
|
103
|
|
|
20
|
|
|
|
|
34
|
|
|
20
|
|
|
|
|
653
|
|
6
|
20
|
|
|
20
|
|
86
|
use strict; |
|
20
|
|
|
|
|
28
|
|
|
20
|
|
|
|
|
1038
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require HTML::DOM::Event; |
9
|
|
|
|
|
|
|
our @ISA = HTML::DOM::Event::; |
10
|
|
|
|
|
|
|
|
11
|
20
|
|
|
20
|
|
104
|
use constant 1.03 { ADDITION=>2, MODIFICATION=>1, REMOVAL=>3 }; |
|
20
|
|
|
|
|
342
|
|
|
20
|
|
|
|
|
2056
|
|
12
|
|
|
|
|
|
|
|
13
|
20
|
|
|
20
|
|
112
|
use Exporter 5.57 'import'; |
|
20
|
|
|
|
|
272
|
|
|
20
|
|
|
|
|
6251
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw 'ADDITION MODIFICATION REMOVAL'; |
15
|
|
|
|
|
|
|
our %EXPORT_TAGS = (all => \@EXPORT_OK); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
661
|
100
|
|
661
|
1
|
4467
|
sub relatedNode { $_[0]{rel_node }||() } |
19
|
540
|
|
|
540
|
1
|
1209
|
sub prevValue { $_[0]{prev_value } } |
20
|
541
|
|
|
541
|
1
|
1825
|
sub newValue { $_[0]{new_value } } |
21
|
996
|
|
|
996
|
1
|
2755
|
sub attrName { $_[0]{attr_name } } |
22
|
503
|
|
|
503
|
1
|
1351
|
sub attrChange { $_[0]{attr_change_type } } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub initMutationEvent { |
25
|
1
|
|
|
1
|
1
|
2
|
my $self = $_[0]; |
26
|
1
|
|
|
|
|
2
|
my $x; |
27
|
1
|
|
|
|
|
10
|
$self->init(map +($_ => $_[++$x]), |
28
|
|
|
|
|
|
|
qw( type propagates_up cancellable rel_node prev_value |
29
|
|
|
|
|
|
|
new_value attr_name attr_change_type ) |
30
|
|
|
|
|
|
|
); |
31
|
1
|
|
|
|
|
6
|
return; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub init { |
35
|
1447
|
|
|
1447
|
1
|
2061
|
my $self = shift; |
36
|
1447
|
|
|
|
|
4790
|
my %args = @_; |
37
|
1447
|
|
|
|
|
7392
|
my %my_args = map +($_ => delete $args{$_}), |
38
|
|
|
|
|
|
|
qw( rel_node prev_value new_value attr_name |
39
|
|
|
|
|
|
|
attr_change_type ); |
40
|
1447
|
|
|
|
|
4960
|
$self->SUPER::init(%args); |
41
|
1447
|
|
|
|
|
8078
|
%$self = (%$self, %my_args); |
42
|
1447
|
|
|
|
|
4556
|
return; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*| |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |