summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.cc b/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.cc
index 9dbba501604..49f468d1b2b 100644
--- a/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.cc
+++ b/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.cc
@@ -63,6 +63,7 @@
#include "third_party/blink/renderer/core/input_type_names.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/layout/layout_text.h"
+#include "third_party/blink/renderer/core/svg/svg_style_element.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/heap.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
@@ -830,7 +831,7 @@ static void RemoveHeadContents(ReplacementFragment& fragment) {
for (Node* node = fragment.FirstChild(); node; node = next) {
if (IsHTMLBaseElement(*node) || IsHTMLLinkElement(*node) ||
IsHTMLMetaElement(*node) || IsHTMLStyleElement(*node) ||
- IsHTMLTitleElement(*node)) {
+ IsHTMLTitleElement(*node) || IsSVGStyleElement(*node)) {
next = NodeTraversal::NextSkippingChildren(*node);
fragment.RemoveNode(node);
} else {