X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebCore%2Fediting%2Fmarkup.cpp;h=3a8e3404d5b2b8d9ad738c41145ebeca9b7afe43;hp=b9909eacdb2bc01a0dcc5a39ed834b520c2223b6;hb=ae68b7c151fec1ac7079294f5a4440727e882344;hpb=2fb6d87508cd5cf858f601fde843026a62b939d4;ds=sidebyside diff --git a/WebCore/editing/markup.cpp b/WebCore/editing/markup.cpp index b9909eacdb2b..3a8e3404d5b2 100644 --- a/WebCore/editing/markup.cpp +++ b/WebCore/editing/markup.cpp @@ -26,6 +26,7 @@ #include "config.h" #include "markup.h" +#include "CDATASection.h" #include "CSSComputedStyleDeclaration.h" #include "CSSPropertyNames.h" #include "CSSRule.h" @@ -252,8 +253,9 @@ static DeprecatedString startMarkup(const Node *node, const Range *range, EAnnot return markup; } - case Node::ATTRIBUTE_NODE: case Node::CDATA_SECTION_NODE: + return static_cast(node)->toString().deprecatedString(); + case Node::ATTRIBUTE_NODE: case Node::ENTITY_NODE: case Node::ENTITY_REFERENCE_NODE: case Node::NOTATION_NODE: