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

Side by Side Diff: extensions/renderer/resources/guest_view/guest_view_iframe_container.js

Issue 2519423002: Remove unwanted <webview> border in OOPIF mode. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // --site-per-process overrides for guest_view_container.js 5 // --site-per-process overrides for guest_view_container.js
6 6
7 var GuestViewContainer = require('guestViewContainer').GuestViewContainer; 7 var GuestViewContainer = require('guestViewContainer').GuestViewContainer;
8 var IdGenerator = requireNative('id_generator'); 8 var IdGenerator = requireNative('id_generator');
9 9
10 GuestViewContainer.prototype.createInternalElement$ = function() { 10 GuestViewContainer.prototype.createInternalElement$ = function() {
11 var iframeElement = document.createElement('iframe'); 11 var iframeElement = document.createElement('iframe');
12 iframeElement.style.width = '100%'; 12 iframeElement.style.width = '100%';
13 iframeElement.style.height = '100%'; 13 iframeElement.style.height = '100%';
14 iframeElement.style.border = '0';
14 privates(iframeElement).internal = this; 15 privates(iframeElement).internal = this;
15 return iframeElement; 16 return iframeElement;
16 }; 17 };
17 18
18 GuestViewContainer.prototype.attachWindow$ = function() { 19 GuestViewContainer.prototype.attachWindow$ = function() {
19 var generatedId = IdGenerator.GetNextId(); 20 var generatedId = IdGenerator.GetNextId();
20 // Generate an instance id for the container. 21 // Generate an instance id for the container.
21 this.onInternalInstanceId(generatedId); 22 this.onInternalInstanceId(generatedId);
22 return true; 23 return true;
23 }; 24 };
24 25
25 GuestViewContainer.prototype.willAttachElement = function () { 26 GuestViewContainer.prototype.willAttachElement = function () {
26 if (this.deferredAttachCallback) { 27 if (this.deferredAttachCallback) {
27 this.deferredAttachCallback(); 28 this.deferredAttachCallback();
28 this.deferredAttachCallback = null; 29 this.deferredAttachCallback = null;
29 } 30 }
30 }; 31 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698