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

Unified Diff: sky/engine/core/rendering/style/RenderStyle.cpp

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland 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: sky/engine/core/rendering/style/RenderStyle.cpp
diff --git a/sky/engine/core/rendering/style/RenderStyle.cpp b/sky/engine/core/rendering/style/RenderStyle.cpp
index f98c66f386778c8ba9cc069dcd823319c3d76831..34fffeb10e8e8d774eecf2743695273aafa6df84 100644
--- a/sky/engine/core/rendering/style/RenderStyle.cpp
+++ b/sky/engine/core/rendering/style/RenderStyle.cpp
@@ -459,11 +459,6 @@ bool RenderStyle::diffNeedsPaintInvalidationLayer(const RenderStyle& other) cons
return true;
if (rareNonInheritedData.get() != other.rareNonInheritedData.get()) {
- if (RuntimeEnabledFeatures::cssCompositingEnabled()
- && (rareNonInheritedData->m_effectiveBlendMode != other.rareNonInheritedData->m_effectiveBlendMode
- || rareNonInheritedData->m_isolation != other.rareNonInheritedData->m_isolation))
- return true;
-
if (rareNonInheritedData->m_mask != other.rareNonInheritedData->m_mask
|| rareNonInheritedData->m_maskBoxImage != other.rareNonInheritedData->m_maskBoxImage)
return true;
@@ -558,46 +553,6 @@ void RenderStyle::clearCursorList()
rareInheritedData.access()->cursorData = nullptr;
}
-WebBlendMode RenderStyle::blendMode() const
-{
- if (RuntimeEnabledFeatures::cssCompositingEnabled())
- return static_cast<WebBlendMode>(rareNonInheritedData->m_effectiveBlendMode);
- return WebBlendModeNormal;
-}
-
-void RenderStyle::setBlendMode(WebBlendMode v)
-{
- if (RuntimeEnabledFeatures::cssCompositingEnabled())
- rareNonInheritedData.access()->m_effectiveBlendMode = v;
-}
-
-bool RenderStyle::hasBlendMode() const
-{
- if (RuntimeEnabledFeatures::cssCompositingEnabled())
- return static_cast<WebBlendMode>(rareNonInheritedData->m_effectiveBlendMode) != WebBlendModeNormal;
- return false;
-}
-
-EIsolation RenderStyle::isolation() const
-{
- if (RuntimeEnabledFeatures::cssCompositingEnabled())
- return static_cast<EIsolation>(rareNonInheritedData->m_isolation);
- return IsolationAuto;
-}
-
-void RenderStyle::setIsolation(EIsolation v)
-{
- if (RuntimeEnabledFeatures::cssCompositingEnabled())
- rareNonInheritedData.access()->m_isolation = v;
-}
-
-bool RenderStyle::hasIsolation() const
-{
- if (RuntimeEnabledFeatures::cssCompositingEnabled())
- return rareNonInheritedData->m_isolation != IsolationAuto;
- return false;
-}
-
bool RenderStyle::hasWillChangeCompositingHint() const
{
for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size(); ++i) {
« no previous file with comments | « sky/engine/core/rendering/style/RenderStyle.h ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698