| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 SVGNumberOptionalNumber::SVGNumberOptionalNumber(PassRefPtrWillBeRawPtr<SVGNumbe
r> firstNumber, PassRefPtrWillBeRawPtr<SVGNumber> secondNumber) | 39 SVGNumberOptionalNumber::SVGNumberOptionalNumber(PassRefPtrWillBeRawPtr<SVGNumbe
r> firstNumber, PassRefPtrWillBeRawPtr<SVGNumber> secondNumber) |
| 40 : SVGPropertyBase(classType()) | 40 : SVGPropertyBase(classType()) |
| 41 , m_firstNumber(firstNumber) | 41 , m_firstNumber(firstNumber) |
| 42 , m_secondNumber(secondNumber) | 42 , m_secondNumber(secondNumber) |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 void SVGNumberOptionalNumber::trace(Visitor* visitor) | 46 DEFINE_TRACE(SVGNumberOptionalNumber) |
| 47 { | 47 { |
| 48 visitor->trace(m_firstNumber); | 48 visitor->trace(m_firstNumber); |
| 49 visitor->trace(m_secondNumber); | 49 visitor->trace(m_secondNumber); |
| 50 SVGPropertyBase::trace(visitor); | 50 SVGPropertyBase::trace(visitor); |
| 51 } | 51 } |
| 52 | 52 |
| 53 PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> SVGNumberOptionalNumber::clone()
const | 53 PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> SVGNumberOptionalNumber::clone()
const |
| 54 { | 54 { |
| 55 return SVGNumberOptionalNumber::create(m_firstNumber->clone(), m_secondNumbe
r->clone()); | 55 return SVGNumberOptionalNumber::create(m_firstNumber->clone(), m_secondNumbe
r->clone()); |
| 56 } | 56 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 m_secondNumber->setValue(y); | 110 m_secondNumber->setValue(y); |
| 111 } | 111 } |
| 112 | 112 |
| 113 float SVGNumberOptionalNumber::calculateDistance(PassRefPtrWillBeRawPtr<SVGPrope
rtyBase> other, SVGElement*) | 113 float SVGNumberOptionalNumber::calculateDistance(PassRefPtrWillBeRawPtr<SVGPrope
rtyBase> other, SVGElement*) |
| 114 { | 114 { |
| 115 // FIXME: Distance calculation is not possible for SVGNumberOptionalNumber r
ight now. We need the distance for every single value. | 115 // FIXME: Distance calculation is not possible for SVGNumberOptionalNumber r
ight now. We need the distance for every single value. |
| 116 return -1; | 116 return -1; |
| 117 } | 117 } |
| 118 | 118 |
| 119 } | 119 } |
| OLD | NEW |