| Index: third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
|
| index 62cb5d271bf66d9b206742a4287b830a480765a5..55744194a91b3367c6812cd7113b299199b41e51 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
|
| @@ -40,16 +40,16 @@ class PLATFORM_EXPORT BeginFilterDisplayItem final
|
| void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
|
| #endif
|
| bool equals(const DisplayItem& other) const final {
|
| - return DisplayItem::equals(other)
|
| - // TODO(wangxianzhu): compare m_imageFilter and m_webFilterOperations.
|
| - &&
|
| - m_bounds ==
|
| - static_cast<const BeginFilterDisplayItem&>(other).m_bounds &&
|
| - m_origin ==
|
| - static_cast<const BeginFilterDisplayItem&>(other).m_origin;
|
| + // TODO(wangxianzhu): compare m_imageFilter and m_webFilterOperations.
|
| + const auto& other_display_item =
|
| + static_cast<const BeginFilterDisplayItem&>(other);
|
| + return DisplayItem::equals(other) &&
|
| + m_bounds == other_display_item.m_bounds &&
|
| + m_origin == other_display_item.m_origin;
|
| }
|
|
|
| - // FIXME: m_imageFilter should be replaced with m_webFilterOperations when copying data to the compositor.
|
| + // FIXME: m_imageFilter should be replaced with m_webFilterOperations when
|
| + // copying data to the compositor.
|
| sk_sp<SkImageFilter> m_imageFilter;
|
| CompositorFilterOperations m_compositorFilterOperations;
|
| const FloatRect m_bounds;
|
|
|