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

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

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some small fixes to (hopefully) fix some broken tests Created 5 years, 6 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
Timothy Loh 2015/06/02 04:54:02 OK, but you're going to have to make CSSBasicShape
sashab 2015/06/05 06:16:28 Yup; planning on doing all the primitive values et
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698