OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the XSL implementation. | 2 * This file is part of the XSL implementation. |
3 * | 3 * |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple, Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple, Inc. All rights reserved. |
5 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@webkit.org> |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 String XSLTProcessor::getParameter(const String& /*namespaceURI*/, | 149 String XSLTProcessor::getParameter(const String& /*namespaceURI*/, |
150 const String& localName) const { | 150 const String& localName) const { |
151 // FIXME: namespace support? | 151 // FIXME: namespace support? |
152 // should make a QualifiedName here but we'd have to expose the impl | 152 // should make a QualifiedName here but we'd have to expose the impl |
153 return m_parameters.get(localName); | 153 return m_parameters.get(localName); |
154 } | 154 } |
155 | 155 |
156 void XSLTProcessor::removeParameter(const String& /*namespaceURI*/, | 156 void XSLTProcessor::removeParameter(const String& /*namespaceURI*/, |
157 const String& localName) { | 157 const String& localName) { |
158 // FIXME: namespace support? | 158 // FIXME: namespace support? |
159 m_parameters.remove(localName); | 159 m_parameters.erase(localName); |
160 } | 160 } |
161 | 161 |
162 void XSLTProcessor::reset() { | 162 void XSLTProcessor::reset() { |
163 m_stylesheet.clear(); | 163 m_stylesheet.clear(); |
164 m_stylesheetRootNode.clear(); | 164 m_stylesheetRootNode.clear(); |
165 m_parameters.clear(); | 165 m_parameters.clear(); |
166 } | 166 } |
167 | 167 |
168 DEFINE_TRACE(XSLTProcessor) { | 168 DEFINE_TRACE(XSLTProcessor) { |
169 visitor->trace(m_stylesheet); | 169 visitor->trace(m_stylesheet); |
170 visitor->trace(m_stylesheetRootNode); | 170 visitor->trace(m_stylesheetRootNode); |
171 visitor->trace(m_document); | 171 visitor->trace(m_document); |
172 } | 172 } |
173 | 173 |
174 } // namespace blink | 174 } // namespace blink |
OLD | NEW |