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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.cpp

Issue 1392863002: Fix HTMLToken::Attribute::value handling in AtomicHTMLToken (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fix. Created 5 years, 2 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "core/html/parser/AtomicHTMLToken.h"
7
8 namespace blink {
9
10 QualifiedName AtomicHTMLToken::nameForAttribute(const HTMLToken::Attribute& attr ibute) const
11 {
12 return QualifiedName(nullAtom, AtomicString(attribute.name), nullAtom);
13 }
14
15 bool AtomicHTMLToken::usesName() const
16 {
17 return m_type == HTMLToken::StartTag || m_type == HTMLToken::EndTag || m_typ e == HTMLToken::DOCTYPE;
18 }
19
20 bool AtomicHTMLToken::usesAttributes() const
21 {
22 return m_type == HTMLToken::StartTag || m_type == HTMLToken::EndTag;
23 }
24
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698