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

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

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 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/SVGStyleElement.cpp ('k') | Source/core/svg/SVGUseElement.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) 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 addToPropertyMap(m_spacing); 63 addToPropertyMap(m_spacing);
64 } 64 }
65 65
66 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document) 66 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document)
67 { 67 {
68 return adoptRef(new SVGTextPathElement(document)); 68 return adoptRef(new SVGTextPathElement(document));
69 } 69 }
70 70
71 SVGTextPathElement::~SVGTextPathElement() 71 SVGTextPathElement::~SVGTextPathElement()
72 { 72 {
73 #if !ENABLE(OILPAN)
73 clearResourceReferences(); 74 clearResourceReferences();
75 #endif
74 } 76 }
75 77
76 void SVGTextPathElement::clearResourceReferences() 78 void SVGTextPathElement::clearResourceReferences()
77 { 79 {
78 document().accessSVGExtensions().removeAllTargetReferencesForElement(this); 80 document().accessSVGExtensions().removeAllTargetReferencesForElement(this);
79 } 81 }
80 82
81 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName) 83 bool SVGTextPathElement::isSupportedAttribute(const QualifiedName& attrName)
82 { 84 {
83 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 85 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 clearResourceReferences(); 183 clearResourceReferences();
182 } 184 }
183 185
184 bool SVGTextPathElement::selfHasRelativeLengths() const 186 bool SVGTextPathElement::selfHasRelativeLengths() const
185 { 187 {
186 return m_startOffset->currentValue()->isRelative() 188 return m_startOffset->currentValue()->isRelative()
187 || SVGTextContentElement::selfHasRelativeLengths(); 189 || SVGTextContentElement::selfHasRelativeLengths();
188 } 190 }
189 191
190 } 192 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGStyleElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698