void WMLOnEventElement::deregisterTask(WMLTaskElement*) { WMLEventHandlingElement* eventHandlingElement = eventHandlingParent(parentNode()); if (!eventHandlingElement) return; eventHandlingElement->eventHandler()->deregisterIntrinsicEvent(m_type); }
void WMLOnEventElement::registerTask(WMLTaskElement* task) { if (m_type == WMLIntrinsicEventUnknown || m_isNoop) // SAMSUNG_WML_FIXES+ return; // Register intrinsic event to the event handler of the owner of onevent element WMLEventHandlingElement* eventHandlingElement = eventHandlingParent(parentNode()); if (!eventHandlingElement) return; eventHandlingElement->createEventHandlerIfNeeded(); RefPtr<WMLIntrinsicEvent> event = WMLIntrinsicEvent::createWithTask(task); if (!eventHandlingElement->eventHandler()->registerIntrinsicEvent(m_type, event)) reportWMLError(document(), WMLErrorConflictingEventBinding); }
void WMLOnEventElement::registerTask(WMLTaskElement* task) { if (m_type == WMLIntrinsicEventUnknown) return; // Register intrinsic event to the event handler of the owner of onevent element Node* parent = parentNode(); ASSERT(parent); if (!parent || !parent->isWMLElement()) return; WMLEventHandlingElement* eventHandlingElement = toWMLEventHandlingElement(static_cast<WMLElement*>(parent)); if (!eventHandlingElement) return; eventHandlingElement->createEventHandlerIfNeeded(); RefPtr<WMLIntrinsicEvent> event = WMLIntrinsicEvent::createWithTask(task); if (!eventHandlingElement->eventHandler()->registerIntrinsicEvent(m_type, event)) reportWMLError(document(), WMLErrorConflictingEventBinding); }