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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 void prepareWhitespaceAtPositionForSplit(Position&); | 119 void prepareWhitespaceAtPositionForSplit(Position&); |
120 bool canRebalance(const Position&) const; | 120 bool canRebalance(const Position&) const; |
121 bool shouldRebalanceLeadingWhitespaceFor(const String&) const; | 121 bool shouldRebalanceLeadingWhitespaceFor(const String&) const; |
122 void removeCSSProperty(PassRefPtr<StyledElement>, CSSPropertyID); | 122 void removeCSSProperty(PassRefPtr<StyledElement>, CSSPropertyID); |
123 void removeNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute
); | 123 void removeNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute
); |
124 void removeChildrenInRange(PassRefPtr<Node>, unsigned from, unsigned to); | 124 void removeChildrenInRange(PassRefPtr<Node>, unsigned from, unsigned to); |
125 virtual void removeNode(PassRefPtr<Node>); | 125 virtual void removeNode(PassRefPtr<Node>); |
126 HTMLElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassRefPt
r<HTMLElement>); | 126 HTMLElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassRefPt
r<HTMLElement>); |
127 void removeNodePreservingChildren(PassRefPtr<Node>); | 127 void removeNodePreservingChildren(PassRefPtr<Node>); |
128 void removeNodeAndPruneAncestors(PassRefPtr<Node>); | 128 void removeNodeAndPruneAncestors(PassRefPtr<Node>); |
| 129 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR
efPtr<Element> prpNewParent); |
129 void prune(PassRefPtr<Node>); | 130 void prune(PassRefPtr<Node>); |
130 void replaceTextInNode(PassRefPtr<Text>, unsigned offset, unsigned count, co
nst String& replacementText); | 131 void replaceTextInNode(PassRefPtr<Text>, unsigned offset, unsigned count, co
nst String& replacementText); |
131 Position replaceSelectedTextInNode(const String&); | 132 Position replaceSelectedTextInNode(const String&); |
132 void replaceTextInNodePreservingMarkers(PassRefPtr<Text>, unsigned offset, u
nsigned count, const String& replacementText); | 133 void replaceTextInNodePreservingMarkers(PassRefPtr<Text>, unsigned offset, u
nsigned count, const String& replacementText); |
133 Position positionOutsideTabSpan(const Position&); | 134 Position positionOutsideTabSpan(const Position&); |
134 void setNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute, c
onst AtomicString& value); | 135 void setNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute, c
onst AtomicString& value); |
135 void splitElement(PassRefPtr<Element>, PassRefPtr<Node> atChild); | 136 void splitElement(PassRefPtr<Element>, PassRefPtr<Node> atChild); |
136 void splitTextNode(PassRefPtr<Text>, unsigned offset); | 137 void splitTextNode(PassRefPtr<Text>, unsigned offset); |
137 void splitTextNodeContainingElement(PassRefPtr<Text>, unsigned offset); | 138 void splitTextNodeContainingElement(PassRefPtr<Text>, unsigned offset); |
138 void wrapContentsInDummySpan(PassRefPtr<Element>); | 139 void wrapContentsInDummySpan(PassRefPtr<Element>); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 inline CompositeEditCommand* toCompositeEditCommand(EditCommand* command) | 179 inline CompositeEditCommand* toCompositeEditCommand(EditCommand* command) |
179 { | 180 { |
180 ASSERT(command); | 181 ASSERT(command); |
181 ASSERT(command->isCompositeEditCommand()); | 182 ASSERT(command->isCompositeEditCommand()); |
182 return static_cast<CompositeEditCommand*>(command); | 183 return static_cast<CompositeEditCommand*>(command); |
183 } | 184 } |
184 | 185 |
185 } // namespace WebCore | 186 } // namespace WebCore |
186 | 187 |
187 #endif // CompositeEditCommand_h | 188 #endif // CompositeEditCommand_h |
OLD | NEW |