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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 | 430 |
431 void TypingCommand::doApply(EditingState* editingState) { | 431 void TypingCommand::doApply(EditingState* editingState) { |
432 if (!endingSelection().isNonOrphanedCaretOrRange()) | 432 if (!endingSelection().isNonOrphanedCaretOrRange()) |
433 return; | 433 return; |
434 | 434 |
435 if (m_commandType == DeleteKey) { | 435 if (m_commandType == DeleteKey) { |
436 if (m_commands.isEmpty()) | 436 if (m_commands.isEmpty()) |
437 m_openedByBackwardDelete = true; | 437 m_openedByBackwardDelete = true; |
438 } | 438 } |
439 | 439 |
440 LOG(INFO) << "command type: " << m_commandType; | |
aelias_OOO_until_Jul13
2017/01/25 03:34:27
Leftover LOG
| |
441 | |
440 switch (m_commandType) { | 442 switch (m_commandType) { |
441 case DeleteSelection: | 443 case DeleteSelection: |
442 deleteSelection(m_smartDelete, editingState); | 444 deleteSelection(m_smartDelete, editingState); |
443 return; | 445 return; |
444 case DeleteKey: | 446 case DeleteKey: |
445 deleteKeyPressed(m_granularity, m_killRing, editingState); | 447 deleteKeyPressed(m_granularity, m_killRing, editingState); |
446 return; | 448 return; |
447 case ForwardDeleteKey: | 449 case ForwardDeleteKey: |
448 forwardDeleteKeyPressed(m_granularity, m_killRing, editingState); | 450 forwardDeleteKeyPressed(m_granularity, m_killRing, editingState); |
449 return; | 451 return; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
957 } | 959 } |
958 NOTREACHED(); | 960 NOTREACHED(); |
959 m_preservesTypingStyle = false; | 961 m_preservesTypingStyle = false; |
960 } | 962 } |
961 | 963 |
962 bool TypingCommand::isTypingCommand() const { | 964 bool TypingCommand::isTypingCommand() const { |
963 return true; | 965 return true; |
964 } | 966 } |
965 | 967 |
966 } // namespace blink | 968 } // namespace blink |
OLD | NEW |