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

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

Issue 329183002: Removing "using" declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Trybot Errors Created 6 years, 6 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/XMLTreeViewer.cpp ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | 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 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "platform/network/ResourceError.h" 65 #include "platform/network/ResourceError.h"
66 #include "platform/network/ResourceRequest.h" 66 #include "platform/network/ResourceRequest.h"
67 #include "platform/network/ResourceResponse.h" 67 #include "platform/network/ResourceResponse.h"
68 #include "platform/weborigin/SecurityOrigin.h" 68 #include "platform/weborigin/SecurityOrigin.h"
69 #include "wtf/StringExtras.h" 69 #include "wtf/StringExtras.h"
70 #include "wtf/TemporaryChange.h" 70 #include "wtf/TemporaryChange.h"
71 #include "wtf/Threading.h" 71 #include "wtf/Threading.h"
72 #include "wtf/Vector.h" 72 #include "wtf/Vector.h"
73 #include "wtf/unicode/UTF8.h" 73 #include "wtf/unicode/UTF8.h"
74 74
75 using namespace std;
76
77 namespace WebCore { 75 namespace WebCore {
78 76
79 using namespace HTMLNames; 77 using namespace HTMLNames;
80 78
81 // FIXME: HTMLConstructionSite has a limit of 512, should these match? 79 // FIXME: HTMLConstructionSite has a limit of 512, should these match?
82 static const unsigned maxXMLTreeDepth = 5000; 80 static const unsigned maxXMLTreeDepth = 5000;
83 81
84 static inline String toString(const xmlChar* string, size_t length) 82 static inline String toString(const xmlChar* string, size_t length)
85 { 83 {
86 return String::fromUTF8(reinterpret_cast<const char*>(string), length); 84 return String::fromUTF8(reinterpret_cast<const char*>(string), length);
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 sax.initialized = XML_SAX2_MAGIC; 1616 sax.initialized = XML_SAX2_MAGIC;
1619 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax, &state); 1617 RefPtr<XMLParserContext> parser = XMLParserContext::createStringParser(&sax, &state);
1620 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; 1618 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />";
1621 parseChunk(parser->context(), parseString); 1619 parseChunk(parser->context(), parseString);
1622 finishParsing(parser->context()); 1620 finishParsing(parser->context());
1623 attrsOK = state.gotAttributes; 1621 attrsOK = state.gotAttributes;
1624 return state.attributes; 1622 return state.attributes;
1625 } 1623 }
1626 1624
1627 } // namespace WebCore 1625 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/xml/XMLTreeViewer.cpp ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698