line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::DOM::Event::Mutation; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.056'; |
4
|
|
|
|
|
|
|
|
5
|
20
|
|
|
20
|
|
468
|
use warnings; no warnings qw 'utf8 parenthesis'; |
|
20
|
|
|
20
|
|
22
|
|
|
20
|
|
|
|
|
595
|
|
|
20
|
|
|
|
|
59
|
|
|
20
|
|
|
|
|
17
|
|
|
20
|
|
|
|
|
576
|
|
6
|
20
|
|
|
20
|
|
62
|
use strict; |
|
20
|
|
|
|
|
23
|
|
|
20
|
|
|
|
|
874
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require HTML::DOM::Event; |
9
|
|
|
|
|
|
|
our @ISA = HTML::DOM::Event::; |
10
|
|
|
|
|
|
|
|
11
|
20
|
|
|
20
|
|
61
|
use constant 1.03 { ADDITION=>2, MODIFICATION=>1, REMOVAL=>3 }; |
|
20
|
|
|
|
|
305
|
|
|
20
|
|
|
|
|
1565
|
|
12
|
|
|
|
|
|
|
|
13
|
20
|
|
|
20
|
|
72
|
use Exporter 5.57 'import'; |
|
20
|
|
|
|
|
244
|
|
|
20
|
|
|
|
|
4956
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw 'ADDITION MODIFICATION REMOVAL'; |
15
|
|
|
|
|
|
|
our %EXPORT_TAGS = (all => \@EXPORT_OK); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
661
|
100
|
|
661
|
1
|
3418
|
sub relatedNode { $_[0]{rel_node }||() } |
19
|
540
|
|
|
540
|
1
|
1075
|
sub prevValue { $_[0]{prev_value } } |
20
|
541
|
|
|
541
|
1
|
1482
|
sub newValue { $_[0]{new_value } } |
21
|
996
|
|
|
996
|
1
|
2181
|
sub attrName { $_[0]{attr_name } } |
22
|
503
|
|
|
503
|
1
|
1194
|
sub attrChange { $_[0]{attr_change_type } } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub initMutationEvent { |
25
|
1
|
|
|
1
|
1
|
1
|
my $self = $_[0]; |
26
|
1
|
|
|
|
|
1
|
my $x; |
27
|
1
|
|
|
|
|
6
|
$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
|
|
|
|
|
3
|
return; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub init { |
35
|
1447
|
|
|
1447
|
1
|
1174
|
my $self = shift; |
36
|
1447
|
|
|
|
|
3909
|
my %args = @_; |
37
|
1447
|
|
|
|
|
6527
|
my %my_args = map +($_ => delete $args{$_}), |
38
|
|
|
|
|
|
|
qw( rel_node prev_value new_value attr_name |
39
|
|
|
|
|
|
|
attr_change_type ); |
40
|
1447
|
|
|
|
|
3959
|
$self->SUPER::init(%args); |
41
|
1447
|
|
|
|
|
8281
|
%$self = (%$self, %my_args); |
42
|
1447
|
|
|
|
|
4604
|
return; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*| |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |