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 SVGIntegerOptionalInteger::SVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGI
nteger> firstInteger, PassRefPtrWillBeRawPtr<SVGInteger> secondInteger) | 39 SVGIntegerOptionalInteger::SVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGI
nteger> firstInteger, PassRefPtrWillBeRawPtr<SVGInteger> secondInteger) |
40 : SVGPropertyBase(classType()) | 40 : SVGPropertyBase(classType()) |
41 , m_firstInteger(firstInteger) | 41 , m_firstInteger(firstInteger) |
42 , m_secondInteger(secondInteger) | 42 , m_secondInteger(secondInteger) |
43 { | 43 { |
44 } | 44 } |
45 | 45 |
46 void SVGIntegerOptionalInteger::trace(Visitor* visitor) | 46 DEFINE_TRACE(SVGIntegerOptionalInteger) |
47 { | 47 { |
48 visitor->trace(m_firstInteger); | 48 visitor->trace(m_firstInteger); |
49 visitor->trace(m_secondInteger); | 49 visitor->trace(m_secondInteger); |
50 SVGPropertyBase::trace(visitor); | 50 SVGPropertyBase::trace(visitor); |
51 } | 51 } |
52 | 52 |
53 PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> SVGIntegerOptionalInteger::clo
ne() const | 53 PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> SVGIntegerOptionalInteger::clo
ne() const |
54 { | 54 { |
55 return SVGIntegerOptionalInteger::create(m_firstInteger->clone(), m_secondIn
teger->clone()); | 55 return SVGIntegerOptionalInteger::create(m_firstInteger->clone(), m_secondIn
teger->clone()); |
56 } | 56 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 m_secondInteger->setValue(static_cast<int>(roundf(y))); | 113 m_secondInteger->setValue(static_cast<int>(roundf(y))); |
114 } | 114 } |
115 | 115 |
116 float SVGIntegerOptionalInteger::calculateDistance(PassRefPtrWillBeRawPtr<SVGPro
pertyBase> other, SVGElement*) | 116 float SVGIntegerOptionalInteger::calculateDistance(PassRefPtrWillBeRawPtr<SVGPro
pertyBase> other, SVGElement*) |
117 { | 117 { |
118 // FIXME: Distance calculation is not possible for SVGIntegerOptionalInteger
right now. We need the distance for every single value. | 118 // FIXME: Distance calculation is not possible for SVGIntegerOptionalInteger
right now. We need the distance for every single value. |
119 return -1; | 119 return -1; |
120 } | 120 } |
121 | 121 |
122 } | 122 } |
OLD | NEW |