summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-24 18:08:57 +0000
committerqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-24 18:08:57 +0000
commit833ff63f623399d6fb7e81099b8e78b02e77e316 (patch)
tree42ac971175e6d24af2b7e9510c824e89f45bf916
parent8a47f745c34e62c2e5ba5399ba01fb0a98e982eb (diff)
downloadchromium_src-833ff63f623399d6fb7e81099b8e78b02e77e316.zip
chromium_src-833ff63f623399d6fb7e81099b8e78b02e77e316.tar.gz
chromium_src-833ff63f623399d6fb7e81099b8e78b02e77e316.tar.bz2
Merge 213444 "Simplify the css sheets for old-style youtube plug..."
> Simplify the css sheets for old-style youtube plugins on android > > This change simplifies the css style for old style youtube plugins on android. > It also fixed a mysterious problem that the youtube placeholder will not be shown. > The problem is caused by having a relative positioned play button image. However, currently I have no idea why this is happening. There could be some layout bugs, or rendering bugs. Need to dig further into this when I have time. > In the mean time, we can cherry-pick this quick fix into m29. > > TBR=bauerb > BUG=255469 > > Review URL: https://chromiumcodereview.appspot.com/19858004 TBR=qinmin@chromium.org Review URL: https://codereview.chromium.org/19700007 git-svn-id: svn://svn.chromium.org/chrome/branches/1547/src@213463 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/renderer/resources/mobile_youtube_plugin.html14
1 files changed, 2 insertions, 12 deletions
diff --git a/chrome/renderer/resources/mobile_youtube_plugin.html b/chrome/renderer/resources/mobile_youtube_plugin.html
index 1147048..69f65cc 100644
--- a/chrome/renderer/resources/mobile_youtube_plugin.html
+++ b/chrome/renderer/resources/mobile_youtube_plugin.html
@@ -8,7 +8,6 @@ function insertBackground() {
}
</script>
<style type="text/css">
-
body {
background-color: black;
background-repeat: no-repeat;
@@ -16,17 +15,10 @@ body {
overflow: hidden;
}
-#main {
- position: absolute;
- width: 100%;
- height: 100%;
- padding: 0%;
-}
-
#inner {
- position: relative;
- top: 50%;
+ position: absolute;
left: 50%;
+ top: 50%;
margin-left: -33px;
margin-top: -23px;
}
@@ -47,9 +39,7 @@ body {
</style>
</head>
<body id="body" onLoad="insertBackground()">
-<div id="main">
<div id="logo"><img id="youtube" src="youtube.png"/></div>
<div id="inner"><img id="play" src="play.png" onclick="plugin.openYoutubeURL();"/></div>
-</div>
</body>
</html>