| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 79 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 80 | 80 |
| 81 public: | 81 public: |
| 82 class Range { | 82 class Range { |
| 83 DISALLOW_NEW(); | 83 DISALLOW_NEW(); |
| 84 | 84 |
| 85 public: | 85 public: |
| 86 static constexpr int kInvalidOffset = -1; | 86 static constexpr int kInvalidOffset = -1; |
| 87 | 87 |
| 88 inline void clear() { | 88 inline void clear() { |
| 89 #if ENABLE(ASSERT) | 89 #if DCHECK_IS_ON() |
| 90 start = kInvalidOffset; | 90 start = kInvalidOffset; |
| 91 end = kInvalidOffset; | 91 end = kInvalidOffset; |
| 92 #endif | 92 #endif |
| 93 } | 93 } |
| 94 | 94 |
| 95 // Check Range instance that is actively being parsed. | 95 // Check Range instance that is actively being parsed. |
| 96 inline void checkValidStart() const { | 96 inline void checkValidStart() const { |
| 97 DCHECK_NE(start, kInvalidOffset); | 97 DCHECK_NE(start, kInvalidOffset); |
| 98 DCHECK_GE(start, 0); | 98 DCHECK_GE(start, 0); |
| 99 } | 99 } |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 std::unique_ptr<DoctypeData> m_doctypeData; | 455 std::unique_ptr<DoctypeData> m_doctypeData; |
| 456 }; | 456 }; |
| 457 | 457 |
| 458 #ifndef NDEBUG | 458 #ifndef NDEBUG |
| 459 const char* toString(HTMLToken::TokenType); | 459 const char* toString(HTMLToken::TokenType); |
| 460 #endif | 460 #endif |
| 461 | 461 |
| 462 } // namespace blink | 462 } // namespace blink |
| 463 | 463 |
| 464 #endif | 464 #endif |
| OLD | NEW |