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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 explicit AtomicHTMLToken(const CompactHTMLToken& token) 135 explicit AtomicHTMLToken(const CompactHTMLToken& token)
136 : m_type(token.type()) { 136 : m_type(token.type()) {
137 switch (m_type) { 137 switch (m_type) {
138 case HTMLToken::Uninitialized: 138 case HTMLToken::Uninitialized:
139 ASSERT_NOT_REACHED(); 139 ASSERT_NOT_REACHED();
140 break; 140 break;
141 case HTMLToken::DOCTYPE: 141 case HTMLToken::DOCTYPE:
142 m_name = AtomicString(token.data()); 142 m_name = AtomicString(token.data());
143 m_doctypeData = makeUnique<DoctypeData>(); 143 m_doctypeData = WTF::makeUnique<DoctypeData>();
144 m_doctypeData->m_hasPublicIdentifier = true; 144 m_doctypeData->m_hasPublicIdentifier = true;
145 token.publicIdentifier().appendTo(m_doctypeData->m_publicIdentifier); 145 token.publicIdentifier().appendTo(m_doctypeData->m_publicIdentifier);
146 m_doctypeData->m_hasSystemIdentifier = true; 146 m_doctypeData->m_hasSystemIdentifier = true;
147 token.systemIdentifier().appendTo(m_doctypeData->m_systemIdentifier); 147 token.systemIdentifier().appendTo(m_doctypeData->m_systemIdentifier);
148 m_doctypeData->m_forceQuirks = token.doctypeForcesQuirks(); 148 m_doctypeData->m_forceQuirks = token.doctypeForcesQuirks();
149 break; 149 break;
150 case HTMLToken::EndOfFile: 150 case HTMLToken::EndOfFile:
151 break; 151 break;
152 case HTMLToken::StartTag: 152 case HTMLToken::StartTag:
153 m_attributes.reserveInitialCapacity(token.attributes().size()); 153 m_attributes.reserveInitialCapacity(token.attributes().size());
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const QualifiedName& name = nameForAttribute(attribute); 233 const QualifiedName& name = nameForAttribute(attribute);
234 // FIXME: This is N^2 for the number of attributes. 234 // FIXME: This is N^2 for the number of attributes.
235 if (!findAttributeInVector(m_attributes, name)) 235 if (!findAttributeInVector(m_attributes, name))
236 m_attributes.append(Attribute(name, value)); 236 m_attributes.append(Attribute(name, value));
237 } 237 }
238 } 238 }
239 239
240 } // namespace blink 240 } // namespace blink
241 241
242 #endif 242 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698