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

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

Issue 310623002: Remove unused mask and background methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 bool setEffectiveZoom(float); 1125 bool setEffectiveZoom(float);
1126 1126
1127 void setImageRendering(EImageRendering v) { SET_VAR(rareInheritedData, m_ima geRendering, v); } 1127 void setImageRendering(EImageRendering v) { SET_VAR(rareInheritedData, m_ima geRendering, v); }
1128 1128
1129 void setWhiteSpace(EWhiteSpace v) { inherited_flags._white_space = v; } 1129 void setWhiteSpace(EWhiteSpace v) { inherited_flags._white_space = v; }
1130 1130
1131 // FIXME: Remove these two and replace them with respective FontBuilder call s. 1131 // FIXME: Remove these two and replace them with respective FontBuilder call s.
1132 void setWordSpacing(float); 1132 void setWordSpacing(float);
1133 void setLetterSpacing(float); 1133 void setLetterSpacing(float);
1134 1134
1135 void clearBackgroundLayers() { m_background.access()->m_background = FillLay er(BackgroundFillLayer); }
1136 void inheritBackgroundLayers(const FillLayer& parent) { m_background.access( )->m_background = parent; }
1137
1138 void adjustBackgroundLayers() 1135 void adjustBackgroundLayers()
1139 { 1136 {
1140 if (backgroundLayers()->next()) { 1137 if (backgroundLayers()->next()) {
1141 accessBackgroundLayers()->cullEmptyLayers(); 1138 accessBackgroundLayers()->cullEmptyLayers();
1142 accessBackgroundLayers()->fillUnsetProperties(); 1139 accessBackgroundLayers()->fillUnsetProperties();
1143 } 1140 }
1144 } 1141 }
1145 1142
1146 void clearMaskLayers() { rareNonInheritedData.access()->m_mask = FillLayer(M askFillLayer); }
1147 void inheritMaskLayers(const FillLayer& parent) { rareNonInheritedData.acces s()->m_mask = parent; }
1148
1149 void adjustMaskLayers() 1143 void adjustMaskLayers()
1150 { 1144 {
1151 if (maskLayers()->next()) { 1145 if (maskLayers()->next()) {
1152 accessMaskLayers()->cullEmptyLayers(); 1146 accessMaskLayers()->cullEmptyLayers();
1153 accessMaskLayers()->fillUnsetProperties(); 1147 accessMaskLayers()->fillUnsetProperties();
1154 } 1148 }
1155 } 1149 }
1156 1150
1157 void setMaskImage(PassRefPtr<StyleImage> v) { rareNonInheritedData.access()- >m_mask.setImage(v); } 1151 void setMaskImage(PassRefPtr<StyleImage> v) { rareNonInheritedData.access()- >m_mask.setImage(v); }
1158 1152
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 inline bool RenderStyle::hasPseudoElementStyle() const 1876 inline bool RenderStyle::hasPseudoElementStyle() const
1883 { 1877 {
1884 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1878 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1885 } 1879 }
1886 1880
1887 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1881 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1888 1882
1889 } // namespace WebCore 1883 } // namespace WebCore
1890 1884
1891 #endif // RenderStyle_h 1885 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698