OLD | NEW |
---|---|
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 | 106 |
107 void setStartAfter(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); | 107 void setStartAfter(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); |
108 void setEndBefore(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); | 108 void setEndBefore(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); |
109 void setEndAfter(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); | 109 void setEndAfter(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); |
110 void selectNode(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); | 110 void selectNode(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); |
111 void selectNodeContents(Node*, ExceptionState&); | 111 void selectNodeContents(Node*, ExceptionState&); |
112 static bool selectNodeContents(Node*, Position&, Position&); | 112 static bool selectNodeContents(Node*, Position&, Position&); |
113 void surroundContents(PassRefPtrWillBeRawPtr<Node>, ExceptionState&); | 113 void surroundContents(PassRefPtrWillBeRawPtr<Node>, ExceptionState&); |
114 void setStartBefore(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); | 114 void setStartBefore(Node*, ExceptionState& = ASSERT_NO_EXCEPTION); |
115 | 115 |
116 const Position startPosition() const { return m_start.toPosition(); } | 116 const Position& startPosition() const { return m_start.toPosition(); } |
yosin_UTC9
2016/01/05 04:32:31
We can't return const ref here at least VS2013 and
JakeYoon
2016/01/05 13:12:46
In fact, This patch is for replacing const value
| |
117 const Position endPosition() const { return m_end.toPosition(); } | 117 const Position& endPosition() const { return m_end.toPosition(); } |
haraken
2015/12/22 06:45:38
Why doesn't toPosition return const Position&?
| |
118 void setStart(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); | 118 void setStart(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); |
119 void setEnd(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); | 119 void setEnd(const Position&, ExceptionState& = ASSERT_NO_EXCEPTION); |
120 | 120 |
121 Node* firstNode() const; | 121 Node* firstNode() const; |
122 Node* pastLastNode() const; | 122 Node* pastLastNode() const; |
123 | 123 |
124 ShadowRoot* shadowRoot() const; | 124 ShadowRoot* shadowRoot() const; |
125 | 125 |
126 enum RangeInFixedPosition { | 126 enum RangeInFixedPosition { |
127 NotFixedPosition, | 127 NotFixedPosition, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 CORE_EXPORT bool areRangesEqual(const Range*, const Range*); | 187 CORE_EXPORT bool areRangesEqual(const Range*, const Range*); |
188 | 188 |
189 } // namespace blink | 189 } // namespace blink |
190 | 190 |
191 #ifndef NDEBUG | 191 #ifndef NDEBUG |
192 // Outside the WebCore namespace for ease of invocation from gdb. | 192 // Outside the WebCore namespace for ease of invocation from gdb. |
193 void showTree(const blink::Range*); | 193 void showTree(const blink::Range*); |
194 #endif | 194 #endif |
195 | 195 |
196 #endif // Range_h | 196 #endif // Range_h |
OLD | NEW |