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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool canRebalance(const Position&) const; | 114 bool canRebalance(const Position&) const; |
115 bool shouldRebalanceLeadingWhitespaceFor(const String&) const; | 115 bool shouldRebalanceLeadingWhitespaceFor(const String&) const; |
116 void removeCSSProperty(PassRefPtr<Element>, CSSPropertyID); | 116 void removeCSSProperty(PassRefPtr<Element>, CSSPropertyID); |
117 void removeNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute
); | 117 void removeNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute
); |
118 void removeChildrenInRange(PassRefPtr<Node>, unsigned from, unsigned to); | 118 void removeChildrenInRange(PassRefPtr<Node>, unsigned from, unsigned to); |
119 virtual void removeNode(PassRefPtr<Node>, ShouldAssumeContentIsAlwaysEditabl
e = DoNotAssumeContentIsAlwaysEditable); | 119 virtual void removeNode(PassRefPtr<Node>, ShouldAssumeContentIsAlwaysEditabl
e = DoNotAssumeContentIsAlwaysEditable); |
120 HTMLElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassRefPt
r<HTMLElement>); | 120 HTMLElement* replaceElementWithSpanPreservingChildrenAndAttributes(PassRefPt
r<HTMLElement>); |
121 void removeNodePreservingChildren(PassRefPtr<Node>, ShouldAssumeContentIsAlw
aysEditable = DoNotAssumeContentIsAlwaysEditable); | 121 void removeNodePreservingChildren(PassRefPtr<Node>, ShouldAssumeContentIsAlw
aysEditable = DoNotAssumeContentIsAlwaysEditable); |
122 void removeNodeAndPruneAncestors(PassRefPtr<Node>, Node* excludeNode = 0); | 122 void removeNodeAndPruneAncestors(PassRefPtr<Node>, Node* excludeNode = 0); |
123 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR
efPtr<Element> prpNewParent); | 123 void moveRemainingSiblingsToNewParent(Node*, Node* pastLastNodeToMove, PassR
efPtr<Element> prpNewParent); |
124 void updatePositionForNodeRemovalPreservingChildren(Position&, Node*); | 124 void updatePositionForNodeRemovalPreservingChildren(Position&, Node&); |
125 void prune(PassRefPtr<Node>, Node* excludeNode = 0); | 125 void prune(PassRefPtr<Node>, Node* excludeNode = 0); |
126 void replaceTextInNode(PassRefPtr<Text>, unsigned offset, unsigned count, co
nst String& replacementText); | 126 void replaceTextInNode(PassRefPtr<Text>, unsigned offset, unsigned count, co
nst String& replacementText); |
127 Position replaceSelectedTextInNode(const String&); | 127 Position replaceSelectedTextInNode(const String&); |
128 void replaceTextInNodePreservingMarkers(PassRefPtr<Text>, unsigned offset, u
nsigned count, const String& replacementText); | 128 void replaceTextInNodePreservingMarkers(PassRefPtr<Text>, unsigned offset, u
nsigned count, const String& replacementText); |
129 Position positionOutsideTabSpan(const Position&); | 129 Position positionOutsideTabSpan(const Position&); |
130 void setNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute, c
onst AtomicString& value); | 130 void setNodeAttribute(PassRefPtr<Element>, const QualifiedName& attribute, c
onst AtomicString& value); |
131 void splitElement(PassRefPtr<Element>, PassRefPtr<Node> atChild); | 131 void splitElement(PassRefPtr<Element>, PassRefPtr<Node> atChild); |
132 void splitTextNode(PassRefPtr<Text>, unsigned offset); | 132 void splitTextNode(PassRefPtr<Text>, unsigned offset); |
133 void splitTextNodeContainingElement(PassRefPtr<Text>, unsigned offset); | 133 void splitTextNodeContainingElement(PassRefPtr<Text>, unsigned offset); |
134 void wrapContentsInDummySpan(PassRefPtr<Element>); | 134 void wrapContentsInDummySpan(PassRefPtr<Element>); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 virtual bool isCompositeEditCommand() const OVERRIDE FINAL { return true; } | 168 virtual bool isCompositeEditCommand() const OVERRIDE FINAL { return true; } |
169 | 169 |
170 RefPtr<EditCommandComposition> m_composition; | 170 RefPtr<EditCommandComposition> m_composition; |
171 }; | 171 }; |
172 | 172 |
173 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi
teEditCommand(), command.isCompositeEditCommand()); | 173 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi
teEditCommand(), command.isCompositeEditCommand()); |
174 | 174 |
175 } // namespace WebCore | 175 } // namespace WebCore |
176 | 176 |
177 #endif // CompositeEditCommand_h | 177 #endif // CompositeEditCommand_h |
OLD | NEW |