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

Side by Side Diff: LayoutTests/fast/events/panScroll-panIcon.html

Issue 648913002: Clean up vestiges of ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style type="text/css"> 3 <style type="text/css">
4 #draggable { 4 #draggable {
5 padding: 5pt; 5 padding: 5pt;
6 border: 3px solid #00cc00; 6 border: 3px solid #00cc00;
7 background: #00cccc; 7 background: #00cccc;
8 width: 80px; 8 width: 80px;
9 cursor: hand; 9 cursor: hand;
10 } 10 }
11 11
12 #scrollable { 12 #scrollable {
13 height: 200px; 13 height: 200px;
14 overflow: auto; 14 overflow: auto;
15 border: solid 3px #cc0000; 15 border: solid 3px #cc0000;
16 font-size: 80px; 16 font-size: 80px;
17 } 17 }
18 </style> 18 </style>
19 <script> 19 <script>
20 function $(id) { return document.getElementById(id); } 20 function $(id) { return document.getElementById(id); }
21 var MIDDLE_BUTTON = 1; 21 var MIDDLE_BUTTON = 1;
22 var PAN_SCROLL_RADIUS = 15; // from WebCore/platform/ScrollView.h 22 var PAN_SCROLL_RADIUS = 15; // from FrameView::noPanScrollRadius
23 23
24 function setUpTest() 24 function setUpTest()
25 { 25 {
26 var scrollable = $('scrollable'); 26 var scrollable = $('scrollable');
27 for (var i = 0; i < 10; ++i) { 27 for (var i = 0; i < 10; ++i) {
28 var line = document.createElement('div'); 28 var line = document.createElement('div');
29 line.innerHTML = "line " + i; 29 line.innerHTML = "line " + i;
30 scrollable.appendChild(line); 30 scrollable.appendChild(line);
31 } 31 }
32 32
(...skipping 19 matching lines...) Expand all
52 <div id="container"> 52 <div id="container">
53 Scrollable 53 Scrollable
54 <div id="scrollable"> 54 <div id="scrollable">
55 </div> 55 </div>
56 </div> 56 </div>
57 <script> 57 <script>
58 setUpTest(); 58 setUpTest();
59 </script> 59 </script>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/rubberbanding/transform-overhang-w.html ('k') | LayoutTests/fast/events/resources/panScroll.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698