OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // TODO(yosin) Most callers probably don't want these functions, but | 118 // TODO(yosin) Most callers probably don't want these functions, but |
119 // are using them for historical reasons. |toNormalizedEphemeralRange()| | 119 // are using them for historical reasons. |toNormalizedEphemeralRange()| |
120 // contracts the range around text, and moves the caret most backward | 120 // contracts the range around text, and moves the caret most backward |
121 // visually equivalent position before returning the range/positions. | 121 // visually equivalent position before returning the range/positions. |
122 EphemeralRangeTemplate<Strategy> toNormalizedEphemeralRange() const; | 122 EphemeralRangeTemplate<Strategy> toNormalizedEphemeralRange() const; |
123 | 123 |
124 Element* rootEditableElement() const; | 124 Element* rootEditableElement() const; |
125 bool isContentEditable() const; | 125 bool isContentEditable() const; |
126 bool hasEditableStyle() const; | 126 bool hasEditableStyle() const; |
127 bool isContentRichlyEditable() const; | 127 bool isContentRichlyEditable() const; |
128 // Returns a shadow tree node for legacy shadow trees, a child of the | |
129 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees. | |
130 Node* nonBoundaryShadowTreeRootNode() const; | |
131 | 128 |
132 VisiblePositionTemplate<Strategy> visiblePositionRespectingEditingBoundary(c
onst LayoutPoint& localPoint, Node* targetNode) const; | 129 VisiblePositionTemplate<Strategy> visiblePositionRespectingEditingBoundary(c
onst LayoutPoint& localPoint, Node* targetNode) const; |
133 PositionWithAffinityTemplate<Strategy> positionRespectingEditingBoundary(con
st LayoutPoint& localPoint, Node* targetNode) const; | 130 PositionWithAffinityTemplate<Strategy> positionRespectingEditingBoundary(con
st LayoutPoint& localPoint, Node* targetNode) const; |
134 | 131 |
135 bool isValidFor(const Document&) const; | 132 bool isValidFor(const Document&) const; |
136 void setWithoutValidation(const PositionTemplate<Strategy>&, const PositionT
emplate<Strategy>&); | 133 void setWithoutValidation(const PositionTemplate<Strategy>&, const PositionT
emplate<Strategy>&); |
137 | 134 |
138 void setChangeObserver(VisibleSelectionChangeObserver&); | 135 void setChangeObserver(VisibleSelectionChangeObserver&); |
139 void clearChangeObserver(); | 136 void clearChangeObserver(); |
140 void didChange(); // Fire the change observer, if any. | 137 void didChange(); // Fire the change observer, if any. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 221 |
225 #ifndef NDEBUG | 222 #ifndef NDEBUG |
226 // Outside the WebCore namespace for ease of invocation from gdb. | 223 // Outside the WebCore namespace for ease of invocation from gdb. |
227 void showTree(const blink::VisibleSelection&); | 224 void showTree(const blink::VisibleSelection&); |
228 void showTree(const blink::VisibleSelection*); | 225 void showTree(const blink::VisibleSelection*); |
229 void showTree(const blink::VisibleSelectionInFlatTree&); | 226 void showTree(const blink::VisibleSelectionInFlatTree&); |
230 void showTree(const blink::VisibleSelectionInFlatTree*); | 227 void showTree(const blink::VisibleSelectionInFlatTree*); |
231 #endif | 228 #endif |
232 | 229 |
233 #endif // VisibleSelection_h | 230 #endif // VisibleSelection_h |
OLD | NEW |