| Index: Source/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| index 5089b6c90db2e888b32a65fc1e9a1a3676393a28..487db1cf8dd742495dd5b0b0bea0a8b2955954f5 100644
|
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -782,7 +782,7 @@ void ReplaceSelectionCommand::handleStyleSpans(InsertedNodes& insertedNodes)
|
| // the top of the fragment, but Mail sometimes adds a wrapper (for Paste As Quotation),
|
| // so search for the top level style span instead of assuming it's at the top.
|
|
|
| - for (Node& node : NodeTraversal::from(insertedNodes.firstNodeInserted())) {
|
| + for (Node& node : NodeTraversal::startsAt(insertedNodes.firstNodeInserted())) {
|
| if (isLegacyAppleHTMLSpanElement(&node)) {
|
| wrappingStyleSpan = toHTMLSpanElement(&node);
|
| break;
|
|
|