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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/MutationObserverInterestGroup.h ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no)
4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
5 * (C) 2001 Peter Kelly (pmk@post.com) 5 * (C) 2001 Peter Kelly (pmk@post.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 29 matching lines...) Expand all
40 class ClientRectList; 40 class ClientRectList;
41 class ContainerNode; 41 class ContainerNode;
42 class Document; 42 class Document;
43 class DocumentFragment; 43 class DocumentFragment;
44 class ExceptionState; 44 class ExceptionState;
45 class FloatQuad; 45 class FloatQuad;
46 class Node; 46 class Node;
47 class NodeWithIndex; 47 class NodeWithIndex;
48 class Text; 48 class Text;
49 49
50 class Range final : public RefCountedWillBeGarbageCollectedFinalized<Range>, pub lic ScriptWrappable { 50 class Range final
51 #ifndef NDEBUG
52 : public RefCountedWillBeGarbageCollectedFinalized<Range>
53 #else
54 : public RefCountedWillBeGarbageCollected<Range>
55 #endif
56 , public ScriptWrappable {
51 DEFINE_WRAPPERTYPEINFO(); 57 DEFINE_WRAPPERTYPEINFO();
52 public: 58 public:
53 static PassRefPtrWillBeRawPtr<Range> create(Document&); 59 static PassRefPtrWillBeRawPtr<Range> create(Document&);
54 static PassRefPtrWillBeRawPtr<Range> create(Document&, Node* startContainer, int startOffset, Node* endContainer, int endOffset); 60 static PassRefPtrWillBeRawPtr<Range> create(Document&, Node* startContainer, int startOffset, Node* endContainer, int endOffset);
55 static PassRefPtrWillBeRawPtr<Range> create(Document&, const Position&, cons t Position&); 61 static PassRefPtrWillBeRawPtr<Range> create(Document&, const Position&, cons t Position&);
62 #if !ENABLE(OILPAN) || !defined(NDEBUG)
56 ~Range(); 63 ~Range();
64 #endif
57 65
58 Document& ownerDocument() const { ASSERT(m_ownerDocument); return *m_ownerDo cument.get(); } 66 Document& ownerDocument() const { ASSERT(m_ownerDocument); return *m_ownerDo cument.get(); }
59 Node* startContainer() const { return m_start.container(); } 67 Node* startContainer() const { return m_start.container(); }
60 int startOffset() const { return m_start.offset(); } 68 int startOffset() const { return m_start.offset(); }
61 Node* endContainer() const { return m_end.container(); } 69 Node* endContainer() const { return m_end.container(); }
62 int endOffset() const { return m_end.offset(); } 70 int endOffset() const { return m_end.offset(); }
63 71
64 bool collapsed() const { return m_start == m_end; } 72 bool collapsed() const { return m_start == m_end; }
65 73
66 Node* commonAncestorContainer() const; 74 Node* commonAncestorContainer() const;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool areRangesEqual(const Range*, const Range*); 186 bool areRangesEqual(const Range*, const Range*);
179 187
180 } // namespace blink 188 } // namespace blink
181 189
182 #ifndef NDEBUG 190 #ifndef NDEBUG
183 // Outside the WebCore namespace for ease of invocation from gdb. 191 // Outside the WebCore namespace for ease of invocation from gdb.
184 void showTree(const blink::Range*); 192 void showTree(const blink::Range*);
185 #endif 193 #endif
186 194
187 #endif // Range_h 195 #endif // Range_h
OLDNEW
« 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