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

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

Issue 2812013004: Rewrite references to "wtf/" to "platform/wtf/" in core/{dom,html,xml}. (Closed)
Patch Set: Created 3 years, 8 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "platform/RuntimeEnabledFeatures.h" 63 #include "platform/RuntimeEnabledFeatures.h"
64 #include "platform/SharedBuffer.h" 64 #include "platform/SharedBuffer.h"
65 #include "platform/instrumentation/tracing/TraceEvent.h" 65 #include "platform/instrumentation/tracing/TraceEvent.h"
66 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 66 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
67 #include "platform/loader/fetch/RawResource.h" 67 #include "platform/loader/fetch/RawResource.h"
68 #include "platform/loader/fetch/ResourceError.h" 68 #include "platform/loader/fetch/ResourceError.h"
69 #include "platform/loader/fetch/ResourceFetcher.h" 69 #include "platform/loader/fetch/ResourceFetcher.h"
70 #include "platform/loader/fetch/ResourceRequest.h" 70 #include "platform/loader/fetch/ResourceRequest.h"
71 #include "platform/loader/fetch/ResourceResponse.h" 71 #include "platform/loader/fetch/ResourceResponse.h"
72 #include "platform/weborigin/SecurityOrigin.h" 72 #include "platform/weborigin/SecurityOrigin.h"
73 #include "wtf/AutoReset.h" 73 #include "platform/wtf/AutoReset.h"
74 #include "wtf/PtrUtil.h" 74 #include "platform/wtf/PtrUtil.h"
75 #include "wtf/StringExtras.h" 75 #include "platform/wtf/StringExtras.h"
76 #include "wtf/Threading.h" 76 #include "platform/wtf/Threading.h"
77 #include "wtf/Vector.h" 77 #include "platform/wtf/Vector.h"
78 #include "wtf/text/UTF8.h" 78 #include "platform/wtf/text/UTF8.h"
79 79
80 namespace blink { 80 namespace blink {
81 81
82 using namespace HTMLNames; 82 using namespace HTMLNames;
83 83
84 // FIXME: HTMLConstructionSite has a limit of 512, should these match? 84 // FIXME: HTMLConstructionSite has a limit of 512, should these match?
85 static const unsigned kMaxXMLTreeDepth = 5000; 85 static const unsigned kMaxXMLTreeDepth = 5000;
86 86
87 static inline String ToString(const xmlChar* string, size_t length) { 87 static inline String ToString(const xmlChar* string, size_t length) {
88 return String::FromUTF8(reinterpret_cast<const char*>(string), length); 88 return String::FromUTF8(reinterpret_cast<const char*>(string), length);
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 RefPtr<XMLParserContext> parser = 1718 RefPtr<XMLParserContext> parser =
1719 XMLParserContext::CreateStringParser(&sax, &state); 1719 XMLParserContext::CreateStringParser(&sax, &state);
1720 String parse_string = "<?xml version=\"1.0\"?><attrs " + string + " />"; 1720 String parse_string = "<?xml version=\"1.0\"?><attrs " + string + " />";
1721 ParseChunk(parser->Context(), parse_string); 1721 ParseChunk(parser->Context(), parse_string);
1722 FinishParsing(parser->Context()); 1722 FinishParsing(parser->Context());
1723 attrs_ok = state.got_attributes; 1723 attrs_ok = state.got_attributes;
1724 return state.attributes; 1724 return state.attributes;
1725 } 1725 }
1726 1726
1727 } // namespace blink 1727 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698