| Index: chrome/renderer/resources/extensions/web_view.js
|
| ===================================================================
|
| --- chrome/renderer/resources/extensions/web_view.js (revision 170866)
|
| +++ chrome/renderer/resources/extensions/web_view.js (working copy)
|
| @@ -90,14 +90,6 @@
|
| 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 @@
|
| * @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) {
|
|
|