| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 m_selfClosing = false; | 306 m_selfClosing = false; |
| 307 m_currentAttribute = 0; | 307 m_currentAttribute = 0; |
| 308 m_attributes.clear(); | 308 m_attributes.clear(); |
| 309 | 309 |
| 310 m_data.appendVector(characters); | 310 m_data.appendVector(characters); |
| 311 } | 311 } |
| 312 | 312 |
| 313 void addNewAttribute() { | 313 void addNewAttribute() { |
| 314 ASSERT(m_type == StartTag || m_type == EndTag); | 314 ASSERT(m_type == StartTag || m_type == EndTag); |
| 315 m_attributes.grow(m_attributes.size() + 1); | 315 m_attributes.grow(m_attributes.size() + 1); |
| 316 m_currentAttribute = &m_attributes.last(); | 316 m_currentAttribute = &m_attributes.back(); |
| 317 m_currentAttribute->mutableNameRange().clear(); | 317 m_currentAttribute->mutableNameRange().clear(); |
| 318 m_currentAttribute->mutableValueRange().clear(); | 318 m_currentAttribute->mutableValueRange().clear(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 void beginAttributeName(int offset) { | 321 void beginAttributeName(int offset) { |
| 322 m_currentAttribute->mutableNameRange().start = offset - m_baseOffset; | 322 m_currentAttribute->mutableNameRange().start = offset - m_baseOffset; |
| 323 m_currentAttribute->nameRange().checkValidStart(); | 323 m_currentAttribute->nameRange().checkValidStart(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 void endAttributeName(int offset) { | 326 void endAttributeName(int offset) { |
| (...skipping 128 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 |