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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGViewSpec.cpp

Issue 2024663002: Implement SetWrapperReferenceTo idl attribute within traceWrappers for svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Note: addToPropertyMap is not needed, as SVGViewSpec do not correspond to an element. 47 // Note: addToPropertyMap is not needed, as SVGViewSpec do not correspond to an element.
48 } 48 }
49 49
50 DEFINE_TRACE(SVGViewSpec) 50 DEFINE_TRACE(SVGViewSpec)
51 { 51 {
52 visitor->trace(m_contextElement); 52 visitor->trace(m_contextElement);
53 visitor->trace(m_transform); 53 visitor->trace(m_transform);
54 SVGFitToViewBox::trace(visitor); 54 SVGFitToViewBox::trace(visitor);
55 } 55 }
56 56
57 DEFINE_TRACE_WRAPPERS(SVGViewSpec)
58 {
59 visitor->traceWrappers(m_contextElement);
60 }
61
57 bool SVGViewSpec::parseViewSpec(const String& spec) 62 bool SVGViewSpec::parseViewSpec(const String& spec)
58 { 63 {
59 if (spec.isEmpty() || !m_contextElement) 64 if (spec.isEmpty() || !m_contextElement)
60 return false; 65 return false;
61 if (spec.is8Bit()) { 66 if (spec.is8Bit()) {
62 const LChar* ptr = spec.characters8(); 67 const LChar* ptr = spec.characters8();
63 const LChar* end = ptr + spec.length(); 68 const LChar* end = ptr + spec.length();
64 return parseViewSpecInternal(ptr, end); 69 return parseViewSpecInternal(ptr, end);
65 } 70 }
66 const UChar* ptr = spec.characters16(); 71 const UChar* ptr = spec.characters16();
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ptr++; 216 ptr++;
212 } 217 }
213 218
214 if (ptr >= end || *ptr != ')') 219 if (ptr >= end || *ptr != ')')
215 return false; 220 return false;
216 221
217 return true; 222 return true;
218 } 223 }
219 224
220 } // namespace blink 225 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGViewSpec.h ('k') | third_party/WebKit/Source/core/svg/properties/SVGPropertyTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698