No need for explicit type conversion
This commit is contained in:
parent
c740438032
commit
d3e359ab2d
1 changed files with 6 additions and 6 deletions
|
@ -402,12 +402,12 @@ v8::Local<v8::Value> Converter<blink::WebCache::ResourceTypeStats>::ToV8(
|
||||||
v8::Isolate* isolate,
|
v8::Isolate* isolate,
|
||||||
const blink::WebCache::ResourceTypeStats& stats) {
|
const blink::WebCache::ResourceTypeStats& stats) {
|
||||||
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
|
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
|
||||||
dict.Set("images", mate::ConvertToV8(isolate, stats.images));
|
dict.Set("images", stats.images);
|
||||||
dict.Set("scripts", mate::ConvertToV8(isolate, stats.scripts));
|
dict.Set("scripts", stats.scripts);
|
||||||
dict.Set("cssStyleSheets", mate::ConvertToV8(isolate, stats.cssStyleSheets));
|
dict.Set("cssStyleSheets", stats.cssStyleSheets);
|
||||||
dict.Set("xslStyleSheets", mate::ConvertToV8(isolate, stats.xslStyleSheets));
|
dict.Set("xslStyleSheets", stats.xslStyleSheets);
|
||||||
dict.Set("fonts", mate::ConvertToV8(isolate, stats.fonts));
|
dict.Set("fonts", stats.fonts);
|
||||||
dict.Set("other", mate::ConvertToV8(isolate, stats.other));
|
dict.Set("other", stats.other);
|
||||||
return dict.GetHandle();
|
return dict.GetHandle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue