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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698