| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 floatSizeForLengthSize(m_topRightRadius, boundingBox), | 398 floatSizeForLengthSize(m_topRightRadius, boundingBox), |
| 399 floatSizeForLengthSize(m_bottomLeftRadius, boundingBox), | 399 floatSizeForLengthSize(m_bottomLeftRadius, boundingBox), |
| 400 floatSizeForLengthSize(m_bottomRightRadius, boundingBox) | 400 floatSizeForLengthSize(m_bottomRightRadius, boundingBox) |
| 401 ); | 401 ); |
| 402 } | 402 } |
| 403 | 403 |
| 404 PassRefPtr<BasicShape> BasicShapeInset::blend(const BasicShape* other, double) c
onst | 404 PassRefPtr<BasicShape> BasicShapeInset::blend(const BasicShape* other, double) c
onst |
| 405 { | 405 { |
| 406 ASSERT(type() == other->type()); | 406 ASSERT(type() == other->type()); |
| 407 // FIXME: Implement blend for BasicShapeInset. | 407 // FIXME: Implement blend for BasicShapeInset. |
| 408 return 0; | 408 return nullptr; |
| 409 } | 409 } |
| 410 | 410 |
| 411 bool BasicShapeInset::operator==(const BasicShape& o) const | 411 bool BasicShapeInset::operator==(const BasicShape& o) const |
| 412 { | 412 { |
| 413 if (!isSameType(o)) | 413 if (!isSameType(o)) |
| 414 return false; | 414 return false; |
| 415 const BasicShapeInset& other = toBasicShapeInset(o); | 415 const BasicShapeInset& other = toBasicShapeInset(o); |
| 416 return m_right == other.m_right | 416 return m_right == other.m_right |
| 417 && m_top == other.m_top | 417 && m_top == other.m_top |
| 418 && m_bottom == other.m_bottom | 418 && m_bottom == other.m_bottom |
| 419 && m_left == other.m_left | 419 && m_left == other.m_left |
| 420 && m_topLeftRadius == other.m_topLeftRadius | 420 && m_topLeftRadius == other.m_topLeftRadius |
| 421 && m_topRightRadius == other.m_topRightRadius | 421 && m_topRightRadius == other.m_topRightRadius |
| 422 && m_bottomRightRadius == other.m_bottomRightRadius | 422 && m_bottomRightRadius == other.m_bottomRightRadius |
| 423 && m_bottomLeftRadius == other.m_bottomLeftRadius; | 423 && m_bottomLeftRadius == other.m_bottomLeftRadius; |
| 424 } | 424 } |
| 425 | 425 |
| 426 } | 426 } |
| OLD | NEW |