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