Commit 37744987 authored by mkosiba's avatar mkosiba Committed by Commit bot

Don't use setFixedLayoutSize in WebViewPlugin.

The original usage of the method was added to fix a rendering issue
with the YouTube plugin: see http://crrev.com/2862031 .
Setting an appropriate viewport seems to work as well
and removes usage of a method I'm trying to remove.

BUG=417221

Review URL: https://codereview.chromium.org/596253002

Cr-Commit-Position: refs/heads/master@{#296440}
parent f43b759f
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<script> <script>
function debug(msg) { function debug(msg) {
document.getElementById('debug').textContent = msg; document.getElementById('debug').textContent = msg;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<script> <script>
function debug(msg) { function debug(msg) {
document.getElementById('debug').textContent = msg; document.getElementById('debug').textContent = msg;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<script> <script>
function debug(msg) { function debug(msg) {
document.getElementById('debug').textContent = msg; document.getElementById('debug').textContent = msg;
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, user-scalable=no">
<script> <script>
function insertBackground() { function insertBackground() {
var video = templateData['video_id']; var video = templateData['video_id'];
......
...@@ -153,7 +153,6 @@ void WebViewPlugin::updateGeometry(const WebRect& frame_rect, ...@@ -153,7 +153,6 @@ void WebViewPlugin::updateGeometry(const WebRect& frame_rect,
if (static_cast<gfx::Rect>(frame_rect) != rect_) { if (static_cast<gfx::Rect>(frame_rect) != rect_) {
rect_ = frame_rect; rect_ = frame_rect;
WebSize newSize(frame_rect.width, frame_rect.height); WebSize newSize(frame_rect.width, frame_rect.height);
web_view_->setFixedLayoutSize(newSize);
web_view_->resize(newSize); web_view_->resize(newSize);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment