renames to bytesPerPixel and use nullptr

This commit is contained in:
gellert 2016-08-03 19:39:23 +02:00
parent 8a5e96056e
commit ca16132268
3 changed files with 6 additions and 6 deletions

View file

@ -1354,7 +1354,7 @@ void WebContents::OnPaint(const gfx::Rect& dirty_rect,
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate());
dict.Set("width", bitmap_size.width());
dict.Set("height", bitmap_size.height());
dict.Set("pixel", pixel_size);
dict.Set("bytesPerPixel", pixel_size);
if (!buffer.IsEmpty())
Emit("paint", dirty_rect, buffer.ToLocalChecked(), dict);