| Index: Source/core/dom/Range.h
|
| diff --git a/Source/core/dom/Range.h b/Source/core/dom/Range.h
|
| index d865eda85a67260f171bd4daff835c4255197f17..b80104d2d1a99a90b0849153155690a1574fb435 100644
|
| --- a/Source/core/dom/Range.h
|
| +++ b/Source/core/dom/Range.h
|
| @@ -47,13 +47,21 @@ class Node;
|
| class NodeWithIndex;
|
| class Text;
|
|
|
| -class Range final : public RefCountedWillBeGarbageCollectedFinalized<Range>, public ScriptWrappable {
|
| +class Range final
|
| +#ifndef NDEBUG
|
| + : public RefCountedWillBeGarbageCollectedFinalized<Range>
|
| +#else
|
| + : public RefCountedWillBeGarbageCollected<Range>
|
| +#endif
|
| + , public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static PassRefPtrWillBeRawPtr<Range> create(Document&);
|
| static PassRefPtrWillBeRawPtr<Range> create(Document&, Node* startContainer, int startOffset, Node* endContainer, int endOffset);
|
| static PassRefPtrWillBeRawPtr<Range> create(Document&, const Position&, const Position&);
|
| +#if !ENABLE(OILPAN) || !defined(NDEBUG)
|
| ~Range();
|
| +#endif
|
|
|
| Document& ownerDocument() const { ASSERT(m_ownerDocument); return *m_ownerDocument.get(); }
|
| Node* startContainer() const { return m_start.container(); }
|
|
|