original_string: public function prepend_child(Frame $child, $update_node = true)
      {
          if ($update_node) {
              $this->_node->insertBefore($child->_node, $this->_first_child ? $this->_first_child->_node : null);
          }
  
          // Remove the child from its parent
          if ($child->_parent) {
              $child->_parent->remove_child($child, false);
          }
  
          $child->_parent = $this;
          $child->_prev_sibling = null;
  
          // Handle the first child
          if (!$this->_first_child) {
              $this->_first_child = $child;
              $this->_last_child = $child;
              $child->_next_sibling = null;
          } else {
              $this->_first_child->_prev_sibling = $child;
              $child->_next_sibling = $this->_first_child;
              $this->_first_child = $child;
          }
      }
code: public function prepend_child(Frame $child, $update_node = true)
      {
          if ($update_node) {
              $this->_node->insertBefore($child->_node, $this->_first_child ? $this->_first_child->_node : null);
          }
  
          // Remove the child from its parent
          if ($child->_parent) {
              $child->_parent->remove_child($child, false);
          }
  
          $child->_parent = $this;
          $child->_prev_sibling = null;
  
          // Handle the first child
          if (!$this->_first_child) {
              $this->_first_child = $child;
              $this->_last_child = $child;
              $child->_next_sibling = null;
          } else {
              $this->_first_child->_prev_sibling = $child;
              $child->_next_sibling = $this->_first_child;
              $this->_first_child = $child;
          }
      }
code_tokens: public function prepend_child ( Frame $ child , $ update_node = true ) { if ( $ update_node ) { $ this -> _node -> insertBefore ( $ child -> _node , $ this -> _first_child ? $ this -> _first_child -> _node : null ) ; } // Remove the child from its parent if ( $ child -> _parent ) { $ child -> _parent -> remove_child ( $ child , false ) ; } $ child -> _parent = $ this ; $ child -> _prev_sibling = null ; // Handle the first child if ( ! $ this -> _first_child ) { $ this -> _first_child = $ child ; $ this -> _last_child = $ child ; $ child -> _next_sibling = null ; } else { $ this -> _first_child -> _prev_sibling = $ child ; $ child -> _next_sibling = $ this -> _first_child ; $ this -> _first_child = $ child ; } }
docstring: Inserts a new child at the beginning of the Frame
  
  @param $child       Frame The new Frame to insert
  @param $update_node boolean Whether or not to update the DOM
docstring_tokens: Inserts a new child at the beginning of the Frame