| 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 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef HTMLInputStream_h | 26 #ifndef HTMLInputStream_h |
| 27 #define HTMLInputStream_h | 27 #define HTMLInputStream_h |
| 28 | 28 |
| 29 #include "core/html/parser/InputStreamPreprocessor.h" | 29 #include "core/html/parser/InputStreamPreprocessor.h" |
| 30 #include "platform/text/SegmentedString.h" | 30 #include "platform/text/SegmentedString.h" |
| 31 #include "wtf/Allocator.h" | 31 #include "platform/wtf/Allocator.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 // The InputStream is made up of a sequence of SegmentedStrings: | 35 // The InputStream is made up of a sequence of SegmentedStrings: |
| 36 // | 36 // |
| 37 // [--current--][--next--][--next--] ... [--next--] | 37 // [--current--][--next--][--next--] ... [--next--] |
| 38 // /\ (also called m_last) | 38 // /\ (also called m_last) |
| 39 // L_ current insertion point | 39 // L_ current insertion point |
| 40 // | 40 // |
| 41 // The current segmented string is stored in InputStream. Each of the | 41 // The current segmented string is stored in InputStream. Each of the |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 private: | 137 private: |
| 138 HTMLInputStream* input_stream_; | 138 HTMLInputStream* input_stream_; |
| 139 SegmentedString next_; | 139 SegmentedString next_; |
| 140 OrdinalNumber line_; | 140 OrdinalNumber line_; |
| 141 OrdinalNumber column_; | 141 OrdinalNumber column_; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| 145 | 145 |
| 146 #endif // HTMLInputStream_h | 146 #endif // HTMLInputStream_h |
| OLD | NEW |