| Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| index 334c6e74659019cc3cbbd7852cc4ecd23cadc981..d5bdabb68a148c1a0c7fd801fcfd330d7998fad8 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -1570,11 +1570,12 @@ HTMLElement* createHTMLElement(Document& document, const QualifiedName& name) {
|
| }
|
|
|
| bool isTabHTMLSpanElement(const Node* node) {
|
| - if (!isHTMLSpanElement(node) ||
|
| - toHTMLSpanElement(node)->getAttribute(classAttr) != AppleTabSpanClass)
|
| + if (!isHTMLSpanElement(node) || !node->firstChild())
|
| return false;
|
| - UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass);
|
| - return true;
|
| + if (node->firstChild()->isCharacterDataNode() &&
|
| + toCharacterData(node->firstChild())->data().contains('\t'))
|
| + return true;
|
| + return false;
|
| }
|
|
|
| bool isTabHTMLSpanElementTextNode(const Node* node) {
|
| @@ -1592,7 +1593,6 @@ static HTMLSpanElement* createTabSpanElement(Document& document,
|
| Text* tabTextNode) {
|
| // Make the span to hold the tab.
|
| HTMLSpanElement* spanElement = HTMLSpanElement::create(document);
|
| - spanElement->setAttribute(classAttr, AppleTabSpanClass);
|
| spanElement->setAttribute(styleAttr, "white-space:pre");
|
|
|
| // Add tab text to that span.
|
|
|