[webkit-dev] MutationEvent
Yong Li
yong.li.webkit at gmail.com
Mon Nov 2 13:56:31 PST 2009
Hi, All,
Why there are #if 0 here? First, I'm told "#if 0" is not webkit style.
Second, the disabled code seems useful.
void Element::dispatchAttrRemovalEvent(Attribute*)
{
ASSERT(!eventDispatchForbidden());
#if 0
if (!document()->hasListenerType(Document::DOMATTRMODIFIED_LISTENER))
return;
ExceptionCode ec = 0;
dispatchEvent(new MutationEvent(DOMAttrModifiedEvent, true, false, attr,
attr->value(),
attr->value(), document()->attrName(attr->id()),
MutationEvent::REMOVAL), ec);
#endif
}
void Element::dispatchAttrAdditionEvent(Attribute*)
{
ASSERT(!eventDispatchForbidden());
#if 0
if (!document()->hasListenerType(Document::DOMATTRMODIFIED_LISTENER))
return;
ExceptionCode ec = 0;
dispatchEvent(new MutationEvent(DOMAttrModifiedEvent, true, false, attr,
attr->value(),
attr->value(), document()->attrName(attr->id()),
MutationEvent::ADDITION), ec);
#endif
}
Best regards,
-Yong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091102/dadf7bef/attachment.html>
More information about the webkit-dev
mailing list