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

Side by Side Diff: Source/core/xml/parser/XMLDocumentParser.cpp

Issue 968293002: Fix template angle bracket syntax in xml (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698