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

Unified Diff: Source/core/dom/shadow/ComposedTreeWalker.h

Issue 319083004: Oilpan: add Element/Node Member fields to stack allocated objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/editing/TextIterator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ComposedTreeWalker.h
diff --git a/Source/core/dom/shadow/ComposedTreeWalker.h b/Source/core/dom/shadow/ComposedTreeWalker.h
index 9d5ee99d0cf855f97688455ecb795a49db7e0652..81cb1567d9b83d4f1db3c0eb635a450d21d05b6a 100644
--- a/Source/core/dom/shadow/ComposedTreeWalker.h
+++ b/Source/core/dom/shadow/ComposedTreeWalker.h
@@ -39,6 +39,7 @@ class ShadowRoot;
// FIXME: Make some functions inline to optimise the performance.
// https://bugs.webkit.org/show_bug.cgi?id=82702
class ComposedTreeWalker {
+ STACK_ALLOCATED();
public:
typedef NodeRenderingTraversal::ParentDetails ParentTraversalDetails;
@@ -49,7 +50,7 @@ public:
ComposedTreeWalker(const Node*, StartPolicy = CannotStartFromShadowBoundary);
- Node* get() const { return const_cast<Node*>(m_node); }
+ Node* get() const { return const_cast<Node*>(m_node.get()); }
void firstChild();
void lastChild();
@@ -109,7 +110,7 @@ private:
Node* traverseParentOrHost(const Node*) const;
- const Node* m_node;
+ RawPtrWillBeMember<const Node> m_node;
};
inline ComposedTreeWalker::ComposedTreeWalker(const Node* node, StartPolicy startPolicy)
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/editing/TextIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698