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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSGradientValue.h

Issue 2754703003: Remove Gradient point/radius setters (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSGradientValue.cpp » ('j') | 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 bool isPending() const { return false; } 108 bool isPending() const { return false; }
109 bool knownToBeOpaque(const LayoutObject&) const; 109 bool knownToBeOpaque(const LayoutObject&) const;
110 110
111 void loadSubimages(const Document&) {} 111 void loadSubimages(const Document&) {}
112 112
113 void getStopColors(Vector<Color>& stopColors, const LayoutObject&) const; 113 void getStopColors(Vector<Color>& stopColors, const LayoutObject&) const;
114 114
115 DECLARE_TRACE_AFTER_DISPATCH(); 115 DECLARE_TRACE_AFTER_DISPATCH();
116 116
117 struct GradientDesc;
118
117 protected: 119 protected:
118 CSSGradientValue(ClassType classType, 120 CSSGradientValue(ClassType classType,
119 CSSGradientRepeat repeat, 121 CSSGradientRepeat repeat,
120 CSSGradientType gradientType) 122 CSSGradientType gradientType)
121 : CSSImageGeneratorValue(classType), 123 : CSSImageGeneratorValue(classType),
122 m_stopsSorted(false), 124 m_stopsSorted(false),
123 m_gradientType(gradientType), 125 m_gradientType(gradientType),
124 m_repeating(repeat == Repeating) {} 126 m_repeating(repeat == Repeating) {}
125 127
126 void addStops(Gradient*, 128 void addStops(GradientDesc&,
127 const CSSToLengthConversionData&, 129 const CSSToLengthConversionData&,
128 const LayoutObject&); 130 const LayoutObject&);
129 void addDeprecatedStops(Gradient*, const LayoutObject&); 131 void addDeprecatedStops(GradientDesc&, const LayoutObject&);
130 132
131 // Resolve points/radii to front end values. 133 // Resolve points/radii to front end values.
132 FloatPoint computeEndPoint(CSSValue*, 134 FloatPoint computeEndPoint(CSSValue*,
133 CSSValue*, 135 CSSValue*,
134 const CSSToLengthConversionData&, 136 const CSSToLengthConversionData&,
135 const IntSize&); 137 const IntSize&);
136 138
137 bool isCacheable() const; 139 bool isCacheable() const;
138 140
139 // Points. Some of these may be null. 141 // Points. Some of these may be null.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 236
235 Member<CSSPrimitiveValue> m_endHorizontalSize; 237 Member<CSSPrimitiveValue> m_endHorizontalSize;
236 Member<CSSPrimitiveValue> m_endVerticalSize; 238 Member<CSSPrimitiveValue> m_endVerticalSize;
237 }; 239 };
238 240
239 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue()); 241 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue());
240 242
241 } // namespace blink 243 } // namespace blink
242 244
243 #endif // CSSGradientValue_h 245 #endif // CSSGradientValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698