OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "config.h" | |
6 #include "core/html/canvas/OffScreenCanvas.h" | |
7 | |
8 namespace blink { | |
9 | |
10 OffScreenCanvas* OffScreenCanvas::create(unsigned long width, unsigned long heig ht) | |
Justin Novosad
2015/12/03 05:07:59
no 'long'
xidachen
2015/12/03 14:16:16
Done.
| |
11 { | |
12 return new OffScreenCanvas(IntSize(width, height)); | |
Justin Novosad
2015/12/03 05:07:59
another implicit cast with a risk of overflow.
xidachen
2015/12/03 14:16:17
I am not sure what's the best solution here. But r
| |
13 } | |
14 | |
15 OffScreenCanvas::OffScreenCanvas(const IntSize& size) | |
16 : m_size(size) | |
17 { | |
18 } | |
19 | |
20 DEFINE_TRACE(OffScreenCanvas) | |
21 { | |
22 } | |
23 | |
24 } // namespace blink | |
OLD | NEW |