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

Unified Diff: Source/core/rendering/style/RenderStyle.h

Issue 746163002: Drop RenderObject::hasBlendMode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index c726d39bd9fef5e1c1d9a33c63140de738b6288b..e4bef6668db14688796d60a4eda5f401caa97426 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -943,13 +943,13 @@ public:
const FilterOperations& filter() const { return rareNonInheritedData->m_filter->m_operations; }
bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operations.operations().isEmpty(); }
- WebBlendMode blendMode() const;
- void setBlendMode(WebBlendMode v);
- bool hasBlendMode() const;
+ WebBlendMode blendMode() const { return static_cast<WebBlendMode>(rareNonInheritedData->m_effectiveBlendMode); }
+ void setBlendMode(WebBlendMode v) { rareNonInheritedData.access()->m_effectiveBlendMode = v; }
+ bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; }
- EIsolation isolation() const;
- void setIsolation(EIsolation v);
- bool hasIsolation() const;
+ EIsolation isolation() const { return static_cast<EIsolation>(rareNonInheritedData->m_isolation); }
+ void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation = v; }
+ bool hasIsolation() const { return isolation() != IsolationAuto; }
bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLeftToRightDirection() && isHorizontalWritingMode(); }

Powered by Google App Engine
This is Rietveld 408576698