helper used by reorderChild & add
| 242 | |
| 243 | // helper used by reorderChild & add |
| 244 | void ProtectedNode::insertProtectedChild(ax::Node* child, int z) |
| 245 | { |
| 246 | #if AX_ENABLE_GC_FOR_NATIVE_OBJECTS |
| 247 | auto sEngine = ScriptEngineManager::getInstance()->getScriptEngine(); |
| 248 | if (sEngine) |
| 249 | { |
| 250 | sEngine->retainScriptObject(this, child); |
| 251 | } |
| 252 | #endif // AX_ENABLE_GC_FOR_NATIVE_OBJECTS |
| 253 | _reorderProtectedChildDirty = true; |
| 254 | _protectedChildren.pushBack(child); |
| 255 | child->setLocalZOrder(z); |
| 256 | } |
| 257 | |
| 258 | void ProtectedNode::sortAllProtectedChildren() |
| 259 | { |
no test coverage detected