| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
| 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
| 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 10 * | 10 * |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 CanvasRenderingContext2D::~CanvasRenderingContext2D() | 112 CanvasRenderingContext2D::~CanvasRenderingContext2D() |
| 113 { | 113 { |
| 114 } | 114 } |
| 115 | 115 |
| 116 void CanvasRenderingContext2D::validateStateStack() | 116 void CanvasRenderingContext2D::validateStateStack() |
| 117 { | 117 { |
| 118 #if ASSERT_ENABLED | 118 #if ENABLE(ASSERT) |
| 119 GraphicsContext* context = canvas()->existingDrawingContext(); | 119 GraphicsContext* context = canvas()->existingDrawingContext(); |
| 120 if (context && !context->contextDisabled()) | 120 if (context && !context->contextDisabled()) |
| 121 ASSERT(context->saveCount() == m_stateStack.size()); | 121 ASSERT(context->saveCount() == m_stateStack.size()); |
| 122 #endif | 122 #endif |
| 123 } | 123 } |
| 124 | 124 |
| 125 bool CanvasRenderingContext2D::isAccelerated() const | 125 bool CanvasRenderingContext2D::isAccelerated() const |
| 126 { | 126 { |
| 127 if (!canvas()->hasImageBuffer()) | 127 if (!canvas()->hasImageBuffer()) |
| 128 return false; | 128 return false; |
| (...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2446 | 2446 |
| 2447 unsigned CanvasRenderingContext2D::hitRegionsCount() const | 2447 unsigned CanvasRenderingContext2D::hitRegionsCount() const |
| 2448 { | 2448 { |
| 2449 if (m_hitRegionManager) | 2449 if (m_hitRegionManager) |
| 2450 return m_hitRegionManager->getHitRegionsCount(); | 2450 return m_hitRegionManager->getHitRegionsCount(); |
| 2451 | 2451 |
| 2452 return 0; | 2452 return 0; |
| 2453 } | 2453 } |
| 2454 | 2454 |
| 2455 } // namespace WebCore | 2455 } // namespace WebCore |
| OLD | NEW |