Index: third_party/WebKit/Source/core/html/HTMLElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
index 5160f5997a47727687f9a980d6fa1c2a4fe33d7f..c65115f04480fb2aae2393bbd052934002cd2aa6 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
@@ -737,7 +737,8 @@ TextDirection HTMLElement::directionality(Node** strongDirectionalityTextNode) c |
while (node) { |
// Skip bdi, script, style and text form controls. |
if (equalIgnoringCase(node->nodeName(), "bdi") || isHTMLScriptElement(*node) || isHTMLStyleElement(*node) |
- || (node->isElementNode() && toElement(node)->isTextFormControl())) { |
+ || (node->isElementNode() && toElement(node)->isTextFormControl()) |
+ || (node->isElementNode() && toElement(node)->shadowPseudoId() == "-webkit-input-placeholder")) { |
node = FlatTreeTraversal::nextSkippingChildren(*node, this); |
continue; |
} |