OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |