diff options
author | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 02:39:17 +0000 |
---|---|---|
committer | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 02:39:17 +0000 |
commit | 4785ac5f5696059041f7c5be3090c8d1daea023a (patch) | |
tree | 8bf5907ed988b6f93cca3115eb3679c9c08b7a8c /chrome/renderer | |
parent | 069726145766db03e604f5655dc3513d7140295a (diff) | |
download | chromium_src-4785ac5f5696059041f7c5be3090c8d1daea023a.zip chromium_src-4785ac5f5696059041f7c5be3090c8d1daea023a.tar.gz chromium_src-4785ac5f5696059041f7c5be3090c8d1daea023a.tar.bz2 |
Revert 170866
> Browser Plugin: Update DOM Node attributes when properties are updated
>
> BUG=163611
> Test=BrowserPluginHostTest.*, BrowserPluginTest.*, WebViewTest.*
>
> Review URL: https://codereview.chromium.org/11418261
TBR=fsamuel@chromium.org
Review URL: https://codereview.chromium.org/11415279
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/resources/extensions/web_view.js | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/chrome/renderer/resources/extensions/web_view.js b/chrome/renderer/resources/extensions/web_view.js index 0d46f21..1617e5c 100644 --- a/chrome/renderer/resources/extensions/web_view.js +++ b/chrome/renderer/resources/extensions/web_view.js @@ -90,14 +90,6 @@ function WebView(node) { this.node_, {attributes: true, attributeFilter: WEB_VIEW_ATTRIBUTES}); - var handleObjectMutation = this.handleObjectMutation_.bind(this); - var objectObserver = new WebKitMutationObserver(function(mutations) { - mutations.forEach(handleObjectMutation); - }); - objectObserver.observe( - this.objectNode_, - {attributes: true, attributeFilter: WEB_VIEW_ATTRIBUTES}); - var objectNode = this.objectNode_; // Expose getters and setters for the attributes. WEB_VIEW_ATTRIBUTES.forEach(function(attributeName) { @@ -134,21 +126,13 @@ function WebView(node) { * @private */ WebView.prototype.handleMutation_ = function(mutation) { - this.objectNode_[mutation.attributeName] = + this.node_[mutation.attributeName] = this.node_.getAttribute(mutation.attributeName); }; /** * @private */ -WebView.prototype.handleObjectMutation_ = function(mutation) { - this.node_.setAttribute(mutation.attributeName, - this.objectNode_.getAttribute(mutation.attributeName)); -}; - -/** - * @private - */ WebView.prototype.setupEvent_ = function(eventname, attribs) { var node = this.node_; this.objectNode_.addEventListener('-internal-' + eventname, function(e) { |