OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
268 if (contextLostRestoredEventsEnabled()) { | 268 if (contextLostRestoredEventsEnabled()) { |
269 Event* event(Event::create(EventTypeNames::contextrestored)); | 269 Event* event(Event::create(EventTypeNames::contextrestored)); |
270 canvas()->dispatchEvent(event); | 270 canvas()->dispatchEvent(event); |
271 } | 271 } |
272 } | 272 } |
273 | 273 |
274 void CanvasRenderingContext2D::willDrawImage(CanvasImageSource* source) const { | 274 void CanvasRenderingContext2D::willDrawImage(CanvasImageSource* source) const { |
275 canvas()->willDrawImageTo2DContext(source); | 275 canvas()->willDrawImageTo2DContext(source); |
276 } | 276 } |
277 | 277 |
278 CanvasRenderingContext* CanvasRenderingContext2D::renderingContext() const { | |
279 return (CanvasRenderingContext*)(this); | |
Justin Novosad
2017/03/27 19:43:48
please use static_cast
zakerinasab
2017/03/30 17:56:11
Done.
| |
280 } | |
281 | |
278 ColorBehavior CanvasRenderingContext2D::drawImageColorBehavior() const { | 282 ColorBehavior CanvasRenderingContext2D::drawImageColorBehavior() const { |
279 return CanvasRenderingContext::colorBehaviorForMediaDrawnToCanvas(); | 283 return CanvasRenderingContext::colorBehaviorForMediaDrawnToCanvas(); |
280 } | 284 } |
281 | 285 |
282 void CanvasRenderingContext2D::reset() { | 286 void CanvasRenderingContext2D::reset() { |
283 // This is a multiple inherritance bootstrap | 287 // This is a multiple inherritance bootstrap |
284 BaseRenderingContext2D::reset(); | 288 BaseRenderingContext2D::reset(); |
285 } | 289 } |
286 | 290 |
287 void CanvasRenderingContext2D::restoreCanvasMatrixClipStack( | 291 void CanvasRenderingContext2D::restoreCanvasMatrixClipStack( |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1159 } | 1163 } |
1160 return true; | 1164 return true; |
1161 } | 1165 } |
1162 | 1166 |
1163 void CanvasRenderingContext2D::resetUsageTracking() { | 1167 void CanvasRenderingContext2D::resetUsageTracking() { |
1164 UsageCounters newCounters; | 1168 UsageCounters newCounters; |
1165 m_usageCounters = newCounters; | 1169 m_usageCounters = newCounters; |
1166 } | 1170 } |
1167 | 1171 |
1168 } // namespace blink | 1172 } // namespace blink |
OLD | NEW |