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

Unified Diff: chrome/renderer/resources/extensions/content_watcher.js

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: unCamelCase in Chrome code. 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
« no previous file with comments | « chrome/renderer/extensions/extension_helper.cc ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/content_watcher.js
diff --git a/chrome/renderer/resources/extensions/content_watcher.js b/chrome/renderer/resources/extensions/content_watcher.js
deleted file mode 100644
index e34317710613ee7a2bd3c8124591e0247100577f..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/content_watcher.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var contentWatcherNative = requireNative("contentWatcherNative");
-
-// Watches the page for all changes and calls FrameMutated (a C++ callback) in
-// response.
-var mutation_observer = new MutationObserver(contentWatcherNative.FrameMutated);
-
-// This runs once per frame, when the module is 'require'd.
-mutation_observer.observe(document, {
- childList: true,
- attributes: true,
- characterData: true,
- subtree: true});
« no previous file with comments | « chrome/renderer/extensions/extension_helper.cc ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698