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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp

Issue 2229703004: Keep formatting tags included when it is cut or copied. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove editor variable in test case Created 4 years, 4 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/serializers/Serialization.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index 859e0cd43abf8f2ceac78802c0bf23968d3c9e15..230319f81f5a0b2bf9684cbee32233f55bff1ede 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -169,16 +169,6 @@ bool propertyMissingOrEqualToNone(StylePropertySet* style, CSSPropertyID propert
return toCSSPrimitiveValue(value)->getValueID() == CSSValueNone;
}
-static bool isPresentationalHTMLElement(const Node* node)
-{
- if (!node->isHTMLElement())
- return false;
-
- const HTMLElement& element = toHTMLElement(*node);
- return element.hasTagName(uTag) || element.hasTagName(sTag) || element.hasTagName(strikeTag)
- || element.hasTagName(iTag) || element.hasTagName(emTag) || element.hasTagName(bTag) || element.hasTagName(strongTag);
-}
-
template<typename Strategy>
static HTMLElement* highestAncestorToWrapMarkup(const PositionTemplate<Strategy>& startPosition, const PositionTemplate<Strategy>& endPosition, EAnnotateForInterchange shouldAnnotate, Node* constrainingAncestor)
{

Powered by Google App Engine
This is Rietveld 408576698