HEX
Server: Apache/2.4.61 (Ubuntu)
System: Linux hosting106 7.0.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 7.0.12-1 (2026-06-09T21:07Z) x86_64
User: clinicadentalargarate.com (1193)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/cursos.ril.es/vendor/dompdf/dompdf/include/inline_frame_decorator.cls.php
<?php
/**
 * @package dompdf
 * @link    http://dompdf.github.com/
 * @author  Benj Carson <benjcarson@digitaljunkies.ca>
 * @author  Helmut Tischer <htischer@weihenstephan.org>
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */

/**
 * Decorates frames for inline layout
 *
 * @access private
 * @package dompdf
 */
class Inline_Frame_Decorator extends Frame_Decorator {
  
  function __construct(Frame $frame, DOMPDF $dompdf) { parent::__construct($frame, $dompdf); }

  function split(Frame $frame = null, $force_pagebreak = false) {

    if ( is_null($frame) ) {
      $this->get_parent()->split($this, $force_pagebreak);
      return;
    }

    if ( $frame->get_parent() !== $this )
      throw new DOMPDF_Exception("Unable to split: frame is not a child of this one.");
        
    $split = $this->copy( $this->_frame->get_node()->cloneNode() ); 
    $this->get_parent()->insert_child_after($split, $this);

    // Unset the current node's right style properties
    $style = $this->_frame->get_style();
    $style->margin_right = 0;
    $style->padding_right = 0;
    $style->border_right_width = 0;

    // Unset the split node's left style properties since we don't want them
    // to propagate
    $style = $split->get_style();
    $style->margin_left = 0;
    $style->padding_left = 0;
    $style->border_left_width = 0;

    //On continuation of inline element on next line,
    //don't repeat non-vertically repeatble background images
    //See e.g. in testcase image_variants, long desriptions
    if ( ($url = $style->background_image) && $url !== "none"
         && ($repeat = $style->background_repeat) && $repeat !== "repeat" &&  $repeat !== "repeat-y"
       ) {
      $style->background_image = "none";
    }           

    // Add $frame and all following siblings to the new split node
    $iter = $frame;
    while ($iter) {
      $frame = $iter;      
      $iter = $iter->get_next_sibling();
      $frame->reset();
      $split->append_child($frame);
    }
    
    $page_breaks = array("always", "left", "right");
    $frame_style = $frame->get_style();
    if( $force_pagebreak ||
      in_array($frame_style->page_break_before, $page_breaks) ||
      in_array($frame_style->page_break_after, $page_breaks) ) {

      $this->get_parent()->split($split, true);
    }
  }
  
}