Index: third_party/WebKit/Source/core/editing/EditingStyle.cpp |
diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.cpp b/third_party/WebKit/Source/core/editing/EditingStyle.cpp |
index 184dd8401ec2acd85ae9b19c665a41137f2aaebb..163cbfb17e46d3197edc3447aae00c755f919209 100644 |
--- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp |
@@ -747,7 +747,7 @@ TriState EditingStyle::triStateOfStyle(const VisibleSelection& selection) const |
TriState state = FalseTriState; |
bool nodeIsStart = true; |
for (Node& node : NodeTraversal::startsAt(*selection.start().anchorNode())) { |
- if (node.layoutObject() && node.hasEditableStyle()) { |
+ if (node.layoutObject() && hasEditableStyle(node)) { |
CSSComputedStyleDeclaration* nodeStyle = CSSComputedStyleDeclaration::create(&node); |
if (nodeStyle) { |
// If the selected element has <sub> or <sup> ancestor element, apply the corresponding |