OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 } | 460 } |
461 | 461 |
462 float SVGLength::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> toVal
ue, SVGElement* contextElement) | 462 float SVGLength::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> toVal
ue, SVGElement* contextElement) |
463 { | 463 { |
464 SVGLengthContext lengthContext(contextElement); | 464 SVGLengthContext lengthContext(contextElement); |
465 RefPtrWillBeRawPtr<SVGLength> toLength = toSVGLength(toValue); | 465 RefPtrWillBeRawPtr<SVGLength> toLength = toSVGLength(toValue); |
466 | 466 |
467 return fabsf(toLength->value(lengthContext, IGNORE_EXCEPTION) - value(length
Context, IGNORE_EXCEPTION)); | 467 return fabsf(toLength->value(lengthContext, IGNORE_EXCEPTION) - value(length
Context, IGNORE_EXCEPTION)); |
468 } | 468 } |
469 | 469 |
| 470 #if 0 |
| 471 void SVGLength::trace(Visitor* visitor) { |
| 472 printf("Generic trace\n"); |
| 473 traceImpl(visitor); } |
| 474 void SVGLength::trace(InlinedGlobalMarkingVisitor visitor) { |
| 475 printf("Inline trace\n"); |
| 476 traceImpl(visitor); } |
| 477 template<typename VisitorDispatcher> |
| 478 ALWAYS_INLINE void SVGLength::traceImpl(VisitorDispatcher visitor) |
| 479 { |
| 480 SVGPropertyBase::trace(visitor); |
470 } | 481 } |
| 482 #endif |
| 483 |
| 484 } |
OLD | NEW |