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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/clipboard/DataTransferItemList.cpp ('k') | Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 switch (radius.type()) { 68 switch (radius.type()) {
69 case BasicShapeRadius::Value: 69 case BasicShapeRadius::Value:
70 return pool.createValue(radius.value(), style); 70 return pool.createValue(radius.value(), style);
71 case BasicShapeRadius::ClosestSide: 71 case BasicShapeRadius::ClosestSide:
72 return pool.createIdentifierValue(CSSValueClosestSide); 72 return pool.createIdentifierValue(CSSValueClosestSide);
73 case BasicShapeRadius::FarthestSide: 73 case BasicShapeRadius::FarthestSide:
74 return pool.createIdentifierValue(CSSValueFarthestSide); 74 return pool.createIdentifierValue(CSSValueFarthestSide);
75 } 75 }
76 76
77 ASSERT_NOT_REACHED(); 77 ASSERT_NOT_REACHED();
78 return 0; 78 return nullptr;
79 } 79 }
80 80
81 PassRefPtrWillBeRawPtr<CSSValue> valueForBasicShape(const RenderStyle& style, co nst BasicShape* basicShape) 81 PassRefPtrWillBeRawPtr<CSSValue> valueForBasicShape(const RenderStyle& style, co nst BasicShape* basicShape)
82 { 82 {
83 CSSValuePool& pool = cssValuePool(); 83 CSSValuePool& pool = cssValuePool();
84 84
85 RefPtrWillBeRawPtr<CSSBasicShape> basicShapeValue; 85 RefPtrWillBeRawPtr<CSSBasicShape> basicShapeValue;
86 switch (basicShape->type()) { 86 switch (basicShape->type()) {
87 case BasicShape::BasicShapeRectangleType: { 87 case BasicShape::BasicShapeRectangleType: {
88 const BasicShapeRectangle* rectangle = static_cast<const BasicShapeRecta ngle*>(basicShape); 88 const BasicShapeRectangle* rectangle = static_cast<const BasicShapeRecta ngle*>(basicShape);
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 p.setY(boxSize.height() - offset); 428 p.setY(boxSize.height() - offset);
429 break; 429 break;
430 default: 430 default:
431 ASSERT_NOT_REACHED(); 431 ASSERT_NOT_REACHED();
432 } 432 }
433 433
434 return p; 434 return p;
435 } 435 }
436 436
437 } 437 }
OLDNEW
« no previous file with comments | « Source/core/clipboard/DataTransferItemList.cpp ('k') | Source/core/css/CSSCalculationValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698