[Webkit-unassigned] [Bug 78882] [CSSRegions][CSSOM] Implement regionLayoutEvent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 7 09:10:14 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=78882


Dave Hyatt <hyatt at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #130439|review?, commit-queue?      |review-, commit-queue-
               Flag|                            |




--- Comment #5 from Dave Hyatt <hyatt at apple.com>  2012-03-07 09:10:15 PST ---
(From update of attachment 130439)
View in context: https://bugs.webkit.org/attachment.cgi?id=130439&action=review

> Source/WebCore/rendering/RenderFlowThread.cpp:349
> +static bool hasRegionLayoutUpdateListeners(Node* node)
> +{
> +    if (!node)
> +        return false;
> +
> +    if (node->hasEventListeners(eventNames().webkitRegionLayoutUpdateEvent))
> +        return true;
> +
> +    for (node = node->parentNode(); node; node = node->parentNode())
> +        if (node->hasEventListeners(eventNames().webkitRegionLayoutUpdateEvent))
> +            return true;
> +
> +    return false;
> +}

I wasn't really asking for a node crawl all the way up... just for something a bit simpler, e.g., a single global that indicated whether there are any registered listeners anywhere in the document.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list