Index: Source/core/paint/TransparencyDisplayItem.h |
diff --git a/Source/core/paint/TransparencyDisplayItem.h b/Source/core/paint/TransparencyDisplayItem.h |
index dc87c5b2cdf67da845dfe1d4217c6c20c9d8bf78..290d916f0d37c830bc8643a72329522ab380c8fd 100644 |
--- a/Source/core/paint/TransparencyDisplayItem.h |
+++ b/Source/core/paint/TransparencyDisplayItem.h |
@@ -13,22 +13,21 @@ namespace blink { |
class BeginTransparencyDisplayItem : public DisplayItem { |
public: |
- BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const LayoutRect& clipRect, bool hasBlendMode, const WebBlendMode& blendMode, const float opacity) |
+ BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const LayoutRect& clipRect, const WebBlendMode& blendMode, const float opacity) |
: DisplayItem(renderer, type) |
, m_clipRect(clipRect) |
- , m_hasBlendMode(hasBlendMode) |
, m_blendMode(blendMode) |
, m_opacity(opacity) { } |
virtual void replay(GraphicsContext*) override; |
private: |
- |
#ifndef NDEBUG |
virtual WTF::String asDebugString() const override; |
#endif |
+ bool hasBlendMode() const { return m_blendMode != WebBlendModeNormal; } |
+ |
const LayoutRect m_clipRect; |
- const bool m_hasBlendMode; |
const WebBlendMode m_blendMode; |
const float m_opacity; |
}; |