Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1533)

Unified Diff: Source/core/paint/TransparencyDisplayItem.h

Issue 743523005: Remove m_hasBlendMode from BeginTransparencyDisplayItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/TransparencyDisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/TransparencyDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698