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

Side by Side Diff: third_party/WebKit/Source/core/css/BasicShapeFunctions.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 5 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) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } else if (basic_shape_value.IsRayValue()) { 348 } else if (basic_shape_value.IsRayValue()) {
349 const CSSRayValue& ray_value = ToCSSRayValue(basic_shape_value); 349 const CSSRayValue& ray_value = ToCSSRayValue(basic_shape_value);
350 float angle = ray_value.Angle().ComputeDegrees(); 350 float angle = ray_value.Angle().ComputeDegrees();
351 StyleRay::RaySize size = KeywordToRaySize(ray_value.Size().GetValueID()); 351 StyleRay::RaySize size = KeywordToRaySize(ray_value.Size().GetValueID());
352 bool contain = !!ray_value.Contain(); 352 bool contain = !!ray_value.Contain();
353 basic_shape = StyleRay::Create(angle, size, contain); 353 basic_shape = StyleRay::Create(angle, size, contain);
354 } else { 354 } else {
355 NOTREACHED(); 355 NOTREACHED();
356 } 356 }
357 357
358 return basic_shape.Release(); 358 return basic_shape;
359 } 359 }
360 360
361 FloatPoint FloatPointForCenterCoordinate( 361 FloatPoint FloatPointForCenterCoordinate(
362 const BasicShapeCenterCoordinate& center_x, 362 const BasicShapeCenterCoordinate& center_x,
363 const BasicShapeCenterCoordinate& center_y, 363 const BasicShapeCenterCoordinate& center_y,
364 FloatSize box_size) { 364 FloatSize box_size) {
365 float x = FloatValueForLength(center_x.ComputedLength(), box_size.Width()); 365 float x = FloatValueForLength(center_x.ComputedLength(), box_size.Width());
366 float y = FloatValueForLength(center_y.ComputedLength(), box_size.Height()); 366 float y = FloatValueForLength(center_y.ComputedLength(), box_size.Height());
367 return FloatPoint(x, y); 367 return FloatPoint(x, y);
368 } 368 }
369 369
370 } // namespace blink 370 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/StringKeyframe.cpp ('k') | third_party/WebKit/Source/core/css/CSSFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698