Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 706123005: Remove nop ScriptWrappable::init calls (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/html/canvas/CanvasPattern.cpp ('k') | sky/engine/core/html/canvas/DataView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/CanvasPattern.cpp ('k') | sky/engine/core/html/canvas/DataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698