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

Unified Diff: chrome/test/data/gpu/webgl_teapot/teapot.html

Issue 8523022: Change snasphotting API to take in a bounds Rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as requested Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/gpu/webgl_teapot/teapot.html
diff --git a/chrome/test/data/gpu/webgl_teapot/teapot.html b/chrome/test/data/gpu/webgl_teapot/teapot.html
index 0a5f18be1f615d0699c6dc7b2e0749145c8f99c0..9b3a8452590f656e8c77c52abf3f6168fdbae791 100644
--- a/chrome/test/data/gpu/webgl_teapot/teapot.html
+++ b/chrome/test/data/gpu/webgl_teapot/teapot.html
@@ -8,7 +8,7 @@
<script type="text/javascript" src="./teapot_files/teapot-streams.js"></script>
<script type="text/javascript" src="./teapot_files/demo.js"></script>
<style type="text/css">
- .centeredcanvas {
+ .nomargin {
margin: 0px auto;
/* pointer-events: none; */
}
@@ -23,13 +23,9 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse est ligula,
Morbi pellentesque, metus sit amet auctor convallis, massa lectus interdum dui, vitae auctor diam sapien vel metus. Suspendisse faucibus, erat pellentesque tristique egestas, mi justo porta velit, vitae ornare mauris metus sit amet diam. Praesent posuere dapibus eleifend. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lorem neque, adipiscing eget egestas eget, semper rutrum velit. Praesent blandit tempor convallis. Ut scelerisque, magna pharetra consequat molestie, est arcu convallis justo, sed volutpat sem nisl vel ipsum. Donec euismod risus ut nibh accumsan eget rhoncus tellus vehicula. Etiam vulputate lorem id odio tempus quis suscipit sapien sollicitudin. Duis fringilla hendrerit elit, eget fringilla lectus consequat quis. Nunc suscipit vehicula lorem vel interdum. Sed lectus diam, mattis sed feugiat eget, ullamcorper et velit.
</p></div>
- <div style="position: absolute; top: 0px; width: 100%">
- <!-- Couldn't figure out how to get this effect without using
- the "center" tag -->
- <center>
- <canvas id="c" width="400" height="400" class="centeredcanvas">
- </canvas>
- </center>
+ <div style="position: absolute; top: 0px; left: 0px">
+ <canvas id="c" width="400" height="400" class="nomargin">
+ </canvas>
</div>

Powered by Google App Engine
This is Rietveld 408576698