Index: third_party/WebKit/Source/core/layout/LayoutObject.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h |
index 7639581fac045c8ef152e026ee66a7ce8a48018a..a4c4c732d081f0f14ffeb23478ac242683b1e23f 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h |
@@ -712,8 +712,9 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver, |
// LayoutBlock having a BLOCK or BOX display. Other classes such as |
// LayoutTextFragment are not LayoutBlocks and will return false. |
// See https://bugs.webkit.org/show_bug.cgi?id=56709. |
- return isAnonymous() && (style()->display() == EDisplay::Block || |
- style()->display() == EDisplay::WebkitBox) && |
+ return isAnonymous() && |
+ (style()->display() == EDisplay::Block || |
+ style()->display() == EDisplay::WebkitBox) && |
style()->styleType() == PseudoIdNone && isLayoutBlock() && |
!isListMarker() && !isLayoutFlowThread() && |
!isLayoutMultiColumnSet() && !isLayoutFullScreen() && |