OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 bool CompositeEditCommand::apply() { | 92 bool CompositeEditCommand::apply() { |
93 DCHECK(!isCommandGroupWrapper()); | 93 DCHECK(!isCommandGroupWrapper()); |
94 if (!endingSelection().isContentRichlyEditable()) { | 94 if (!endingSelection().isContentRichlyEditable()) { |
95 switch (inputType()) { | 95 switch (inputType()) { |
96 case InputEvent::InputType::InsertText: | 96 case InputEvent::InputType::InsertText: |
97 case InputEvent::InputType::InsertLineBreak: | 97 case InputEvent::InputType::InsertLineBreak: |
98 case InputEvent::InputType::InsertParagraph: | 98 case InputEvent::InputType::InsertParagraph: |
99 case InputEvent::InputType::InsertFromPaste: | 99 case InputEvent::InputType::InsertFromPaste: |
100 case InputEvent::InputType::InsertFromDrop: | 100 case InputEvent::InputType::InsertFromDrop: |
101 case InputEvent::InputType::InsertReplacementText: | 101 case InputEvent::InputType::InsertReplacementText: |
102 case InputEvent::InputType::DeleteComposedCharacterForward: | 102 case InputEvent::InputType::InsertCompositionText: |
103 case InputEvent::InputType::DeleteComposedCharacterBackward: | |
104 case InputEvent::InputType::DeleteWordBackward: | 103 case InputEvent::InputType::DeleteWordBackward: |
105 case InputEvent::InputType::DeleteWordForward: | 104 case InputEvent::InputType::DeleteWordForward: |
106 case InputEvent::InputType::DeleteLineBackward: | 105 case InputEvent::InputType::DeleteLineBackward: |
107 case InputEvent::InputType::DeleteLineForward: | 106 case InputEvent::InputType::DeleteLineForward: |
108 case InputEvent::InputType::DeleteContentBackward: | 107 case InputEvent::InputType::DeleteContentBackward: |
109 case InputEvent::InputType::DeleteContentForward: | 108 case InputEvent::InputType::DeleteContentForward: |
110 case InputEvent::InputType::DeleteByCut: | 109 case InputEvent::InputType::DeleteByCut: |
111 case InputEvent::InputType::DeleteByDrag: | 110 case InputEvent::InputType::DeleteByDrag: |
112 case InputEvent::InputType::None: | 111 case InputEvent::InputType::None: |
113 break; | 112 break; |
(...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1971 | 1970 |
1972 DEFINE_TRACE(CompositeEditCommand) { | 1971 DEFINE_TRACE(CompositeEditCommand) { |
1973 visitor->trace(m_commands); | 1972 visitor->trace(m_commands); |
1974 visitor->trace(m_startingSelection); | 1973 visitor->trace(m_startingSelection); |
1975 visitor->trace(m_endingSelection); | 1974 visitor->trace(m_endingSelection); |
1976 visitor->trace(m_undoStep); | 1975 visitor->trace(m_undoStep); |
1977 EditCommand::trace(visitor); | 1976 EditCommand::trace(visitor); |
1978 } | 1977 } |
1979 | 1978 |
1980 } // namespace blink | 1979 } // namespace blink |
OLD | NEW |