| Index: third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp b/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp
|
| index 0f0a2625476b2b1f40424b897324584b82794ee6..f92beaa7d0b89b09a32dc9a3460b8068a6ad1009 100644
|
| --- a/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp
|
| @@ -163,7 +163,9 @@ BackspaceStateMachine::feedPrecedingCodeUnit(UChar codeUnit)
|
| case BackspaceState::BeforeZWJ:
|
| if (Character::isEmoji(codePoint)) {
|
| m_codeUnitsToBeDeleted += U16_LENGTH(codePoint) + 1; // +1 for ZWJ
|
| - return moveToNextState(BackspaceState::BeforeZWJEmoji);
|
| + return Character::isModifier(codePoint) ?
|
| + moveToNextState(BackspaceState::BeforeEmojiModifier) :
|
| + moveToNextState(BackspaceState::BeforeZWJEmoji);
|
| }
|
| if (u_hasBinaryProperty(codePoint, UCHAR_VARIATION_SELECTOR)) {
|
| DCHECK_EQ(m_lastSeenVSCodeUnits, 0);
|
|
|