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

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

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: Created 4 years 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 class CSSGradientValue : public CSSImageGeneratorValue { 86 class CSSGradientValue : public CSSImageGeneratorValue {
87 public: 87 public:
88 PassRefPtr<Image> image(const LayoutObject&, const IntSize&); 88 PassRefPtr<Image> image(const LayoutObject&, const IntSize&);
89 89
90 void setFirstX(CSSValue* val) { m_firstX = val; } 90 void setFirstX(CSSValue* val) { m_firstX = val; }
91 void setFirstY(CSSValue* val) { m_firstY = val; } 91 void setFirstY(CSSValue* val) { m_firstY = val; }
92 void setSecondX(CSSValue* val) { m_secondX = val; } 92 void setSecondX(CSSValue* val) { m_secondX = val; }
93 void setSecondY(CSSValue* val) { m_secondY = val; } 93 void setSecondY(CSSValue* val) { m_secondY = val; }
94 94
95 void addStop(const CSSGradientColorStop& stop) { m_stops.append(stop); } 95 void addStop(const CSSGradientColorStop& stop) { m_stops.push_back(stop); }
96 96
97 unsigned stopCount() const { return m_stops.size(); } 97 unsigned stopCount() const { return m_stops.size(); }
98 98
99 void appendCSSTextForDeprecatedColorStops(StringBuilder&) const; 99 void appendCSSTextForDeprecatedColorStops(StringBuilder&) const;
100 100
101 bool isRepeating() const { return m_repeating; } 101 bool isRepeating() const { return m_repeating; }
102 102
103 CSSGradientType gradientType() const { return m_gradientType; } 103 CSSGradientType gradientType() const { return m_gradientType; }
104 104
105 bool isFixedSize() const { return false; } 105 bool isFixedSize() const { return false; }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 Member<CSSPrimitiveValue> m_endHorizontalSize; 235 Member<CSSPrimitiveValue> m_endHorizontalSize;
236 Member<CSSPrimitiveValue> m_endVerticalSize; 236 Member<CSSPrimitiveValue> m_endVerticalSize;
237 }; 237 };
238 238
239 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue()); 239 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue());
240 240
241 } // namespace blink 241 } // namespace blink
242 242
243 #endif // CSSGradientValue_h 243 #endif // CSSGradientValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698