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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 , m_xmlErrors(&fragment->document()) | 804 , m_xmlErrors(&fragment->document()) |
805 , m_pendingScript(0) | 805 , m_pendingScript(0) |
806 , m_scriptStartPosition(TextPosition::belowRangePosition()) | 806 , m_scriptStartPosition(TextPosition::belowRangePosition()) |
807 , m_parsingFragment(true) | 807 , m_parsingFragment(true) |
808 { | 808 { |
809 #if !ENABLE(OILPAN) | 809 #if !ENABLE(OILPAN) |
810 fragment->ref(); | 810 fragment->ref(); |
811 #endif | 811 #endif |
812 | 812 |
813 // Add namespaces based on the parent node | 813 // Add namespaces based on the parent node |
814 WillBeHeapVector<RawPtrWillBeMember<Element> > elemStack; | 814 WillBeHeapVector<RawPtrWillBeMember<Element>> elemStack; |
815 while (parentElement) { | 815 while (parentElement) { |
816 elemStack.append(parentElement); | 816 elemStack.append(parentElement); |
817 | 817 |
818 Element* grandParentElement = parentElement->parentElement(); | 818 Element* grandParentElement = parentElement->parentElement(); |
819 if (!grandParentElement) | 819 if (!grandParentElement) |
820 break; | 820 break; |
821 parentElement = grandParentElement; | 821 parentElement = grandParentElement; |
822 } | 822 } |
823 | 823 |
824 if (elemStack.isEmpty()) | 824 if (elemStack.isEmpty()) |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 sax.initialized = XML_SAX2_MAGIC; | 1661 sax.initialized = XML_SAX2_MAGIC; |
1662 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); | 1662 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax,
&state); |
1663 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; | 1663 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; |
1664 parseChunk(parser->context(), parseString); | 1664 parseChunk(parser->context(), parseString); |
1665 finishParsing(parser->context()); | 1665 finishParsing(parser->context()); |
1666 attrsOK = state.gotAttributes; | 1666 attrsOK = state.gotAttributes; |
1667 return state.attributes; | 1667 return state.attributes; |
1668 } | 1668 } |
1669 | 1669 |
1670 } // namespace blink | 1670 } // namespace blink |
OLD | NEW |