Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLToken.h

Issue 1983753002: Remove OwnPtr::release() calls in core/ (part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698