| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 } | 207 } |
| 208 | 208 |
| 209 void setForceQuirks() { | 209 void setForceQuirks() { |
| 210 ASSERT(m_type == DOCTYPE); | 210 ASSERT(m_type == DOCTYPE); |
| 211 m_doctypeData->m_forceQuirks = true; | 211 m_doctypeData->m_forceQuirks = true; |
| 212 } | 212 } |
| 213 | 213 |
| 214 void beginDOCTYPE() { | 214 void beginDOCTYPE() { |
| 215 ASSERT(m_type == Uninitialized); | 215 ASSERT(m_type == Uninitialized); |
| 216 m_type = DOCTYPE; | 216 m_type = DOCTYPE; |
| 217 m_doctypeData = wrapUnique(new DoctypeData); | 217 m_doctypeData = WTF::wrapUnique(new DoctypeData); |
| 218 } | 218 } |
| 219 | 219 |
| 220 void beginDOCTYPE(UChar character) { | 220 void beginDOCTYPE(UChar character) { |
| 221 ASSERT(character); | 221 ASSERT(character); |
| 222 beginDOCTYPE(); | 222 beginDOCTYPE(); |
| 223 m_data.append(character); | 223 m_data.append(character); |
| 224 m_orAllData |= character; | 224 m_orAllData |= character; |
| 225 } | 225 } |
| 226 | 226 |
| 227 // FIXME: Distinguish between a missing public identifer and an empty one. | 227 // FIXME: Distinguish between a missing public identifer and an empty one. |
| (...skipping 227 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 |