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

Side by Side Diff: sky/engine/core/html/parser/HTMLDocumentParser.h

Issue 673963002: Remove unused code from the Sky parser system (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 | « sky/engine/core/html/parser/BackgroundHTMLParser.cpp ('k') | no next file » | 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) 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent); 76 static void parseDocumentFragment(const String&, DocumentFragment*, Element* contextElement, ParserContentPolicy = AllowScriptingContent);
77 77
78 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); } 78 HTMLTokenizer* tokenizer() const { return m_tokenizer.get(); }
79 79
80 virtual TextPosition textPosition() const OVERRIDE FINAL; 80 virtual TextPosition textPosition() const OVERRIDE FINAL;
81 virtual OrdinalNumber lineNumber() const OVERRIDE FINAL; 81 virtual OrdinalNumber lineNumber() const OVERRIDE FINAL;
82 82
83 struct ParsedChunk { 83 struct ParsedChunk {
84 OwnPtr<CompactHTMLTokenStream> tokens; 84 OwnPtr<CompactHTMLTokenStream> tokens;
85 HTMLTokenizer::State tokenizerState;
86 }; 85 };
87 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>); 86 void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
88 87
89 virtual void appendBytes(const char* bytes, size_t length) OVERRIDE; 88 virtual void appendBytes(const char* bytes, size_t length) OVERRIDE;
90 virtual void flush() OVERRIDE FINAL; 89 virtual void flush() OVERRIDE FINAL;
91 90
92 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi on()); } 91 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi on()); }
93 92
94 protected: 93 protected:
95 virtual void insert(const SegmentedString&) OVERRIDE FINAL; 94 virtual void insert(const SegmentedString&) OVERRIDE FINAL;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 170
172 bool m_isFragment; 171 bool m_isFragment;
173 bool m_endWasDelayed; 172 bool m_endWasDelayed;
174 bool m_haveBackgroundParser; 173 bool m_haveBackgroundParser;
175 unsigned m_pumpSessionNestingLevel; 174 unsigned m_pumpSessionNestingLevel;
176 }; 175 };
177 176
178 } 177 }
179 178
180 #endif 179 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/html/parser/BackgroundHTMLParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698