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

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

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 UserActionElementSet(); 52 UserActionElementSet();
53 ~UserActionElementSet(); 53 ~UserActionElementSet();
54 54
55 void didDetach(Node*); 55 void didDetach(Node*);
56 56
57 #if !ENABLE(OILPAN) 57 #if !ENABLE(OILPAN)
58 void documentDidRemoveLastRef(); 58 void documentDidRemoveLastRef();
59 #endif 59 #endif
60 60
61 void trace(Visitor*); 61 DECLARE_TRACE();
62 62
63 private: 63 private:
64 enum ElementFlags { 64 enum ElementFlags {
65 IsActiveFlag = 1 , 65 IsActiveFlag = 1 ,
66 InActiveChainFlag = 1 << 1, 66 InActiveChainFlag = 1 << 1,
67 IsHoveredFlag = 1 << 2, 67 IsHoveredFlag = 1 << 2,
68 IsFocusedFlag = 1 << 3 68 IsFocusedFlag = 1 << 3
69 }; 69 };
70 70
71 void setFlags(Node* node, bool enable, unsigned flags) { enable ? setFlags(n ode, flags) : clearFlags(node, flags); } 71 void setFlags(Node* node, bool enable, unsigned flags) { enable ? setFlags(n ode, flags) : clearFlags(node, flags); }
72 void setFlags(Node*, unsigned); 72 void setFlags(Node*, unsigned);
73 void clearFlags(Node*, unsigned); 73 void clearFlags(Node*, unsigned);
74 bool hasFlags(const Node*, unsigned flags) const; 74 bool hasFlags(const Node*, unsigned flags) const;
75 75
76 void setFlags(Element*, unsigned); 76 void setFlags(Element*, unsigned);
77 void clearFlags(Element*, unsigned); 77 void clearFlags(Element*, unsigned);
78 bool hasFlags(const Element*, unsigned flags) const; 78 bool hasFlags(const Element*, unsigned flags) const;
79 79
80 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, unsigned> ElementFlag Map; 80 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, unsigned> ElementFlag Map;
81 ElementFlagMap m_elements; 81 ElementFlagMap m_elements;
82 }; 82 };
83 83
84 } // namespace 84 } // namespace
85 85
86 #endif // UserActionElementSet_h 86 #endif // UserActionElementSet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698