OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008 Apple 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 Node* pastLastNodeToMove, | 149 Node* pastLastNodeToMove, |
150 Element* newParent, | 150 Element* newParent, |
151 EditingState*); | 151 EditingState*); |
152 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); | 152 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); |
153 void prune(Node*, EditingState*, Node* excludeNode = nullptr); | 153 void prune(Node*, EditingState*, Node* excludeNode = nullptr); |
154 void replaceTextInNode(Text*, | 154 void replaceTextInNode(Text*, |
155 unsigned offset, | 155 unsigned offset, |
156 unsigned count, | 156 unsigned count, |
157 const String& replacementText); | 157 const String& replacementText); |
158 Position replaceSelectedTextInNode(const String&); | 158 Position replaceSelectedTextInNode(const String&); |
159 void replaceTextInNodePreservingMarkers(Text*, | |
160 unsigned offset, | |
161 unsigned count, | |
162 const String& replacementText); | |
163 Position positionOutsideTabSpan(const Position&); | 159 Position positionOutsideTabSpan(const Position&); |
164 void setNodeAttribute(Element*, | 160 void setNodeAttribute(Element*, |
165 const QualifiedName& attribute, | 161 const QualifiedName& attribute, |
166 const AtomicString& value); | 162 const AtomicString& value); |
167 void splitElement(Element*, Node* atChild); | 163 void splitElement(Element*, Node* atChild); |
168 void splitTextNode(Text*, unsigned offset); | 164 void splitTextNode(Text*, unsigned offset); |
169 void splitTextNodeContainingElement(Text*, unsigned offset); | 165 void splitTextNodeContainingElement(Text*, unsigned offset); |
170 void wrapContentsInDummySpan(Element*); | 166 void wrapContentsInDummySpan(Element*); |
171 | 167 |
172 void deleteInsignificantText(Text*, unsigned start, unsigned end); | 168 void deleteInsignificantText(Text*, unsigned start, unsigned end); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 229 |
234 DEFINE_TYPE_CASTS(CompositeEditCommand, | 230 DEFINE_TYPE_CASTS(CompositeEditCommand, |
235 EditCommand, | 231 EditCommand, |
236 command, | 232 command, |
237 command->isCompositeEditCommand(), | 233 command->isCompositeEditCommand(), |
238 command.isCompositeEditCommand()); | 234 command.isCompositeEditCommand()); |
239 | 235 |
240 } // namespace blink | 236 } // namespace blink |
241 | 237 |
242 #endif // CompositeEditCommand_h | 238 #endif // CompositeEditCommand_h |
OLD | NEW |