| Index: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| index 4b46d35d52eb7e2762b9b238d44b80958d8209ff..b54f6e5256193ade0ef6898e4431a6180052c671 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
|
| @@ -550,8 +550,10 @@ void ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock(Node* node, HTMLElemen
|
| static HTMLElement* highestEmbeddingAncestor(Node* startNode, Node* enclosingNode)
|
| {
|
| for (Node* n = startNode; n && n != enclosingNode; n = n->parentNode()) {
|
| - if (n->isHTMLElement() && getIdentifierValue(CSSComputedStyleDeclaration::create(n).get(), CSSPropertyUnicodeBidi) == CSSValueEmbed)
|
| + if (n->isHTMLElement()
|
| + && EditingStyle::isEmbedOrIsolate(getIdentifierValue(CSSComputedStyleDeclaration::create(n).get(), CSSPropertyUnicodeBidi))) {
|
| return toHTMLElement(n);
|
| + }
|
| }
|
|
|
| return 0;
|
|
|