[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 23:04:24 PDT 2013


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





--- Comment #15 from Darin Fisher (:fishd, Google) <fishd at chromium.org>  2013-03-12 23:06:46 PST ---
(In reply to comment #14)
...
> 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.

Ah.  I don't think this scenario comes up that often.  I couldn't find any examples while digging through the code.  In most cases where we want a WebVector, we start out with a WTF::Vector.

I'd be tempted to just create an intermediate WTF::Vector in this case.  While that is a bit costly in the case where resize() is not needed, I suspect it won't matter in practice.

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