Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp

Issue 2121613003: Include style tags when pasting HTML content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EditorTestBase. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
index 47ff6f38c8a31c597bc1634013a79dec4639d813..23111d3148139f0f1b2821922fe13c32ead2e78b 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
@@ -785,7 +785,6 @@ static void removeHeadContents(ReplacementFragment& fragment)
if (isHTMLBaseElement(*node)
|| isHTMLLinkElement(*node)
|| isHTMLMetaElement(*node)
- || isHTMLStyleElement(*node)
|| isHTMLTitleElement(*node)) {
next = NodeTraversal::nextSkippingChildren(*node);
fragment.removeNode(node);

Powered by Google App Engine
This is Rietveld 408576698