| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // stack. | 43 // stack. |
| 44 // | 44 // |
| 45 // We remove characters from the "current" string in the InputStream. | 45 // We remove characters from the "current" string in the InputStream. |
| 46 // document.write() will add characters at the current insertion point, | 46 // document.write() will add characters at the current insertion point, |
| 47 // which appends them to the "current" string. | 47 // which appends them to the "current" string. |
| 48 // | 48 // |
| 49 // m_last is a pointer to the last of the afterInsertionPoint strings. | 49 // m_last is a pointer to the last of the afterInsertionPoint strings. |
| 50 // The network adds data at the end of the InputStream, which appends | 50 // The network adds data at the end of the InputStream, which appends |
| 51 // them to the "last" string. | 51 // them to the "last" string. |
| 52 class HTMLInputStream { | 52 class HTMLInputStream { |
| 53 DISALLOW_ALLOCATION(); | 53 DISALLOW_NEW(); |
| 54 WTF_MAKE_NONCOPYABLE(HTMLInputStream); | 54 WTF_MAKE_NONCOPYABLE(HTMLInputStream); |
| 55 public: | 55 public: |
| 56 HTMLInputStream() | 56 HTMLInputStream() |
| 57 : m_last(&m_first) | 57 : m_last(&m_first) |
| 58 { | 58 { |
| 59 } | 59 } |
| 60 | 60 |
| 61 void appendToEnd(const SegmentedString& string) | 61 void appendToEnd(const SegmentedString& string) |
| 62 { | 62 { |
| 63 m_last->append(string); | 63 m_last->append(string); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 private: | 153 private: |
| 154 HTMLInputStream* m_inputStream; | 154 HTMLInputStream* m_inputStream; |
| 155 SegmentedString m_next; | 155 SegmentedString m_next; |
| 156 OrdinalNumber m_line; | 156 OrdinalNumber m_line; |
| 157 OrdinalNumber m_column; | 157 OrdinalNumber m_column; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } | 160 } |
| 161 | 161 |
| 162 #endif | 162 #endif |
| OLD | NEW |