| OLD | NEW |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&)
; | 104 void didReceiveEncodingDataFromBackgroundParser(const DocumentEncodingData&)
; |
| 105 | 105 |
| 106 virtual void appendBytes(const char* bytes, size_t length) override; | 106 virtual void appendBytes(const char* bytes, size_t length) override; |
| 107 virtual void flush() override final; | 107 virtual void flush() override final; |
| 108 virtual void setDecoder(PassOwnPtr<TextResourceDecoder>) override final; | 108 virtual void setDecoder(PassOwnPtr<TextResourceDecoder>) override final; |
| 109 | 109 |
| 110 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi
on()); } | 110 UseCounter* useCounter() { return UseCounter::getFrom(contextForParsingSessi
on()); } |
| 111 | 111 |
| 112 protected: | 112 protected: |
| 113 virtual void insert(const SegmentedString&) override final; | 113 virtual void insert(const SegmentedString&) override final; |
| 114 virtual void append(PassRefPtr<StringImpl>) override; | 114 virtual void append(const String&) override; |
| 115 virtual void finish() override final; | 115 virtual void finish() override final; |
| 116 | 116 |
| 117 HTMLDocumentParser(HTMLDocument&, bool reportErrors, ParserSynchronizationPo
licy); | 117 HTMLDocumentParser(HTMLDocument&, bool reportErrors, ParserSynchronizationPo
licy); |
| 118 HTMLDocumentParser(DocumentFragment*, Element* contextElement, ParserContent
Policy); | 118 HTMLDocumentParser(DocumentFragment*, Element* contextElement, ParserContent
Policy); |
| 119 | 119 |
| 120 HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); } | 120 HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); } |
| 121 | 121 |
| 122 void forcePlaintextForTextDocument(); | 122 void forcePlaintextForTextDocument(); |
| 123 | 123 |
| 124 private: | 124 private: |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 bool m_haveBackgroundParser; | 203 bool m_haveBackgroundParser; |
| 204 bool m_tasksWereSuspended; | 204 bool m_tasksWereSuspended; |
| 205 unsigned m_pumpSessionNestingLevel; | 205 unsigned m_pumpSessionNestingLevel; |
| 206 unsigned m_pumpSpeculationsSessionNestingLevel; | 206 unsigned m_pumpSpeculationsSessionNestingLevel; |
| 207 bool m_isParsingAtLineNumber; | 207 bool m_isParsingAtLineNumber; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } | 210 } |
| 211 | 211 |
| 212 #endif | 212 #endif |
| OLD | NEW |