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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 , m_hasAlpha(!attrs || attrs->alpha()) | 92 , m_hasAlpha(!attrs || attrs->alpha()) |
93 , m_isContextLost(false) | 93 , m_isContextLost(false) |
94 , m_contextRestorable(true) | 94 , m_contextRestorable(true) |
95 , m_storageMode(!attrs ? PersistentStorage : attrs->parsedStorage()) | 95 , m_storageMode(!attrs ? PersistentStorage : attrs->parsedStorage()) |
96 , m_tryRestoreContextAttemptCount(0) | 96 , m_tryRestoreContextAttemptCount(0) |
97 , m_dispatchContextLostEventTimer(this, &CanvasRenderingContext2D::dispatchC
ontextLostEvent) | 97 , m_dispatchContextLostEventTimer(this, &CanvasRenderingContext2D::dispatchC
ontextLostEvent) |
98 , m_dispatchContextRestoredEventTimer(this, &CanvasRenderingContext2D::dispa
tchContextRestoredEvent) | 98 , m_dispatchContextRestoredEventTimer(this, &CanvasRenderingContext2D::dispa
tchContextRestoredEvent) |
99 , m_tryRestoreContextEventTimer(this, &CanvasRenderingContext2D::tryRestoreC
ontextEvent) | 99 , m_tryRestoreContextEventTimer(this, &CanvasRenderingContext2D::tryRestoreC
ontextEvent) |
100 { | 100 { |
101 m_stateStack.append(adoptPtrWillBeNoop(new State())); | 101 m_stateStack.append(adoptPtrWillBeNoop(new State())); |
102 ScriptWrappable::init(this); | |
103 } | 102 } |
104 | 103 |
105 void CanvasRenderingContext2D::unwindStateStack() | 104 void CanvasRenderingContext2D::unwindStateStack() |
106 { | 105 { |
107 if (size_t stackSize = m_stateStack.size()) { | 106 if (size_t stackSize = m_stateStack.size()) { |
108 if (GraphicsContext* context = canvas()->existingDrawingContext()) { | 107 if (GraphicsContext* context = canvas()->existingDrawingContext()) { |
109 while (--stackSize) | 108 while (--stackSize) |
110 context->restore(); | 109 context->restore(); |
111 } | 110 } |
112 } | 111 } |
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2503 | 2502 |
2504 unsigned CanvasRenderingContext2D::hitRegionsCount() const | 2503 unsigned CanvasRenderingContext2D::hitRegionsCount() const |
2505 { | 2504 { |
2506 if (m_hitRegionManager) | 2505 if (m_hitRegionManager) |
2507 return m_hitRegionManager->getHitRegionsCount(); | 2506 return m_hitRegionManager->getHitRegionsCount(); |
2508 | 2507 |
2509 return 0; | 2508 return 0; |
2510 } | 2509 } |
2511 | 2510 |
2512 } // namespace blink | 2511 } // namespace blink |
OLD | NEW |