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

Unified Diff: Source/core/dom/PositionIterator.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 | « no previous file | Source/core/dom/PositionIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/PositionIterator.h
diff --git a/Source/core/dom/PositionIterator.h b/Source/core/dom/PositionIterator.h
index 4d81cd1de3364324a16c8d394d4d80299265a071..b3bcba0a0d0c4d79f04dea119403d39fe2d5ff37 100644
--- a/Source/core/dom/PositionIterator.h
+++ b/Source/core/dom/PositionIterator.h
@@ -35,10 +35,11 @@ namespace WebCore {
// increment, decrement, and several predicates on the Position it is at.
// Conversion to/from Position is O(n) in the offset.
class PositionIterator {
+ STACK_ALLOCATED();
public:
PositionIterator()
- : m_anchorNode(0)
- , m_nodeAfterPositionInAnchor(0)
+ : m_anchorNode(nullptr)
+ , m_nodeAfterPositionInAnchor(nullptr)
, m_offsetInAnchor(0)
{
}
@@ -64,8 +65,8 @@ public:
bool isCandidate() const;
private:
- Node* m_anchorNode;
- Node* m_nodeAfterPositionInAnchor; // If this is non-null, m_nodeAfterPositionInAnchor->parentNode() == m_anchorNode;
+ RawPtrWillBeMember<Node> m_anchorNode;
+ RawPtrWillBeMember<Node> m_nodeAfterPositionInAnchor; // If this is non-null, m_nodeAfterPositionInAnchor->parentNode() == m_anchorNode;
int m_offsetInAnchor;
};
« no previous file with comments | « no previous file | Source/core/dom/PositionIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698