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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 bool CSSBasicShapePolygon::equals(const CSSBasicShape& shape) const | 286 bool CSSBasicShapePolygon::equals(const CSSBasicShape& shape) const |
287 { | 287 { |
288 if (shape.type() != CSSBasicShapePolygonType) | 288 if (shape.type() != CSSBasicShapePolygonType) |
289 return false; | 289 return false; |
290 | 290 |
291 const CSSBasicShapePolygon& rhs = toCSSBasicShapePolygon(shape); | 291 const CSSBasicShapePolygon& rhs = toCSSBasicShapePolygon(shape); |
292 | 292 |
293 if (!compareCSSValuePtr(m_referenceBox, rhs.m_referenceBox)) | 293 if (!compareCSSValuePtr(m_referenceBox, rhs.m_referenceBox)) |
294 return false; | 294 return false; |
295 | 295 |
296 return compareCSSValueVector(m_values, rhs.m_values); | 296 return compareCSSValueObjectVector(m_values, rhs.m_values); |
297 } | 297 } |
298 | 298 |
299 DEFINE_TRACE(CSSBasicShapePolygon) | 299 DEFINE_TRACE(CSSBasicShapePolygon) |
300 { | 300 { |
301 visitor->trace(m_values); | 301 visitor->trace(m_values); |
302 CSSBasicShape::trace(visitor); | 302 CSSBasicShape::trace(visitor); |
303 } | 303 } |
304 | 304 |
305 static bool buildInsetRadii(Vector<String> &radii, const String& topLeftRadius,
const String& topRightRadius, const String& bottomRightRadius, const String& bot
tomLeftRadius) | 305 static bool buildInsetRadii(Vector<String> &radii, const String& topLeftRadius,
const String& topRightRadius, const String& bottomRightRadius, const String& bot
tomLeftRadius) |
306 { | 306 { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 visitor->trace(m_left); | 443 visitor->trace(m_left); |
444 visitor->trace(m_topLeftRadius); | 444 visitor->trace(m_topLeftRadius); |
445 visitor->trace(m_topRightRadius); | 445 visitor->trace(m_topRightRadius); |
446 visitor->trace(m_bottomRightRadius); | 446 visitor->trace(m_bottomRightRadius); |
447 visitor->trace(m_bottomLeftRadius); | 447 visitor->trace(m_bottomLeftRadius); |
448 CSSBasicShape::trace(visitor); | 448 CSSBasicShape::trace(visitor); |
449 } | 449 } |
450 | 450 |
451 } // namespace blink | 451 } // namespace blink |
452 | 452 |
OLD | NEW |