| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2005, 2006, 2008, 2014 Apple Inc. All rights reserved. | 3 * Copyright (C) 2005, 2006, 2008, 2014 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 5 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2008 Holger Hans Peter Freyther | 7 * Copyright (C) 2008 Holger Hans Peter Freyther |
| 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 sax.startElementNs = startElementNsHandler; | 1427 sax.startElementNs = startElementNsHandler; |
| 1428 sax.endElementNs = endElementNsHandler; | 1428 sax.endElementNs = endElementNsHandler; |
| 1429 sax.getEntity = getEntityHandler; | 1429 sax.getEntity = getEntityHandler; |
| 1430 sax.startDocument = startDocumentHandler; | 1430 sax.startDocument = startDocumentHandler; |
| 1431 sax.endDocument = endDocumentHandler; | 1431 sax.endDocument = endDocumentHandler; |
| 1432 sax.internalSubset = internalSubsetHandler; | 1432 sax.internalSubset = internalSubsetHandler; |
| 1433 sax.externalSubset = externalSubsetHandler; | 1433 sax.externalSubset = externalSubsetHandler; |
| 1434 sax.ignorableWhitespace = ignorableWhitespaceHandler; | 1434 sax.ignorableWhitespace = ignorableWhitespaceHandler; |
| 1435 sax.entityDecl = xmlSAX2EntityDecl; | 1435 sax.entityDecl = xmlSAX2EntityDecl; |
| 1436 sax.initialized = XML_SAX2_MAGIC; | 1436 sax.initialized = XML_SAX2_MAGIC; |
| 1437 DocumentParser::startParsing(); | |
| 1438 m_sawError = false; | 1437 m_sawError = false; |
| 1439 m_sawCSS = false; | 1438 m_sawCSS = false; |
| 1440 m_sawXSLTransform = false; | 1439 m_sawXSLTransform = false; |
| 1441 m_sawFirstElement = false; | 1440 m_sawFirstElement = false; |
| 1442 | 1441 |
| 1443 XMLDocumentParserScope scope(document()->fetcher()); | 1442 XMLDocumentParserScope scope(document()->fetcher()); |
| 1444 if (m_parsingFragment) { | 1443 if (m_parsingFragment) { |
| 1445 m_context = XMLParserContext::createMemoryParser(&sax, this, chunk); | 1444 m_context = XMLParserContext::createMemoryParser(&sax, this, chunk); |
| 1446 } else { | 1445 } else { |
| 1447 ASSERT(!chunk.data()); | 1446 ASSERT(!chunk.data()); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 sax.initialized = XML_SAX2_MAGIC; | 1628 sax.initialized = XML_SAX2_MAGIC; |
| 1630 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1629 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
| 1631 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1630 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
| 1632 parseChunk(parser->context(), parseString); | 1631 parseChunk(parser->context(), parseString); |
| 1633 finishParsing(parser->context()); | 1632 finishParsing(parser->context()); |
| 1634 attrsOK = state.gotAttributes; | 1633 attrsOK = state.gotAttributes; |
| 1635 return state.attributes; | 1634 return state.attributes; |
| 1636 } | 1635 } |
| 1637 | 1636 |
| 1638 } // namespace blink | 1637 } // namespace blink |
| OLD | NEW |