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

Unified Diff: Source/core/dom/RangeBoundaryPoint.h

Issue 313813002: Oilpan: Replace RefPtrs to Node and its subclasses in core/dom/ with Oilpan transtion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
Index: Source/core/dom/RangeBoundaryPoint.h
diff --git a/Source/core/dom/RangeBoundaryPoint.h b/Source/core/dom/RangeBoundaryPoint.h
index 4486cda6c7dc1a5cfc9158c2da8cbab7a3efd5b4..4df553bbff08db85db3dd22576126670aee125ef 100644
--- a/Source/core/dom/RangeBoundaryPoint.h
+++ b/Source/core/dom/RangeBoundaryPoint.h
@@ -34,7 +34,7 @@ namespace WebCore {
class RangeBoundaryPoint {
DISALLOW_ALLOCATION();
public:
- explicit RangeBoundaryPoint(PassRefPtr<Node> container);
+ explicit RangeBoundaryPoint(PassRefPtrWillBeRawPtr<Node> container);
explicit RangeBoundaryPoint(const RangeBoundaryPoint&);
@@ -46,7 +46,7 @@ public:
void clear();
- void set(PassRefPtr<Node> container, int offset, Node* childBefore);
+ void set(PassRefPtrWillBeRawPtr<Node> container, int offset, Node* childBefore);
void setOffset(int offset);
void setToBeforeChild(Node&);
@@ -67,7 +67,7 @@ private:
RefPtrWillBeMember<Node> m_childBeforeBoundary;
};
-inline RangeBoundaryPoint::RangeBoundaryPoint(PassRefPtr<Node> container)
+inline RangeBoundaryPoint::RangeBoundaryPoint(PassRefPtrWillBeRawPtr<Node> container)
: m_containerNode(container)
, m_offsetInContainer(0)
, m_childBeforeBoundary(nullptr)
@@ -120,7 +120,7 @@ inline void RangeBoundaryPoint::clear()
m_childBeforeBoundary = nullptr;
}
-inline void RangeBoundaryPoint::set(PassRefPtr<Node> container, int offset, Node* childBefore)
+inline void RangeBoundaryPoint::set(PassRefPtrWillBeRawPtr<Node> container, int offset, Node* childBefore)
{
ASSERT(container);
ASSERT(offset >= 0);
@@ -149,14 +149,14 @@ inline void RangeBoundaryPoint::setToBeforeChild(Node& child)
inline void RangeBoundaryPoint::setToStartOfNode(Node& container)
{
- m_containerNode = PassRefPtr<Node>(container);
+ m_containerNode = &container;
m_offsetInContainer = 0;
m_childBeforeBoundary = nullptr;
}
inline void RangeBoundaryPoint::setToEndOfNode(Node& container)
{
- m_containerNode = PassRefPtr<Node>(container);
+ m_containerNode = &container;
if (m_containerNode->offsetInCharacters()) {
m_offsetInContainer = m_containerNode->maxCharacterOffset();
m_childBeforeBoundary = nullptr;

Powered by Google App Engine
This is Rietveld 408576698