| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package HTML::DOM::Event::Mutation; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.057'; |
|
4
|
|
|
|
|
|
|
|
|
5
|
20
|
|
|
20
|
|
557
|
use warnings; no warnings qw 'utf8 parenthesis'; |
|
|
20
|
|
|
20
|
|
30
|
|
|
|
20
|
|
|
|
|
680
|
|
|
|
20
|
|
|
|
|
71
|
|
|
|
20
|
|
|
|
|
23
|
|
|
|
20
|
|
|
|
|
742
|
|
|
6
|
20
|
|
|
20
|
|
68
|
use strict; |
|
|
20
|
|
|
|
|
26
|
|
|
|
20
|
|
|
|
|
997
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require HTML::DOM::Event; |
|
9
|
|
|
|
|
|
|
our @ISA = HTML::DOM::Event::; |
|
10
|
|
|
|
|
|
|
|
|
11
|
20
|
|
|
20
|
|
69
|
use constant 1.03 { ADDITION=>2, MODIFICATION=>1, REMOVAL=>3 }; |
|
|
20
|
|
|
|
|
419
|
|
|
|
20
|
|
|
|
|
1798
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
20
|
|
|
20
|
|
81
|
use Exporter 5.57 'import'; |
|
|
20
|
|
|
|
|
261
|
|
|
|
20
|
|
|
|
|
5601
|
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw 'ADDITION MODIFICATION REMOVAL'; |
|
15
|
|
|
|
|
|
|
our %EXPORT_TAGS = (all => \@EXPORT_OK); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
661
|
100
|
|
661
|
1
|
3832
|
sub relatedNode { $_[0]{rel_node }||() } |
|
19
|
540
|
|
|
540
|
1
|
1233
|
sub prevValue { $_[0]{prev_value } } |
|
20
|
541
|
|
|
541
|
1
|
1672
|
sub newValue { $_[0]{new_value } } |
|
21
|
996
|
|
|
996
|
1
|
2482
|
sub attrName { $_[0]{attr_name } } |
|
22
|
503
|
|
|
503
|
1
|
1263
|
sub attrChange { $_[0]{attr_change_type } } |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub initMutationEvent { |
|
25
|
1
|
|
|
1
|
1
|
2
|
my $self = $_[0]; |
|
26
|
1
|
|
|
|
|
1
|
my $x; |
|
27
|
1
|
|
|
|
|
8
|
$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
|
|
|
|
|
5
|
return; |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub init { |
|
35
|
1447
|
|
|
1447
|
1
|
1380
|
my $self = shift; |
|
36
|
1447
|
|
|
|
|
4409
|
my %args = @_; |
|
37
|
1447
|
|
|
|
|
6736
|
my %my_args = map +($_ => delete $args{$_}), |
|
38
|
|
|
|
|
|
|
qw( rel_node prev_value new_value attr_name |
|
39
|
|
|
|
|
|
|
attr_change_type ); |
|
40
|
1447
|
|
|
|
|
4275
|
$self->SUPER::init(%args); |
|
41
|
1447
|
|
|
|
|
8608
|
%$self = (%$self, %my_args); |
|
42
|
1447
|
|
|
|
|
5051
|
return; |
|
43
|
|
|
|
|
|
|
} |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*| |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |