Index: Source/core/editing/htmlediting.cpp |
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp |
index 8fba7fd04494a53c6f4a65e7b71e5a74573c41f1..10ee8b989e1e987841b3d00153ed19583230129f 100644 |
--- a/Source/core/editing/htmlediting.cpp |
+++ b/Source/core/editing/htmlediting.cpp |
@@ -44,6 +44,7 @@ |
#include "core/editing/VisibleSelection.h" |
#include "core/editing/VisibleUnits.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/frame/UseCounter.h" |
#include "core/html/HTMLBRElement.h" |
#include "core/html/HTMLDivElement.h" |
#include "core/html/HTMLLIElement.h" |
@@ -824,7 +825,10 @@ PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document& document, const |
bool isTabSpanNode(const Node* node) |
{ |
- return isHTMLSpanElement(node) && toElement(node)->getAttribute(classAttr) == AppleTabSpanClass; |
+ if (!isHTMLSpanElement(node) || toElement(node)->getAttribute(classAttr) != AppleTabSpanClass) |
+ return false; |
+ UseCounter::count(node->document(), UseCounter::EditingAppleTabSpanClass); |
+ return true; |
} |
bool isTabSpanTextNode(const Node* node) |