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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti ngMode(writingMode()); } 936 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti ngMode(writingMode()); }
937 937
938 EImageRendering imageRendering() const { return static_cast<EImageRendering> (rareInheritedData->m_imageRendering); } 938 EImageRendering imageRendering() const { return static_cast<EImageRendering> (rareInheritedData->m_imageRendering); }
939 939
940 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak); } 940 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak); }
941 941
942 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_ filter.access()->m_operations; } 942 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_ filter.access()->m_operations; }
943 const FilterOperations& filter() const { return rareNonInheritedData->m_filt er->m_operations; } 943 const FilterOperations& filter() const { return rareNonInheritedData->m_filt er->m_operations; }
944 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation s.operations().isEmpty(); } 944 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation s.operations().isEmpty(); }
945 945
946 WebBlendMode blendMode() const; 946 WebBlendMode blendMode() const { return static_cast<WebBlendMode>(rareNonInh eritedData->m_effectiveBlendMode); }
947 void setBlendMode(WebBlendMode v); 947 void setBlendMode(WebBlendMode v) { rareNonInheritedData.access()->m_effecti veBlendMode = v; }
948 bool hasBlendMode() const; 948 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; }
949 949
950 EIsolation isolation() const; 950 EIsolation isolation() const { return static_cast<EIsolation>(rareNonInherit edData->m_isolation); }
951 void setIsolation(EIsolation v); 951 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation = v; }
952 bool hasIsolation() const; 952 bool hasIsolation() const { return isolation() != IsolationAuto; }
953 953
954 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef tToRightDirection() && isHorizontalWritingMode(); } 954 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef tToRightDirection() && isHorizontalWritingMode(); }
955 955
956 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); } 956 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); }
957 957
958 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); } 958 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); }
959 ScrollBlocksOn scrollBlocksOn() const { return static_cast<ScrollBlocksOn>(r areNonInheritedData->m_scrollBlocksOn); } 959 ScrollBlocksOn scrollBlocksOn() const { return static_cast<ScrollBlocksOn>(r areNonInheritedData->m_scrollBlocksOn); }
960 960
961 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; } 961 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; }
962 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; } 962 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; }
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 inline bool RenderStyle::hasPseudoElementStyle() const 1897 inline bool RenderStyle::hasPseudoElementStyle() const
1898 { 1898 {
1899 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1899 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1900 } 1900 }
1901 1901
1902 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1902 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1903 1903
1904 } // namespace blink 1904 } // namespace blink
1905 1905
1906 #endif // RenderStyle_h 1906 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698