🎨
This commit is contained in:
parent
a2b6731bf2
commit
fef2f789cd
1 changed files with 2 additions and 4 deletions
|
@ -47,8 +47,7 @@ var WebViewImpl = (function () {
|
||||||
WebViewImpl.prototype.createBrowserPluginNode = function () {
|
WebViewImpl.prototype.createBrowserPluginNode = function () {
|
||||||
// We create BrowserPlugin as a custom element in order to observe changes
|
// We create BrowserPlugin as a custom element in order to observe changes
|
||||||
// to attributes synchronously.
|
// to attributes synchronously.
|
||||||
var browserPluginNode
|
var browserPluginNode = new WebViewImpl.BrowserPlugin()
|
||||||
browserPluginNode = new WebViewImpl.BrowserPlugin()
|
|
||||||
v8Util.setHiddenValue(browserPluginNode, 'internal', this)
|
v8Util.setHiddenValue(browserPluginNode, 'internal', this)
|
||||||
return browserPluginNode
|
return browserPluginNode
|
||||||
}
|
}
|
||||||
|
@ -259,8 +258,7 @@ var WebViewImpl = (function () {
|
||||||
|
|
||||||
// Registers browser plugin <object> custom element.
|
// Registers browser plugin <object> custom element.
|
||||||
var registerBrowserPluginElement = function () {
|
var registerBrowserPluginElement = function () {
|
||||||
var proto
|
var proto = Object.create(HTMLObjectElement.prototype)
|
||||||
proto = Object.create(HTMLObjectElement.prototype)
|
|
||||||
proto.createdCallback = function () {
|
proto.createdCallback = function () {
|
||||||
this.setAttribute('type', 'application/browser-plugin')
|
this.setAttribute('type', 'application/browser-plugin')
|
||||||
this.setAttribute('id', 'browser-plugin-' + getNextId())
|
this.setAttribute('id', 'browser-plugin-' + getNextId())
|
||||||
|
|
Loading…
Reference in a new issue