| 8895 | } |
| 8896 | |
| 8897 | void ldomNode::onCollectionDestroy() |
| 8898 | { |
| 8899 | if ( isNull() ) |
| 8900 | return; |
| 8901 | //CRLog::trace("ldomNode::onCollectionDestroy(%d) type=%d", this->_handle._dataIndex, TNTYPE); |
| 8902 | switch ( TNTYPE ) { |
| 8903 | case NT_TEXT: |
| 8904 | delete _data._text_ptr; |
| 8905 | _data._text_ptr = NULL; |
| 8906 | break; |
| 8907 | case NT_ELEMENT: |
| 8908 | // ??? |
| 8909 | #if BUILD_LITE!=1 |
| 8910 | getDocument()->clearNodeStyle( _handle._dataIndex ); |
| 8911 | #endif |
| 8912 | delete NPELEM; |
| 8913 | NPELEM = NULL; |
| 8914 | break; |
| 8915 | #if BUILD_LITE!=1 |
| 8916 | case NT_PTEXT: // immutable (persistent) text node |
| 8917 | // do nothing |
| 8918 | break; |
| 8919 | case NT_PELEMENT: // immutable (persistent) element node |
| 8920 | // do nothing |
| 8921 | break; |
| 8922 | #endif |
| 8923 | } |
| 8924 | } |
| 8925 | |
| 8926 | void ldomNode::destroy() |
| 8927 | { |
no test coverage detected