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

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

Issue 1173283002: Move some Element specific code from Node::detach to Element::detach. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/UserActionElementSet.h ('k') | no next file » | 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) 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 22 matching lines...) Expand all
33 namespace blink { 33 namespace blink {
34 34
35 UserActionElementSet::UserActionElementSet() 35 UserActionElementSet::UserActionElementSet()
36 { 36 {
37 } 37 }
38 38
39 UserActionElementSet::~UserActionElementSet() 39 UserActionElementSet::~UserActionElementSet()
40 { 40 {
41 } 41 }
42 42
43 void UserActionElementSet::didDetach(Node* node) 43 void UserActionElementSet::didDetach(Element& element)
44 { 44 {
45 ASSERT(node->isUserActionElement()); 45 ASSERT(element.isUserActionElement());
46 clearFlags(toElement(node), IsActiveFlag | InActiveChainFlag | IsHoveredFlag ); 46 clearFlags(&element, IsActiveFlag | InActiveChainFlag | IsHoveredFlag);
47 } 47 }
48 48
49 #if !ENABLE(OILPAN) 49 #if !ENABLE(OILPAN)
50 void UserActionElementSet::documentDidRemoveLastRef() 50 void UserActionElementSet::documentDidRemoveLastRef()
51 { 51 {
52 m_elements.clear(); 52 m_elements.clear();
53 } 53 }
54 #endif 54 #endif
55 55
56 bool UserActionElementSet::hasFlags(const Node* node, unsigned flags) const 56 bool UserActionElementSet::hasFlags(const Node* node, unsigned flags) const
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 120
121 DEFINE_TRACE(UserActionElementSet) 121 DEFINE_TRACE(UserActionElementSet)
122 { 122 {
123 #if ENABLE(OILPAN) 123 #if ENABLE(OILPAN)
124 visitor->trace(m_elements); 124 visitor->trace(m_elements);
125 #endif 125 #endif
126 } 126 }
127 127
128 } 128 }
OLDNEW
« no previous file with comments | « Source/core/dom/UserActionElementSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698