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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/resources/paint-logging-green.js

Issue 1866623002: Hook up CSSPaintValue::image to CSS Paint API callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments + rebase. Created 4 years, 7 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
OLDNEW
(Empty)
1 // Logs the size of the geometry to the console.
2 // Fills the context with a green square.
3
4 registerPaint('logging-green', class {
5 paint(ctx, geom) {
6 console.log('width: ' + geom.width + ', height: ' + geom.height);
7 ctx.fillStyle = 'green';
8 ctx.fillRect(0, 0, geom.width, geom.height);
9 }
10 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698