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

Side by Side Diff: Source/core/events/TreeScopeEventContext.h

Issue 465483002: Merge NamedNodesCollection and StaticNodeList classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/StaticNodeList.cpp ('k') | Source/core/html/HTMLAllCollection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All Rights Reserved. 2 * Copyright (C) 2014 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 21 matching lines...) Expand all
32 #include "core/events/EventTarget.h" 32 #include "core/events/EventTarget.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class EventPath; 39 class EventPath;
40 class EventTarget; 40 class EventTarget;
41 class Node; 41 class Node;
42 class StaticNodeList; 42 template <typename NodeType> class StaticNodeTypeList;
43 typedef StaticNodeTypeList<Node> StaticNodeList;
43 class TouchEventContext; 44 class TouchEventContext;
44 class TreeScope; 45 class TreeScope;
45 46
46 class TreeScopeEventContext FINAL : public RefCountedWillBeGarbageCollected<Tree ScopeEventContext> { 47 class TreeScopeEventContext FINAL : public RefCountedWillBeGarbageCollected<Tree ScopeEventContext> {
47 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext); 48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(TreeScopeEventContext);
48 public: 49 public:
49 static PassRefPtrWillBeRawPtr<TreeScopeEventContext> create(TreeScope&); 50 static PassRefPtrWillBeRawPtr<TreeScopeEventContext> create(TreeScope&);
50 void trace(Visitor*); 51 void trace(Visitor*);
51 52
52 TreeScope& treeScope() const { return *m_treeScope; } 53 TreeScope& treeScope() const { return *m_treeScope; }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 112
112 inline bool TreeScopeEventContext::isInclusiveAncestorOf(const TreeScopeEventCon text& other) 113 inline bool TreeScopeEventContext::isInclusiveAncestorOf(const TreeScopeEventCon text& other)
113 { 114 {
114 ASSERT(m_preOrder != -1 && m_postOrder != -1 && other.m_preOrder != -1 && ot her.m_postOrder != -1); 115 ASSERT(m_preOrder != -1 && m_postOrder != -1 && other.m_preOrder != -1 && ot her.m_postOrder != -1);
115 return m_preOrder <= other.m_preOrder && other.m_postOrder <= m_postOrder; 116 return m_preOrder <= other.m_preOrder && other.m_postOrder <= m_postOrder;
116 } 117 }
117 118
118 } 119 }
119 120
120 #endif // TreeScopeEventContext_h 121 #endif // TreeScopeEventContext_h
OLDNEW
« no previous file with comments | « Source/core/dom/StaticNodeList.cpp ('k') | Source/core/html/HTMLAllCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698