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

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

Issue 697893003: Oilpan: avoid invoking some no-op finalizers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove Finalized<> for StyleSheetList Created 6 years, 1 month 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/MutationObserverInterestGroup.h ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(); }
« no previous file with comments | « Source/core/dom/MutationObserverInterestGroup.h ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698