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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi on()); } 113 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi on()); }
114 114
115 protected: 115 protected:
116 void insert(const SegmentedString&) final; 116 void insert(const SegmentedString&) final;
117 void append(const String&) override; 117 void append(const String&) override;
118 void finish() final; 118 void finish() final;
119 119
120 HTMLDocumentParser(HTMLDocument&, bool reportErrors, ParserSynchronizationPo licy); 120 HTMLDocumentParser(HTMLDocument&, bool reportErrors, ParserSynchronizationPo licy);
121 HTMLDocumentParser(DocumentFragment*, Element* contextElement, ParserContent Policy); 121 HTMLDocumentParser(DocumentFragment*, Element* contextElement, ParserContent Policy);
122 122
123 HTMLTreeBuilder* treeBuilder() const; 123 HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); }
124 124
125 void forcePlaintextForTextDocument(); 125 void forcePlaintextForTextDocument();
126 126
127 private: 127 private:
128 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(DocumentFragment* f ragment, Element* contextElement, ParserContentPolicy parserContentPolicy) 128 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(DocumentFragment* f ragment, Element* contextElement, ParserContentPolicy parserContentPolicy)
129 { 129 {
130 return adoptRefWillBeNoop(new HTMLDocumentParser(fragment, contextElemen t, parserContentPolicy)); 130 return adoptRefWillBeNoop(new HTMLDocumentParser(fragment, contextElemen t, parserContentPolicy));
131 } 131 }
132 132
133 // DocumentParser 133 // DocumentParser
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool m_haveBackgroundParser; 209 bool m_haveBackgroundParser;
210 bool m_tasksWereSuspended; 210 bool m_tasksWereSuspended;
211 unsigned m_pumpSessionNestingLevel; 211 unsigned m_pumpSessionNestingLevel;
212 unsigned m_pumpSpeculationsSessionNestingLevel; 212 unsigned m_pumpSpeculationsSessionNestingLevel;
213 bool m_isParsingAtLineNumber; 213 bool m_isParsingAtLineNumber;
214 }; 214 };
215 215
216 } 216 }
217 217
218 #endif 218 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698