| Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| index 4674b69cea107b7895200b7857cf66dcbe401b54..b578e7ac3c35b9dc58802d82561ef41414f6ccf6 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "core/HTMLNames.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ElementTraversal.h"
|
| +#include "core/dom/NodeComputedStyle.h"
|
| #include "core/dom/Range.h"
|
| #include "core/dom/Text.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| @@ -764,7 +765,7 @@ bool isEnclosingBlock(const Node* node)
|
|
|
| bool isInline(const Node* node)
|
| {
|
| - return node && node->layoutObject() && node->layoutObject()->isInline();
|
| + return node && node->computedStyle()->display() == INLINE;
|
| }
|
|
|
| // TODO(yosin) Deploy this in all of the places where |enclosingBlockFlow()| and
|
|
|