Index: third_party/WebKit/Source/core/layout/LayoutReplaced.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.h b/third_party/WebKit/Source/core/layout/LayoutReplaced.h |
index 18e8e1507ecd4309baa0c9ceae2067ba0c181d19..61f8c003cc8c59cf0a649e2d50ced7e1238337f6 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutReplaced.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.h |
@@ -141,6 +141,10 @@ class CORE_EXPORT LayoutReplaced : public LayoutBox { |
PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
+ bool isOfType(LayoutObjectType type) const override { |
+ return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type); |
+ } |
+ |
private: |
void computePreferredLogicalWidths() final; |