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

Side by Side Diff: Source/core/svg/SVGElementInstance.cpp

Issue 15492007: Make SVG objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix indent Created 7 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGElementInstance.h ('k') | Source/core/svg/SVGElementInstanceList.h » ('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) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 , m_correspondingUseElement(correspondingUseElement) 44 , m_correspondingUseElement(correspondingUseElement)
45 , m_directUseElement(directUseElement) 45 , m_directUseElement(directUseElement)
46 , m_element(originalElement) 46 , m_element(originalElement)
47 , m_previousSibling(0) 47 , m_previousSibling(0)
48 , m_nextSibling(0) 48 , m_nextSibling(0)
49 , m_firstChild(0) 49 , m_firstChild(0)
50 , m_lastChild(0) 50 , m_lastChild(0)
51 { 51 {
52 ASSERT(m_correspondingUseElement); 52 ASSERT(m_correspondingUseElement);
53 ASSERT(m_element); 53 ASSERT(m_element);
54 ScriptWrappable::init(this);
54 55
55 // Register as instance for passed element. 56 // Register as instance for passed element.
56 m_element->mapInstanceToElement(this); 57 m_element->mapInstanceToElement(this);
57 58
58 #ifndef NDEBUG 59 #ifndef NDEBUG
59 instanceCounter.increment(); 60 instanceCounter.increment();
60 #endif 61 #endif
61 } 62 }
62 63
63 SVGElementInstance::~SVGElementInstance() 64 SVGElementInstance::~SVGElementInstance()
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 m_targetElement->setInstanceUpdatesBlocked(true); 205 m_targetElement->setInstanceUpdatesBlocked(true);
205 } 206 }
206 207
207 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() 208 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker()
208 { 209 {
209 if (m_targetElement) 210 if (m_targetElement)
210 m_targetElement->setInstanceUpdatesBlocked(false); 211 m_targetElement->setInstanceUpdatesBlocked(false);
211 } 212 }
212 213
213 } 214 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElementInstance.h ('k') | Source/core/svg/SVGElementInstanceList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698