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

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

Issue 1267283002: Gracefully handle XMLDocumentParser being detached by mutation events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add clarifying comment Created 5 years, 4 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 | 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 private: 143 private:
144 void initializeParserContext(const CString& chunk = CString()); 144 void initializeParserContext(const CString& chunk = CString());
145 145
146 void pushCurrentNode(ContainerNode*); 146 void pushCurrentNode(ContainerNode*);
147 void popCurrentNode(); 147 void popCurrentNode();
148 void clearCurrentNodeStack(); 148 void clearCurrentNodeStack();
149 149
150 void insertErrorMessageBlock(); 150 void insertErrorMessageBlock();
151 151
152 void enterText(); 152 void createLeafTextNodeIfNeeded();
153 void exitText(); 153 bool updateLeafTextNode();
154 154
155 void doWrite(const String&); 155 void doWrite(const String&);
156 void doEnd(); 156 void doEnd();
157 157
158 bool m_hasView; 158 bool m_hasView;
159 159
160 SegmentedString m_originalSourceForTransform; 160 SegmentedString m_originalSourceForTransform;
161 161
162 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; } 162 xmlParserCtxtPtr context() const { return m_context ? m_context->context() : 0; }
163 RefPtr<XMLParserContext> m_context; 163 RefPtr<XMLParserContext> m_context;
(...skipping 28 matching lines...) Expand all
192 PrefixForNamespaceMap m_prefixToNamespaceMap; 192 PrefixForNamespaceMap m_prefixToNamespaceMap;
193 SegmentedString m_pendingSrc; 193 SegmentedString m_pendingSrc;
194 }; 194 };
195 195
196 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ; 196 xmlDocPtr xmlDocPtrForString(Document*, const String& source, const String& url) ;
197 HashMap<String, String> parseAttributes(const String&, bool& attrsOK); 197 HashMap<String, String> parseAttributes(const String&, bool& attrsOK);
198 198
199 } // namespace blink 199 } // namespace blink
200 200
201 #endif // XMLDocumentParser_h 201 #endif // XMLDocumentParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698