| 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 | 149 |
| 150 PassRefPtrWillBeRawPtr<HTMLElement> insertNewDefaultParagraphElementAt(const
Position&); | 150 PassRefPtrWillBeRawPtr<HTMLElement> insertNewDefaultParagraphElementAt(const
Position&); |
| 151 | 151 |
| 152 PassRefPtrWillBeRawPtr<HTMLElement> moveParagraphContentsToNewBlockIfNecessa
ry(const Position&); | 152 PassRefPtrWillBeRawPtr<HTMLElement> moveParagraphContentsToNewBlockIfNecessa
ry(const Position&); |
| 153 | 153 |
| 154 void pushAnchorElementDown(Element*); | 154 void pushAnchorElementDown(Element*); |
| 155 | 155 |
| 156 // FIXME: preserveSelection and preserveStyle should be enums | 156 // FIXME: preserveSelection and preserveStyle should be enums |
| 157 void moveParagraph(const VisiblePosition&, const VisiblePosition&, const Vis
iblePosition&, bool preserveSelection = false, bool preserveStyle = true, Node*
constrainingAncestor = 0); | 157 void moveParagraph(const VisiblePosition&, const VisiblePosition&, const Vis
iblePosition&, bool preserveSelection = false, bool preserveStyle = true, Node*
constrainingAncestor = 0); |
| 158 void moveParagraphs(const VisiblePosition&, const VisiblePosition&, const Vi
siblePosition&, bool preserveSelection = false, bool preserveStyle = true, Node*
constrainingAncestor = 0); | 158 void moveParagraphs(const VisiblePosition&, const VisiblePosition&, const Vi
siblePosition&, bool preserveSelection = false, bool preserveStyle = true, Node*
constrainingAncestor = 0); |
| 159 void moveParagraphWithClones(const VisiblePosition& startOfParagraphToMove,
const VisiblePosition& endOfParagraphToMove, Element* blockElement, Node* outerN
ode); | 159 void moveParagraphWithClones(const VisiblePosition& startOfParagraphToMove,
const VisiblePosition& endOfParagraphToMove, HTMLElement* blockElement, Node* ou
terNode); |
| 160 void cloneParagraphUnderNewElement(const Position& start, const Position& en
d, Node* outerNode, Element* blockElement); | 160 void cloneParagraphUnderNewElement(const Position& start, const Position& en
d, Node* outerNode, Element* blockElement); |
| 161 void cleanupAfterDeletion(VisiblePosition destination = VisiblePosition()); | 161 void cleanupAfterDeletion(VisiblePosition destination = VisiblePosition()); |
| 162 | 162 |
| 163 bool breakOutOfEmptyListItem(); | 163 bool breakOutOfEmptyListItem(); |
| 164 bool breakOutOfEmptyMailBlockquotedParagraph(); | 164 bool breakOutOfEmptyMailBlockquotedParagraph(); |
| 165 | 165 |
| 166 Position positionAvoidingSpecialElementBoundary(const Position&); | 166 Position positionAvoidingSpecialElementBoundary(const Position&); |
| 167 | 167 |
| 168 PassRefPtrWillBeRawPtr<Node> splitTreeToNode(Node*, Node*, bool splitAncesto
r = false); | 168 PassRefPtrWillBeRawPtr<Node> splitTreeToNode(Node*, Node*, bool splitAncesto
r = false); |
| 169 | 169 |
| 170 WillBeHeapVector<RefPtrWillBeMember<EditCommand> > m_commands; | 170 WillBeHeapVector<RefPtrWillBeMember<EditCommand> > m_commands; |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 virtual bool isCompositeEditCommand() const OVERRIDE FINAL { return true; } | 173 virtual bool isCompositeEditCommand() const OVERRIDE FINAL { return true; } |
| 174 | 174 |
| 175 RefPtrWillBeMember<EditCommandComposition> m_composition; | 175 RefPtrWillBeMember<EditCommandComposition> m_composition; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi
teEditCommand(), command.isCompositeEditCommand()); | 178 DEFINE_TYPE_CASTS(CompositeEditCommand, EditCommand, command, command->isComposi
teEditCommand(), command.isCompositeEditCommand()); |
| 179 | 179 |
| 180 } // namespace blink | 180 } // namespace blink |
| 181 | 181 |
| 182 #endif // CompositeEditCommand_h | 182 #endif // CompositeEditCommand_h |
| OLD | NEW |