| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 , m_hasAlpha(!attrs || attrs->alpha()) | 89 , m_hasAlpha(!attrs || attrs->alpha()) |
| 90 , m_isContextLost(false) | 90 , m_isContextLost(false) |
| 91 , m_contextRestorable(true) | 91 , m_contextRestorable(true) |
| 92 , m_storageMode(!attrs ? PersistentStorage : attrs->parsedStorage()) | 92 , m_storageMode(!attrs ? PersistentStorage : attrs->parsedStorage()) |
| 93 , m_tryRestoreContextAttemptCount(0) | 93 , m_tryRestoreContextAttemptCount(0) |
| 94 , m_dispatchContextLostEventTimer(this, &CanvasRenderingContext2D::dispatchC
ontextLostEvent) | 94 , m_dispatchContextLostEventTimer(this, &CanvasRenderingContext2D::dispatchC
ontextLostEvent) |
| 95 , m_dispatchContextRestoredEventTimer(this, &CanvasRenderingContext2D::dispa
tchContextRestoredEvent) | 95 , m_dispatchContextRestoredEventTimer(this, &CanvasRenderingContext2D::dispa
tchContextRestoredEvent) |
| 96 , m_tryRestoreContextEventTimer(this, &CanvasRenderingContext2D::tryRestoreC
ontextEvent) | 96 , m_tryRestoreContextEventTimer(this, &CanvasRenderingContext2D::tryRestoreC
ontextEvent) |
| 97 { | 97 { |
| 98 m_stateStack.append(adoptPtr(new State())); | 98 m_stateStack.append(adoptPtr(new State())); |
| 99 ScriptWrappable::init(this); | |
| 100 } | 99 } |
| 101 | 100 |
| 102 void CanvasRenderingContext2D::unwindStateStack() | 101 void CanvasRenderingContext2D::unwindStateStack() |
| 103 { | 102 { |
| 104 if (size_t stackSize = m_stateStack.size()) { | 103 if (size_t stackSize = m_stateStack.size()) { |
| 105 if (GraphicsContext* context = canvas()->existingDrawingContext()) { | 104 if (GraphicsContext* context = canvas()->existingDrawingContext()) { |
| 106 while (--stackSize) | 105 while (--stackSize) |
| 107 context->restore(); | 106 context->restore(); |
| 108 } | 107 } |
| 109 } | 108 } |
| (...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2462 | 2461 |
| 2463 unsigned CanvasRenderingContext2D::hitRegionsCount() const | 2462 unsigned CanvasRenderingContext2D::hitRegionsCount() const |
| 2464 { | 2463 { |
| 2465 if (m_hitRegionManager) | 2464 if (m_hitRegionManager) |
| 2466 return m_hitRegionManager->getHitRegionsCount(); | 2465 return m_hitRegionManager->getHitRegionsCount(); |
| 2467 | 2466 |
| 2468 return 0; | 2467 return 0; |
| 2469 } | 2468 } |
| 2470 | 2469 |
| 2471 } // namespace blink | 2470 } // namespace blink |
| OLD | NEW |