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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 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
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. 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 nbDefaulted, libxmlAttributes))); 986 nbDefaulted, libxmlAttributes)));
987 return; 987 return;
988 } 988 }
989 989
990 if (!updateLeafTextNode()) 990 if (!updateLeafTextNode())
991 return; 991 return;
992 992
993 AtomicString adjustedURI = uri; 993 AtomicString adjustedURI = uri;
994 if (m_parsingFragment && adjustedURI.isNull()) { 994 if (m_parsingFragment && adjustedURI.isNull()) {
995 if (!prefix.isNull()) 995 if (!prefix.isNull())
996 adjustedURI = m_prefixToNamespaceMap.get(prefix); 996 adjustedURI = m_prefixToNamespaceMap.at(prefix);
997 else 997 else
998 adjustedURI = m_defaultNamespaceURI; 998 adjustedURI = m_defaultNamespaceURI;
999 } 999 }
1000 1000
1001 bool isFirstElement = !m_sawFirstElement; 1001 bool isFirstElement = !m_sawFirstElement;
1002 m_sawFirstElement = true; 1002 m_sawFirstElement = true;
1003 1003
1004 QualifiedName qName(prefix, localName, adjustedURI); 1004 QualifiedName qName(prefix, localName, adjustedURI);
1005 Element* newElement = 1005 Element* newElement =
1006 m_currentNode->document().createElement(qName, CreatedByParser); 1006 m_currentNode->document().createElement(qName, CreatedByParser);
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 RefPtr<XMLParserContext> parser = 1709 RefPtr<XMLParserContext> parser =
1710 XMLParserContext::createStringParser(&sax, &state); 1710 XMLParserContext::createStringParser(&sax, &state);
1711 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; 1711 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />";
1712 parseChunk(parser->context(), parseString); 1712 parseChunk(parser->context(), parseString);
1713 finishParsing(parser->context()); 1713 finishParsing(parser->context());
1714 attrsOK = state.gotAttributes; 1714 attrsOK = state.gotAttributes;
1715 return state.attributes; 1715 return state.attributes;
1716 } 1716 }
1717 1717
1718 } // namespace blink 1718 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XSLTProcessor.cpp ('k') | third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698