Chromium Code Reviews| Index: Source/core/editing/DeleteSelectionCommand.cpp |
| diff --git a/Source/core/editing/DeleteSelectionCommand.cpp b/Source/core/editing/DeleteSelectionCommand.cpp |
| index 6bc3a1b87ad254ef1717b1fcff97d88aa16046d5..0c91ad03a522e5db797c31d27f6ec0abf5fa115f 100644 |
| --- a/Source/core/editing/DeleteSelectionCommand.cpp |
| +++ b/Source/core/editing/DeleteSelectionCommand.cpp |
| @@ -292,7 +292,7 @@ void DeleteSelectionCommand::saveTypingStyleState() |
| return; |
| // Figure out the typing style in effect before the delete is done. |
| - m_typingStyle = EditingStyle::create(m_selectionToDelete.start()); |
| + m_typingStyle = EditingStyle::create(m_selectionToDelete.start(), EditingStyle::EditingPropertiesInEffect); |
|
yosin_UTC9
2013/09/09 04:57:48
How about changing default value of EditingStyle::
|
| m_typingStyle->removeStyleAddedByNode(enclosingAnchorElement(m_selectionToDelete.start())); |
| // If we're deleting into a Mail blockquote, save the style at end() instead of start() |