[webkit-dev] MutationEvent
Jeremy Orlow
jorlow at chromium.org
Mon Nov 2 14:46:34 PST 2009
Did try svn blaming it and looking at the corresponding changelog entry?
On Mon, Nov 2, 2009 at 2:56 PM, Yong Li <yong.li.webkit at gmail.com> wrote:
> 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
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091102/242a0ed6/attachment.html>
More information about the webkit-dev
mailing list