| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ | 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ |
| 4 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 4 * Copyright (C) 2013 Google, Inc. All Rights Reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef InputStreamPreprocessor_h | 28 #ifndef InputStreamPreprocessor_h |
| 29 #define InputStreamPreprocessor_h | 29 #define InputStreamPreprocessor_h |
| 30 | 30 |
| 31 #include "platform/text/SegmentedString.h" | 31 #include "sky/engine/platform/text/SegmentedString.h" |
| 32 #include "wtf/Noncopyable.h" | 32 #include "sky/engine/wtf/Noncopyable.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 const LChar kEndOfFileMarker = 0; | 36 const LChar kEndOfFileMarker = 0; |
| 37 | 37 |
| 38 // http://www.whatwg.org/specs/web-apps/current-work/#preprocessing-the-input-st
ream | 38 // http://www.whatwg.org/specs/web-apps/current-work/#preprocessing-the-input-st
ream |
| 39 template <typename Tokenizer> | 39 template <typename Tokenizer> |
| 40 class InputStreamPreprocessor { | 40 class InputStreamPreprocessor { |
| 41 WTF_MAKE_NONCOPYABLE(InputStreamPreprocessor); | 41 WTF_MAKE_NONCOPYABLE(InputStreamPreprocessor); |
| 42 public: | 42 public: |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // http://www.whatwg.org/specs/web-apps/current-work/#next-input-character | 114 // http://www.whatwg.org/specs/web-apps/current-work/#next-input-character |
| 115 UChar m_nextInputCharacter; | 115 UChar m_nextInputCharacter; |
| 116 bool m_skipNextNewLine; | 116 bool m_skipNextNewLine; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } | 119 } |
| 120 | 120 |
| 121 #endif // InputStreamPreprocessor_h | 121 #endif // InputStreamPreprocessor_h |
| 122 | 122 |
| OLD | NEW |