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