OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" | 5 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" |
6 | 6 |
7 #include "bindings/modules/v8/UnionTypesModules.h" | 7 #include "bindings/modules/v8/UnionTypesModules.h" |
8 #include "platform/NotImplemented.h" | 8 #include "platform/NotImplemented.h" |
9 #include "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 bool OffscreenCanvasRenderingContext2D::wouldTaintOrigin(CanvasImageSource* sour
ce) | 43 bool OffscreenCanvasRenderingContext2D::wouldTaintOrigin(CanvasImageSource* sour
ce) |
44 { | 44 { |
45 notImplemented(); | 45 notImplemented(); |
46 return false; | 46 return false; |
47 } | 47 } |
48 | 48 |
49 int OffscreenCanvasRenderingContext2D::width() const | 49 int OffscreenCanvasRenderingContext2D::width() const |
50 { | 50 { |
51 return offscreenCanvas()->height(); | 51 return getOffscreenCanvas()->height(); |
52 } | 52 } |
53 | 53 |
54 int OffscreenCanvasRenderingContext2D::height() const | 54 int OffscreenCanvasRenderingContext2D::height() const |
55 { | 55 { |
56 return offscreenCanvas()->width(); | 56 return getOffscreenCanvas()->width(); |
57 } | 57 } |
58 | 58 |
59 bool OffscreenCanvasRenderingContext2D::hasImageBuffer() const | 59 bool OffscreenCanvasRenderingContext2D::hasImageBuffer() const |
60 { | 60 { |
61 notImplemented(); | 61 notImplemented(); |
62 return false; | 62 return false; |
63 } | 63 } |
64 | 64 |
65 ImageBuffer* OffscreenCanvasRenderingContext2D::imageBuffer() const | 65 ImageBuffer* OffscreenCanvasRenderingContext2D::imageBuffer() const |
66 { | 66 { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 notImplemented(); | 119 notImplemented(); |
120 } | 120 } |
121 | 121 |
122 bool OffscreenCanvasRenderingContext2D::isContextLost() const | 122 bool OffscreenCanvasRenderingContext2D::isContextLost() const |
123 { | 123 { |
124 notImplemented(); | 124 notImplemented(); |
125 return false; | 125 return false; |
126 } | 126 } |
127 | 127 |
128 } | 128 } |
OLD | NEW |