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

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

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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) 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptR unnerHost { 68 class HTMLDocumentParser : public ScriptableDocumentParser, private HTMLScriptR unnerHost {
69 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 69 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
70 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser); 70 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLDocumentParser);
71 public: 71 public:
72 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& docum ent, bool reportErrors, ParserSynchronizationPolicy backgroundParsingPolicy) 72 static PassRefPtrWillBeRawPtr<HTMLDocumentParser> create(HTMLDocument& docum ent, bool reportErrors, ParserSynchronizationPolicy backgroundParsingPolicy)
73 { 73 {
74 return adoptRefWillBeNoop(new HTMLDocumentParser(document, reportErrors, backgroundParsingPolicy)); 74 return adoptRefWillBeNoop(new HTMLDocumentParser(document, reportErrors, backgroundParsingPolicy));
75 } 75 }
76 virtual ~HTMLDocumentParser(); 76 virtual ~HTMLDocumentParser();
77 virtual void trace(Visitor*) override; 77 DECLARE_VIRTUAL_TRACE();
78 78
79 // Exposed for HTMLParserScheduler 79 // Exposed for HTMLParserScheduler
80 void resumeParsingAfterYield(); 80 void resumeParsingAfterYield();
81 81
82 static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent); 82 static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent);
83 83
84 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } 84 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
85 85
86 virtual TextPosition textPosition() const override final; 86 virtual TextPosition textPosition() const override final;
87 virtual bool isParsingAtLineNumber() const override final; 87 virtual bool isParsingAtLineNumber() const override final;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool m_haveBackgroundParser; 204 bool m_haveBackgroundParser;
205 bool m_tasksWereSuspended; 205 bool m_tasksWereSuspended;
206 unsigned m_pumpSessionNestingLevel; 206 unsigned m_pumpSessionNestingLevel;
207 unsigned m_pumpSpeculationsSessionNestingLevel; 207 unsigned m_pumpSpeculationsSessionNestingLevel;
208 bool m_isParsingAtLineNumber; 208 bool m_isParsingAtLineNumber;
209 }; 209 };
210 210
211 } 211 }
212 212
213 #endif 213 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLConstructionSite.cpp ('k') | Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698