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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/webview-plugin-scroll.html

Issue 1466393003: Adjust windowRect of plugins for root frame scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 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
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 <embed id="plugin" type="application/x-plugin-placeholder-test"></embed>
3 <div style="height: 3000px"></div>
2 <style> 4 <style>
3 #plugin { 5 ::-webkit-scrollbar {
4 width: 150px; 6 -webkit-appearance: none;
5 height: 150px; 7 }
6 border: 1px solid black;
7 }
8 </style> 8 </style>
9 <embed id="plugin" type="application/x-plugin-placeholder-test"></embed>
10 <script> 9 <script>
11 onload = function() { 10 onload = function() {
11 window.scrollBy(0, 50);
12 if (window.testRunner) { 12 if (window.testRunner) {
13 window.testRunner.waitUntilDone(); 13 window.testRunner.waitUntilDone();
14 // Need to paint two frames in order to allow the plugin to properly loa d. 14 // Need to paint two frames in order to allow the plugin to properly loa d.
15 // TODO(chrishtr): find out why and fix. 15 // TODO(chrishtr): find out why and fix.
16 requestAnimationFrame(function() { 16 requestAnimationFrame(function() {
17 requestAnimationFrame(function() { 17 requestAnimationFrame(function() {
18 requestAnimationFrame(function() { 18 requestAnimationFrame(function() {
19 window.testRunner.notifyDone(); 19 window.testRunner.notifyDone();
20 }); 20 });
21 }); 21 });
22 }); 22 });
23 } 23 }
24 } 24 }
25 </script> 25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698