Changeset 45747 in webkit for trunk/WebCore/dom/XMLTokenizerLibxml2.cpp
- Timestamp:
- Jul 10, 2009, 10:36:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/dom/XMLTokenizerLibxml2.cpp
r43842 r45747 196 196 197 197 struct PendingStartElementNSCallback : public PendingCallback { 198 virtual ~PendingStartElementNSCallback() { 198 virtual ~PendingStartElementNSCallback() 199 { 199 200 xmlFree(xmlLocalName); 200 201 xmlFree(xmlPrefix); … … 209 210 } 210 211 211 virtual void call(XMLTokenizer* tokenizer) { 212 virtual void call(XMLTokenizer* tokenizer) 213 { 212 214 tokenizer->startElementNs(xmlLocalName, xmlPrefix, xmlURI, 213 215 nb_namespaces, const_cast<const xmlChar**>(namespaces), … … 313 315 virtual ~PendingErrorCallback() 314 316 { 315 free 317 free(message); 316 318 } 317 319 … … 345 347 OffsetBuffer(const Vector<char>& b) : m_buffer(b), m_currentOffset(0) { } 346 348 347 int readOutBytes(char* outputBuffer, unsigned askedToRead) { 349 int readOutBytes(char* outputBuffer, unsigned askedToRead) 350 { 348 351 unsigned bytesLeft = m_buffer.size() - m_currentOffset; 349 352 unsigned lenToCopy = min(askedToRead, bytesLeft); … … 669 672 { 670 673 xmlSAX2Namespace* namespaces = reinterpret_cast<xmlSAX2Namespace*>(libxmlNamespaces); 671 for (int i = 0; i < nb_namespaces; i++) {674 for (int i = 0; i < nb_namespaces; i++) { 672 675 String namespaceQName = "xmlns"; 673 676 String namespaceURI = toString(namespaces[i].uri); … … 692 695 { 693 696 xmlSAX2Attributes* attributes = reinterpret_cast<xmlSAX2Attributes*>(libxmlAttributes); 694 for (int i = 0; i < nb_attributes; i++) {697 for (int i = 0; i < nb_attributes; i++) { 695 698 String attrLocalName = toString(attributes[i].localname); 696 699 int valueLength = (int) (attributes[i].end - attributes[i].value); … … 1408 1411 1409 1412 xmlSAX2Attributes* attributes = reinterpret_cast<xmlSAX2Attributes*>(libxmlAttributes); 1410 for (int i = 0; i < nb_attributes; i++) {1413 for (int i = 0; i < nb_attributes; i++) { 1411 1414 String attrLocalName = toString(attributes[i].localname); 1412 1415 int valueLength = (int) (attributes[i].end - attributes[i].value);
Note:
See TracChangeset
for help on using the changeset viewer.