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

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

Issue 2513363002: Remove WTF_ATTRIBUTE_PRINTF. (Closed)
Patch Set: Remove comments Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.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, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 4 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
5 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 5 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
7 * (http://www.torchmobile.com/) 7 * (http://www.torchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 15 matching lines...) Expand all
26 #ifndef XMLDocumentParser_h 26 #ifndef XMLDocumentParser_h
27 #define XMLDocumentParser_h 27 #define XMLDocumentParser_h
28 28
29 #include "core/dom/ParserContentPolicy.h" 29 #include "core/dom/ParserContentPolicy.h"
30 #include "core/dom/ScriptableDocumentParser.h" 30 #include "core/dom/ScriptableDocumentParser.h"
31 #include "core/fetch/ResourceClient.h" 31 #include "core/fetch/ResourceClient.h"
32 #include "core/loader/resource/ScriptResource.h" 32 #include "core/loader/resource/ScriptResource.h"
33 #include "core/xml/parser/XMLErrors.h" 33 #include "core/xml/parser/XMLErrors.h"
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "platform/text/SegmentedString.h" 35 #include "platform/text/SegmentedString.h"
36 #include "wtf/Compiler.h"
36 #include "wtf/HashMap.h" 37 #include "wtf/HashMap.h"
37 #include "wtf/RefCounted.h" 38 #include "wtf/RefCounted.h"
38 #include "wtf/text/CString.h" 39 #include "wtf/text/CString.h"
39 #include "wtf/text/StringHash.h" 40 #include "wtf/text/StringHash.h"
40 #include <libxml/tree.h> 41 #include <libxml/tree.h>
41 #include <memory> 42 #include <memory>
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class ContainerNode; 46 class ContainerNode;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 133
133 void end(); 134 void end();
134 135
135 void pauseParsing(); 136 void pauseParsing();
136 void resumeParsing(); 137 void resumeParsing();
137 138
138 bool appendFragmentSource(const String&); 139 bool appendFragmentSource(const String&);
139 140
140 public: 141 public:
141 // Callbacks from parser SAX 142 // Callbacks from parser SAX
142 void error(XMLErrors::ErrorType, const char* message, va_list args) 143 PRINTF_FORMAT(3, 0)
143 WTF_ATTRIBUTE_PRINTF(3, 0); 144 void error(XMLErrors::ErrorType, const char* message, va_list args);
144 void startElementNs(const AtomicString& localName, 145 void startElementNs(const AtomicString& localName,
145 const AtomicString& prefix, 146 const AtomicString& prefix,
146 const AtomicString& uri, 147 const AtomicString& uri,
147 int namespaceCount, 148 int namespaceCount,
148 const xmlChar** namespaces, 149 const xmlChar** namespaces,
149 int attributeCount, 150 int attributeCount,
150 int defaultedCount, 151 int defaultedCount,
151 const xmlChar** libxmlAttributes); 152 const xmlChar** libxmlAttributes);
152 void endElementNs(); 153 void endElementNs();
153 void characters(const xmlChar* chars, int length); 154 void characters(const xmlChar* chars, int length);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 }; 220 };
220 221
221 xmlDocPtr xmlDocPtrForString(Document*, 222 xmlDocPtr xmlDocPtrForString(Document*,
222 const String& source, 223 const String& source,
223 const String& url); 224 const String& url);
224 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); 225 HashMap<String, String> parseAttributes(const String&, bool& attrsOK);
225 226
226 } // namespace blink 227 } // namespace blink
227 228
228 #endif // XMLDocumentParser_h 229 #endif // XMLDocumentParser_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698