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

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

Issue 798963002: Only populate line number in case parsing synchronously. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | Annotate | Revision Log
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. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 explicit XMLDocumentParser(Document&, FrameView* = 0); 106 explicit XMLDocumentParser(Document&, FrameView* = 0);
107 XMLDocumentParser(DocumentFragment*, Element*, ParserContentPolicy); 107 XMLDocumentParser(DocumentFragment*, Element*, ParserContentPolicy);
108 108
109 // From DocumentParser 109 // From DocumentParser
110 virtual void insert(const SegmentedString&) override; 110 virtual void insert(const SegmentedString&) override;
111 virtual void append(PassRefPtr<StringImpl>) override; 111 virtual void append(PassRefPtr<StringImpl>) override;
112 virtual void finish() override; 112 virtual void finish() override;
113 virtual bool isWaitingForScripts() const override; 113 virtual bool isWaitingForScripts() const override;
114 virtual void stopParsing() override; 114 virtual void stopParsing() override;
115 virtual void detach() override; 115 virtual void detach() override;
116 virtual bool hasLineNumber() const override;
116 virtual OrdinalNumber lineNumber() const override; 117 virtual OrdinalNumber lineNumber() const override;
117 OrdinalNumber columnNumber() const; 118 OrdinalNumber columnNumber() const;
118 119
119 // from ResourceClient 120 // from ResourceClient
120 virtual void notifyFinished(Resource*) override; 121 virtual void notifyFinished(Resource*) override;
121 122
122 void end(); 123 void end();
123 124
124 void pauseParsing(); 125 void pauseParsing();
125 void resumeParsing(); 126 void resumeParsing();
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 PrefixForNamespaceMap m_prefixToNamespaceMap; 193 PrefixForNamespaceMap m_prefixToNamespaceMap;
193 SegmentedString m_pendingSrc; 194 SegmentedString m_pendingSrc;
194 }; 195 };
195 196
196 xmlDocPtr xmlDocPtrForString(ResourceFetcher*, const String& source, const Strin g& url); 197 xmlDocPtr xmlDocPtrForString(ResourceFetcher*, const String& source, const Strin g& url);
197 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); 198 HashMap<String, String> parseAttributes(const String&, bool& attrsOK);
198 199
199 } // namespace blink 200 } // namespace blink
200 201
201 #endif // XMLDocumentParser_h 202 #endif // XMLDocumentParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698