| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 void appendToSystemIdentifier(UChar character) | 249 void appendToSystemIdentifier(UChar character) |
| 250 { | 250 { |
| 251 ASSERT(character); | 251 ASSERT(character); |
| 252 ASSERT(m_type == DOCTYPE); | 252 ASSERT(m_type == DOCTYPE); |
| 253 ASSERT(m_doctypeData->m_hasSystemIdentifier); | 253 ASSERT(m_doctypeData->m_hasSystemIdentifier); |
| 254 m_doctypeData->m_systemIdentifier.append(character); | 254 m_doctypeData->m_systemIdentifier.append(character); |
| 255 } | 255 } |
| 256 | 256 |
| 257 PassOwnPtr<DoctypeData> releaseDoctypeData() | 257 PassOwnPtr<DoctypeData> releaseDoctypeData() |
| 258 { | 258 { |
| 259 return m_doctypeData.release(); | 259 return std::move(m_doctypeData); |
| 260 } | 260 } |
| 261 | 261 |
| 262 /* Start/End Tag Tokens */ | 262 /* Start/End Tag Tokens */ |
| 263 | 263 |
| 264 bool selfClosing() const | 264 bool selfClosing() const |
| 265 { | 265 { |
| 266 ASSERT(m_type == StartTag || m_type == EndTag); | 266 ASSERT(m_type == StartTag || m_type == EndTag); |
| 267 return m_selfClosing; | 267 return m_selfClosing; |
| 268 } | 268 } |
| 269 | 269 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // A pointer into m_attributes used during lexing. | 471 // A pointer into m_attributes used during lexing. |
| 472 Attribute* m_currentAttribute; | 472 Attribute* m_currentAttribute; |
| 473 | 473 |
| 474 // For DOCTYPE | 474 // For DOCTYPE |
| 475 OwnPtr<DoctypeData> m_doctypeData; | 475 OwnPtr<DoctypeData> m_doctypeData; |
| 476 }; | 476 }; |
| 477 | 477 |
| 478 } // namespace blink | 478 } // namespace blink |
| 479 | 479 |
| 480 #endif | 480 #endif |
| OLD | NEW |