Index: third_party/WebKit/Source/core/editing/EditingStrategy.cpp |
diff --git a/third_party/WebKit/Source/core/editing/EditingStrategy.cpp b/third_party/WebKit/Source/core/editing/EditingStrategy.cpp |
index 181778c3f3c9f4979dda616202fe8d51ddc8a6e6..b85e35c2bfbc522f3b53d60f8733fcba6b115bac 100644 |
--- a/third_party/WebKit/Source/core/editing/EditingStrategy.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditingStrategy.cpp |
@@ -33,7 +33,7 @@ bool EditingAlgorithm<Traversal>::isEmptyNonEditableNodeInEditable(const Node* n |
// Flat Tree: |
// <host><div ce><span1>unedittable</span></div></host> |
// e.g. editing/shadow/breaking-editing-boundaries.html |
- return !Traversal::hasChildren(*node) && !node->hasEditableStyle() && node->parentNode() && node->parentNode()->hasEditableStyle(); |
+ return !Traversal::hasChildren(*node) && !hasEditableStyle(*node) && node->parentNode() && hasEditableStyle(*node->parentNode()); |
} |
template <typename Traversal> |