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

Side by Side Diff: third_party/WebKit/Source/core/dom/Range.h

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #endif 66 #endif
67 void dispose(); 67 void dispose();
68 68
69 Document& ownerDocument() const { ASSERT(m_ownerDocument); return *m_ownerDo cument.get(); } 69 Document& ownerDocument() const { ASSERT(m_ownerDocument); return *m_ownerDo cument.get(); }
70 Node* startContainer() const { return m_start.container(); } 70 Node* startContainer() const { return m_start.container(); }
71 int startOffset() const { return m_start.offset(); } 71 int startOffset() const { return m_start.offset(); }
72 Node* endContainer() const { return m_end.container(); } 72 Node* endContainer() const { return m_end.container(); }
73 int endOffset() const { return m_end.offset(); } 73 int endOffset() const { return m_end.offset(); }
74 74
75 bool collapsed() const { return m_start == m_end; } 75 bool collapsed() const { return m_start == m_end; }
76 bool inDocument() const; 76 bool inShadowIncludingDocument() const;
77 77
78 Node* commonAncestorContainer() const; 78 Node* commonAncestorContainer() const;
79 static Node* commonAncestorContainer(const Node* containerA, const Node* con tainerB); 79 static Node* commonAncestorContainer(const Node* containerA, const Node* con tainerB);
80 void setStart(RawPtr<Node> container, int offset, ExceptionState& = ASSERT_N O_EXCEPTION); 80 void setStart(RawPtr<Node> container, int offset, ExceptionState& = ASSERT_N O_EXCEPTION);
81 void setEnd(RawPtr<Node> container, int offset, ExceptionState& = ASSERT_NO_ EXCEPTION); 81 void setEnd(RawPtr<Node> container, int offset, ExceptionState& = ASSERT_NO_ EXCEPTION);
82 void collapse(bool toStart); 82 void collapse(bool toStart);
83 bool isNodeFullyContained(Node&) const; 83 bool isNodeFullyContained(Node&) const;
84 bool isPointInRange(Node* refNode, int offset, ExceptionState&) const; 84 bool isPointInRange(Node* refNode, int offset, ExceptionState&) const;
85 short comparePoint(Node* refNode, int offset, ExceptionState&) const; 85 short comparePoint(Node* refNode, int offset, ExceptionState&) const;
86 enum CompareResults { NODE_BEFORE, NODE_AFTER, NODE_BEFORE_AND_AFTER, NODE_I NSIDE }; 86 enum CompareResults { NODE_BEFORE, NODE_AFTER, NODE_BEFORE_AND_AFTER, NODE_I NSIDE };
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 CORE_EXPORT bool areRangesEqual(const Range*, const Range*); 181 CORE_EXPORT bool areRangesEqual(const Range*, const Range*);
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #ifndef NDEBUG 185 #ifndef NDEBUG
186 // Outside the WebCore namespace for ease of invocation from gdb. 186 // Outside the WebCore namespace for ease of invocation from gdb.
187 void showTree(const blink::Range*); 187 void showTree(const blink::Range*);
188 #endif 188 #endif
189 189
190 #endif // Range_h 190 #endif // Range_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698