[Webkit-unassigned] [Bug 110524] Add a way to watch pages for elements matching a CSS selector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 12 22:12:17 PDT 2013


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





--- Comment #14 from Jeffrey Yasskin <jyasskin at chromium.org>  2013-03-12 22:14:41 PST ---
(From update of attachment 192857)
@Simon: I would have loved to make this just a native code API, but I couldn't see how to tell the CSS matching system to execute some code when a particular selector matches without creating a property. Could you point out roughly how to do it?

View in context: https://bugs.webkit.org/attachment.cgi?id=192857&action=review
>> Source/Platform/chromium/public/WebVector.h:115
>> +    void resize(size_t newSize)
> 
> It was part of the design of WebVector that it is not resizable.  The idea was that people
> should primarily be working with WTF::Vector when inside WebKit and std::vector when outside
> of WebKit.  WebVector is just a go-between.
> 
> Also, this function does not appear to be used as part of this patch.  We should probably
> discuss this change separately.

This function is called by WTF::copyToVector (http://trac.webkit.org/browser/trunk/Source/WTF/wtf/HashSet.h#L247) in FrameLoaderClientImpl::selectorMatchChanged. Is there some other way you normally transfer WTF::HashSets into WebVectors? Clearly I can just write out a copy, but that seems like a waste.

-- 
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