line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#! perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
13
|
use v5.26; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
6
|
use Object::Pad; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
5
|
1
|
|
|
1
|
|
98
|
use utf8; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
7
|
|
6
|
1
|
|
|
1
|
|
23
|
use Carp; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
110
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
class SVGPDF::Style :isa(SVGPDF::Element); |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
0
|
|
method process () { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my $atts = $self->atts; |
12
|
0
|
|
|
|
|
|
my $xo = $self->xo; |
13
|
0
|
0
|
|
|
|
|
return if $atts->{omit}; # for testing/debugging. |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
$self->_dbg( "+", $self->name, " ====" ); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
my $cdata = ""; |
18
|
0
|
|
|
|
|
|
for my $t ( $self->get_children ) { |
19
|
0
|
0
|
|
|
|
|
croak("# ASSERT: non-text child in style") |
20
|
|
|
|
|
|
|
unless ref($t) eq "SVGPDF::TextElement"; |
21
|
0
|
|
|
|
|
|
$cdata .= $t->content; |
22
|
|
|
|
|
|
|
} |
23
|
0
|
0
|
|
|
|
|
if ( $cdata =~ /\S/ ) { |
24
|
0
|
|
|
|
|
|
$self->root->css->read_string($cdata); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Ok? |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$self->_dbg( "-" ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |