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 7c62fca5ed96119af06504c6ea8b183dc33a700a..3f7fd86fc1223ddbe7fbc11cc4ec8dbf2d54d00b 100644 |
--- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp |
@@ -751,7 +751,9 @@ TriState EditingStyle::triStateOfStyle(const VisibleSelection& selection) const |
if (node.layoutObject() && node.hasEditableStyle()) { |
CSSComputedStyleDeclaration* nodeStyle = CSSComputedStyleDeclaration::create(&node); |
if (nodeStyle) { |
- TriState nodeState = triStateOfStyle(nodeStyle, node.isTextNode() ? EditingStyle::DoNotIgnoreTextOnlyProperties : EditingStyle::IgnoreTextOnlyProperties); |
+ // Pass EditingStyle::DoNotIgnoreTextOnlyProperties without checking if node.isTextNode() |
+ // because the node can be an element node. See bug http://crbug.com/584939. |
+ TriState nodeState = triStateOfStyle(nodeStyle, EditingStyle::DoNotIgnoreTextOnlyProperties); |
if (nodeIsStart) { |
state = nodeState; |
nodeIsStart = false; |