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

Side by Side Diff: Source/core/css/CSSBasicShapes.h

Issue 989173003: Fix template angle bracket syntax in css (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/core/css/BasicShapeFunctions.cpp ('k') | Source/core/css/CSSFontFace.h » ('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) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 static PassRefPtrWillBeRawPtr<CSSBasicShapePolygon> create() { return adoptR efWillBeNoop(new CSSBasicShapePolygon); } 129 static PassRefPtrWillBeRawPtr<CSSBasicShapePolygon> create() { return adoptR efWillBeNoop(new CSSBasicShapePolygon); }
130 130
131 void appendPoint(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> x, PassRefPtrWill BeRawPtr<CSSPrimitiveValue> y) 131 void appendPoint(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> x, PassRefPtrWill BeRawPtr<CSSPrimitiveValue> y)
132 { 132 {
133 m_values.append(x); 133 m_values.append(x);
134 m_values.append(y); 134 m_values.append(y);
135 } 135 }
136 136
137 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getXAt(unsigned i) const { return m_values.at(i * 2); } 137 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getXAt(unsigned i) const { return m_values.at(i * 2); }
138 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getYAt(unsigned i) const { return m_values.at(i * 2 + 1); } 138 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getYAt(unsigned i) const { return m_values.at(i * 2 + 1); }
139 const WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue> >& values() con st { return m_values; } 139 const WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>>& values() cons t { return m_values; }
140 140
141 void setWindRule(WindRule w) { m_windRule = w; } 141 void setWindRule(WindRule w) { m_windRule = w; }
142 WindRule windRule() const { return m_windRule; } 142 WindRule windRule() const { return m_windRule; }
143 143
144 virtual String cssText() const override; 144 virtual String cssText() const override;
145 virtual bool equals(const CSSBasicShape&) const override; 145 virtual bool equals(const CSSBasicShape&) const override;
146 146
147 DECLARE_VIRTUAL_TRACE(); 147 DECLARE_VIRTUAL_TRACE();
148 148
149 private: 149 private:
150 CSSBasicShapePolygon() 150 CSSBasicShapePolygon()
151 : m_windRule(RULE_NONZERO) 151 : m_windRule(RULE_NONZERO)
152 { 152 {
153 } 153 }
154 154
155 virtual Type type() const override { return CSSBasicShapePolygonType; } 155 virtual Type type() const override { return CSSBasicShapePolygonType; }
156 156
157 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue> > m_values; 157 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>> m_values;
158 WindRule m_windRule; 158 WindRule m_windRule;
159 }; 159 };
160 160
161 class CSSBasicShapeInset final : public CSSBasicShape { 161 class CSSBasicShapeInset final : public CSSBasicShape {
162 public: 162 public:
163 static PassRefPtrWillBeRawPtr<CSSBasicShapeInset> create() { return adoptRef WillBeNoop(new CSSBasicShapeInset); } 163 static PassRefPtrWillBeRawPtr<CSSBasicShapeInset> create() { return adoptRef WillBeNoop(new CSSBasicShapeInset); }
164 164
165 CSSPrimitiveValue* top() const { return m_top.get(); } 165 CSSPrimitiveValue* top() const { return m_top.get(); }
166 CSSPrimitiveValue* right() const { return m_right.get(); } 166 CSSPrimitiveValue* right() const { return m_right.get(); }
167 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } 167 CSSPrimitiveValue* bottom() const { return m_bottom.get(); }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 }; 228 };
229 229
230 DEFINE_TYPE_CASTS(CSSBasicShapeCircle, CSSBasicShape, shape, shape->isCircle(), shape.isCircle()); 230 DEFINE_TYPE_CASTS(CSSBasicShapeCircle, CSSBasicShape, shape, shape->isCircle(), shape.isCircle());
231 DEFINE_TYPE_CASTS(CSSBasicShapeEllipse, CSSBasicShape, shape, shape->isEllipse() , shape.isEllipse()); 231 DEFINE_TYPE_CASTS(CSSBasicShapeEllipse, CSSBasicShape, shape, shape->isEllipse() , shape.isEllipse());
232 DEFINE_TYPE_CASTS(CSSBasicShapePolygon, CSSBasicShape, shape, shape->isPolygon() , shape.isPolygon()); 232 DEFINE_TYPE_CASTS(CSSBasicShapePolygon, CSSBasicShape, shape, shape->isPolygon() , shape.isPolygon());
233 DEFINE_TYPE_CASTS(CSSBasicShapeInset, CSSBasicShape, shape, shape->isInset(), sh ape.isInset()); 233 DEFINE_TYPE_CASTS(CSSBasicShapeInset, CSSBasicShape, shape, shape->isInset(), sh ape.isInset());
234 234
235 } // namespace blink 235 } // namespace blink
236 236
237 #endif // CSSBasicShapes_h 237 #endif // CSSBasicShapes_h
OLDNEW
« no previous file with comments | « Source/core/css/BasicShapeFunctions.cpp ('k') | Source/core/css/CSSFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698