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

Side by Side Diff: Source/core/dom/shadow/InsertionPoint.h

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/TagCollection.cpp ('k') | Source/core/dom/shadow/InsertionPoint.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) 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 bool hasDistribution() const { return !m_distribution.isEmpty(); } 46 bool hasDistribution() const { return !m_distribution.isEmpty(); }
47 void setDistribution(ContentDistribution&); 47 void setDistribution(ContentDistribution&);
48 void clearDistribution() { m_distribution.clear(); } 48 void clearDistribution() { m_distribution.clear(); }
49 bool isActive() const; 49 bool isActive() const;
50 bool canBeActive() const; 50 bool canBeActive() const;
51 51
52 bool isShadowInsertionPoint() const; 52 bool isShadowInsertionPoint() const;
53 bool isContentInsertionPoint() const; 53 bool isContentInsertionPoint() const;
54 54
55 PassRefPtr<NodeList> getDistributedNodes(); 55 PassRefPtrWillBeRawPtr<NodeList> getDistributedNodes();
56 56
57 virtual bool canAffectSelector() const { return false; } 57 virtual bool canAffectSelector() const { return false; }
58 58
59 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 59 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
60 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 60 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
61 61
62 bool shouldUseFallbackElements() const; 62 bool shouldUseFallbackElements() const;
63 63
64 size_t size() const { return m_distribution.size(); } 64 size_t size() const { return m_distribution.size(); }
65 Node* at(size_t index) const { return m_distribution.at(index).get(); } 65 Node* at(size_t index) const { return m_distribution.at(index).get(); }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return 0; 111 return 0;
112 } 112 }
113 113
114 const InsertionPoint* resolveReprojection(const Node*); 114 const InsertionPoint* resolveReprojection(const Node*);
115 115
116 void collectDestinationInsertionPoints(const Node&, WillBeHeapVector<RawPtrWillB eMember<InsertionPoint>, 8>& results); 116 void collectDestinationInsertionPoints(const Node&, WillBeHeapVector<RawPtrWillB eMember<InsertionPoint>, 8>& results);
117 117
118 } // namespace WebCore 118 } // namespace WebCore
119 119
120 #endif // InsertionPoint_h 120 #endif // InsertionPoint_h
OLDNEW
« no previous file with comments | « Source/core/dom/TagCollection.cpp ('k') | Source/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698