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

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

Issue 1882003002: include RefCounted.h where needed, only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 8 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef AtomicHTMLToken_h 26 #ifndef AtomicHTMLToken_h
27 #define AtomicHTMLToken_h 27 #define AtomicHTMLToken_h
28 28
29 #include "core/HTMLElementLookupTrie.h" 29 #include "core/HTMLElementLookupTrie.h"
30 #include "core/dom/Attribute.h" 30 #include "core/dom/Attribute.h"
31 #include "core/html/parser/CompactHTMLToken.h" 31 #include "core/html/parser/CompactHTMLToken.h"
32 #include "core/html/parser/HTMLToken.h" 32 #include "core/html/parser/HTMLToken.h"
33 #include "wtf/Allocator.h" 33 #include "wtf/Allocator.h"
34 #include "wtf/RefCounted.h"
35 #include "wtf/RefPtr.h"
36 34
37 namespace blink { 35 namespace blink {
38 36
39 class CORE_EXPORT AtomicHTMLToken { 37 class CORE_EXPORT AtomicHTMLToken {
40 STACK_ALLOCATED(); 38 STACK_ALLOCATED();
41 WTF_MAKE_NONCOPYABLE(AtomicHTMLToken); 39 WTF_MAKE_NONCOPYABLE(AtomicHTMLToken);
42 public: 40 public:
43 41
44 bool forceQuirks() const 42 bool forceQuirks() const
45 { 43 {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const QualifiedName& name = nameForAttribute(attribute); 242 const QualifiedName& name = nameForAttribute(attribute);
245 // FIXME: This is N^2 for the number of attributes. 243 // FIXME: This is N^2 for the number of attributes.
246 if (!findAttributeInVector(m_attributes, name)) 244 if (!findAttributeInVector(m_attributes, name))
247 m_attributes.append(Attribute(name, value)); 245 m_attributes.append(Attribute(name, value));
248 } 246 }
249 } 247 }
250 248
251 } // namespace blink 249 } // namespace blink
252 250
253 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698