Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10853)

Unified Diff: chrome/renderer/extensions/extension_helper.cc

Issue 19045002: Use Blink support to watch CSS selectors directly instead of using a MutationObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/extension_helper.cc
diff --git a/chrome/renderer/extensions/extension_helper.cc b/chrome/renderer/extensions/extension_helper.cc
index 041578c42902eb8a9547c5ca1d768640e23ba4fa..5975065059b67c887b3e7d4ee14badacd1ebf41e 100644
--- a/chrome/renderer/extensions/extension_helper.cc
+++ b/chrome/renderer/extensions/extension_helper.cc
@@ -230,6 +230,14 @@ void ExtensionHelper::FrameDetached(WebFrame* frame) {
g_schedulers.Get().erase(i);
}
+void ExtensionHelper::DidMatchCSS(
+ WebKit::WebFrame* frame,
+ const WebKit::WebVector<WebKit::WebString>& newlyMatchingSelectors,
+ const WebKit::WebVector<WebKit::WebString>& stoppedMatchingSelectors) {
+ dispatcher_->DidMatchCSS(
+ frame, newlyMatchingSelectors, stoppedMatchingSelectors);
+}
+
void ExtensionHelper::DidCreateDataSource(WebFrame* frame, WebDataSource* ds) {
// Check first if we created a scheduler for the frame, since this function
// gets called for navigations within the document.

Powered by Google App Engine
This is Rietveld 408576698