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

Side by Side Diff: Source/core/rendering/style/RenderStyle.cpp

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 void RenderStyle::setContent(QuoteType quote, bool add) 824 void RenderStyle::setContent(QuoteType quote, bool add)
825 { 825 {
826 if (add) { 826 if (add) {
827 appendContent(ContentData::create(quote)); 827 appendContent(ContentData::create(quote));
828 return; 828 return;
829 } 829 }
830 830
831 rareNonInheritedData.access()->m_content = ContentData::create(quote); 831 rareNonInheritedData.access()->m_content = ContentData::create(quote);
832 } 832 }
833 833
834 WebBlendMode RenderStyle::blendMode() const
835 {
836 if (RuntimeEnabledFeatures::cssCompositingEnabled())
837 return static_cast<WebBlendMode>(rareNonInheritedData->m_effectiveBlendM ode);
838 return WebBlendModeNormal;
839 }
840
841 void RenderStyle::setBlendMode(WebBlendMode v)
842 {
843 if (RuntimeEnabledFeatures::cssCompositingEnabled())
844 rareNonInheritedData.access()->m_effectiveBlendMode = v;
845 }
846
847 bool RenderStyle::hasBlendMode() const
848 {
849 if (RuntimeEnabledFeatures::cssCompositingEnabled())
850 return static_cast<WebBlendMode>(rareNonInheritedData->m_effectiveBlendM ode) != WebBlendModeNormal;
851 return false;
852 }
853
854 EIsolation RenderStyle::isolation() const
855 {
856 if (RuntimeEnabledFeatures::cssCompositingEnabled())
857 return static_cast<EIsolation>(rareNonInheritedData->m_isolation);
858 return IsolationAuto;
859 }
860
861 void RenderStyle::setIsolation(EIsolation v)
862 {
863 if (RuntimeEnabledFeatures::cssCompositingEnabled())
864 rareNonInheritedData.access()->m_isolation = v;
865 }
866
867 bool RenderStyle::hasIsolation() const
868 {
869 if (RuntimeEnabledFeatures::cssCompositingEnabled())
870 return rareNonInheritedData->m_isolation != IsolationAuto;
871 return false;
872 }
873
874 bool RenderStyle::hasWillChangeCompositingHint() const 834 bool RenderStyle::hasWillChangeCompositingHint() const
875 { 835 {
876 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size (); ++i) { 836 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size (); ++i) {
877 switch (rareNonInheritedData->m_willChange->m_properties[i]) { 837 switch (rareNonInheritedData->m_willChange->m_properties[i]) {
878 case CSSPropertyOpacity: 838 case CSSPropertyOpacity:
879 case CSSPropertyTransform: 839 case CSSPropertyTransform:
880 case CSSPropertyWebkitTransform: 840 case CSSPropertyWebkitTransform:
881 case CSSPropertyTop: 841 case CSSPropertyTop:
882 case CSSPropertyLeft: 842 case CSSPropertyLeft:
883 case CSSPropertyBottom: 843 case CSSPropertyBottom:
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1755 horizontal || includeLogicalRightEdge); 1715 horizontal || includeLogicalRightEdge);
1756 1716
1757 edges[BSLeft] = BorderEdge(borderLeftWidth(), 1717 edges[BSLeft] = BorderEdge(borderLeftWidth(),
1758 visitedDependentColor(CSSPropertyBorderLeftColor), 1718 visitedDependentColor(CSSPropertyBorderLeftColor),
1759 borderLeftStyle(), 1719 borderLeftStyle(),
1760 borderLeftIsTransparent(), 1720 borderLeftIsTransparent(),
1761 !horizontal || includeLogicalLeftEdge); 1721 !horizontal || includeLogicalLeftEdge);
1762 } 1722 }
1763 1723
1764 } // namespace blink 1724 } // namespace blink
OLDNEW
« Source/core/rendering/RenderObject.h ('K') | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698