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

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

Issue 1731583003: blink: Rename enums and functions to not collide with chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-2: . Created 4 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
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 m_values.append(x); 108 m_values.append(x);
109 m_values.append(y); 109 m_values.append(y);
110 } 110 }
111 111
112 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getXAt(unsigned i) const { return m_values.at(i * 2); } 112 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getXAt(unsigned i) const { return m_values.at(i * 2); }
113 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getYAt(unsigned i) const { return m_values.at(i * 2 + 1); } 113 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> getYAt(unsigned i) const { return m_values.at(i * 2 + 1); }
114 const WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>>& values() cons t { return m_values; } 114 const WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>>& values() cons t { return m_values; }
115 115
116 // TODO(sashab): Remove this and pass it as an argument in the constructor. 116 // TODO(sashab): Remove this and pass it as an argument in the constructor.
117 void setWindRule(WindRule w) { m_windRule = w; } 117 void setWindRule(WindRule w) { m_windRule = w; }
118 WindRule windRule() const { return m_windRule; } 118 WindRule getWindRule() const { return m_windRule; }
119 119
120 String customCSSText() const; 120 String customCSSText() const;
121 bool equals(const CSSBasicShapePolygonValue&) const; 121 bool equals(const CSSBasicShapePolygonValue&) const;
122 122
123 DECLARE_TRACE_AFTER_DISPATCH(); 123 DECLARE_TRACE_AFTER_DISPATCH();
124 124
125 private: 125 private:
126 CSSBasicShapePolygonValue() 126 CSSBasicShapePolygonValue()
127 : CSSValue(BasicShapePolygonClass), 127 : CSSValue(BasicShapePolygonClass),
128 m_windRule(RULE_NONZERO) 128 m_windRule(RULE_NONZERO)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 }; 202 };
203 203
204 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapeCircleValue, isBasicShapeCircleValue()) ; 204 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapeCircleValue, isBasicShapeCircleValue()) ;
205 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapeEllipseValue, isBasicShapeEllipseValue( )); 205 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapeEllipseValue, isBasicShapeEllipseValue( ));
206 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapePolygonValue, isBasicShapePolygonValue( )); 206 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapePolygonValue, isBasicShapePolygonValue( ));
207 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapeInsetValue, isBasicShapeInsetValue()); 207 DEFINE_CSS_VALUE_TYPE_CASTS(CSSBasicShapeInsetValue, isBasicShapeInsetValue());
208 208
209 } // namespace blink 209 } // namespace blink
210 210
211 #endif // CSSBasicShapeValues_h 211 #endif // CSSBasicShapeValues_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp ('k') | third_party/WebKit/Source/core/css/CSSQuadValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698