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

Side by Side Diff: Source/core/dom/NodeRareData.h

Issue 347643002: Reduce forward declarations in core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 6 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) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 20 matching lines...) Expand all
31 #include "core/page/Page.h" 31 #include "core/page/Page.h"
32 #include "platform/heap/Handle.h" 32 #include "platform/heap/Handle.h"
33 #include "wtf/HashSet.h" 33 #include "wtf/HashSet.h"
34 #include "wtf/OwnPtr.h" 34 #include "wtf/OwnPtr.h"
35 #include "wtf/PassOwnPtr.h" 35 #include "wtf/PassOwnPtr.h"
36 #include "wtf/text/AtomicString.h" 36 #include "wtf/text/AtomicString.h"
37 #include "wtf/text/StringHash.h" 37 #include "wtf/text/StringHash.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class LabelsNodeList;
42 class RadioNodeList;
43 class TreeScope;
44
45 class NodeListsNodeData FINAL : public NoBaseWillBeGarbageCollectedFinalized<Nod eListsNodeData> { 41 class NodeListsNodeData FINAL : public NoBaseWillBeGarbageCollectedFinalized<Nod eListsNodeData> {
46 WTF_MAKE_NONCOPYABLE(NodeListsNodeData); 42 WTF_MAKE_NONCOPYABLE(NodeListsNodeData);
47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
48 public: 44 public:
49 void clearChildNodeListCache() 45 void clearChildNodeListCache()
50 { 46 {
51 if (m_childNodeList && m_childNodeList->isChildNodeList()) 47 if (m_childNodeList && m_childNodeList->isChildNodeList())
52 toChildNodeList(m_childNodeList)->invalidateCache(); 48 toChildNodeList(m_childNodeList)->invalidateCache();
53 } 49 }
54 50
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if ((m_childNodeList ? 1 : 0) + m_atomicNameCaches.size() + m_tagCollectionC acheNS.size() != 1) 335 if ((m_childNodeList ? 1 : 0) + m_atomicNameCaches.size() + m_tagCollectionC acheNS.size() != 1)
340 return false; 336 return false;
341 ownerNode.clearNodeLists(); 337 ownerNode.clearNodeLists();
342 return true; 338 return true;
343 } 339 }
344 #endif 340 #endif
345 341
346 } // namespace WebCore 342 } // namespace WebCore
347 343
348 #endif // NodeRareData_h 344 #endif // NodeRareData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698