| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 bool isBaseFirst() const { return m_baseIsFirst; } | 87 bool isBaseFirst() const { return m_baseIsFirst; } |
| 88 bool isDirectional() const { return m_isDirectional; } | 88 bool isDirectional() const { return m_isDirectional; } |
| 89 void setIsDirectional(bool isDirectional) { m_isDirectional = isDirectional;
} | 89 void setIsDirectional(bool isDirectional) { m_isDirectional = isDirectional;
} |
| 90 | 90 |
| 91 void appendTrailingWhitespace(); | 91 void appendTrailingWhitespace(); |
| 92 | 92 |
| 93 bool expandUsingGranularity(TextGranularity granularity); | 93 bool expandUsingGranularity(TextGranularity granularity); |
| 94 | 94 |
| 95 // We don't yet support multi-range selections, so we only ever have one ran
ge to return. | 95 // We don't yet support multi-range selections, so we only ever have one ran
ge to return. |
| 96 PassRefPtr<Range> firstRange() const; | 96 PassRefPtrWillBeRawPtr<Range> firstRange() const; |
| 97 | 97 |
| 98 // FIXME: Most callers probably don't want this function, but are using it | 98 // FIXME: Most callers probably don't want this function, but are using it |
| 99 // for historical reasons. toNormalizedRange contracts the range around | 99 // for historical reasons. toNormalizedRange contracts the range around |
| 100 // text, and moves the caret upstream before returning the range. | 100 // text, and moves the caret upstream before returning the range. |
| 101 PassRefPtr<Range> toNormalizedRange() const; | 101 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const; |
| 102 | 102 |
| 103 Element* rootEditableElement() const; | 103 Element* rootEditableElement() const; |
| 104 bool isContentEditable() const; | 104 bool isContentEditable() const; |
| 105 bool rendererIsEditable() const; | 105 bool rendererIsEditable() const; |
| 106 bool isContentRichlyEditable() const; | 106 bool isContentRichlyEditable() const; |
| 107 // Returns a shadow tree node for legacy shadow trees, a child of the | 107 // Returns a shadow tree node for legacy shadow trees, a child of the |
| 108 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees. | 108 // ShadowRoot node for new shadow trees, or 0 for non-shadow trees. |
| 109 Node* nonBoundaryShadowTreeRootNode() const; | 109 Node* nonBoundaryShadowTreeRootNode() const; |
| 110 | 110 |
| 111 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint&
localPoint, Node* targetNode) const; | 111 VisiblePosition visiblePositionRespectingEditingBoundary(const LayoutPoint&
localPoint, Node* targetNode) const; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 } // namespace WebCore | 178 } // namespace WebCore |
| 179 | 179 |
| 180 #ifndef NDEBUG | 180 #ifndef NDEBUG |
| 181 // Outside the WebCore namespace for ease of invocation from gdb. | 181 // Outside the WebCore namespace for ease of invocation from gdb. |
| 182 void showTree(const WebCore::VisibleSelection&); | 182 void showTree(const WebCore::VisibleSelection&); |
| 183 void showTree(const WebCore::VisibleSelection*); | 183 void showTree(const WebCore::VisibleSelection*); |
| 184 #endif | 184 #endif |
| 185 | 185 |
| 186 #endif // VisibleSelection_h | 186 #endif // VisibleSelection_h |
| OLD | NEW |