| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class ConditionEventListener; | 35 class ConditionEventListener; |
| 36 class SMILTimeContainer; | 36 class SMILTimeContainer; |
| 37 class SVGSMILElement; | 37 class SVGSMILElement; |
| 38 | 38 |
| 39 template<typename T> class EventSender; | 39 template<typename T> class EventSender; |
| 40 typedef EventSender<SVGSMILElement> SMILEventSender; | 40 typedef EventSender<SVGSMILElement> SMILEventSender; |
| 41 | 41 |
| 42 // This class implements SMIL interval timing model as needed for SVG animation. | 42 // This class implements SMIL interval timing model as needed for SVG animation. |
| 43 class SVGSMILElement : public SVGElement { | 43 class SVGSMILElement : public SVGElement { |
| 44 public: | 44 public: |
| 45 SVGSMILElement(const QualifiedName&, Document*); | 45 SVGSMILElement(const QualifiedName&, Document&); |
| 46 virtual ~SVGSMILElement(); | 46 virtual ~SVGSMILElement(); |
| 47 | 47 |
| 48 static bool isSMILElement(Node*); | 48 static bool isSMILElement(Node*); |
| 49 | 49 |
| 50 bool isSupportedAttribute(const QualifiedName&); | 50 bool isSupportedAttribute(const QualifiedName&); |
| 51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 54 virtual void removedFrom(ContainerNode*) OVERRIDE; | 54 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 55 | 55 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 245 |
| 246 inline SVGSMILElement* toSVGSMILElement(Element* element) | 246 inline SVGSMILElement* toSVGSMILElement(Element* element) |
| 247 { | 247 { |
| 248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); | 248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); |
| 249 return static_cast<SVGSMILElement*>(element); | 249 return static_cast<SVGSMILElement*>(element); |
| 250 } | 250 } |
| 251 | 251 |
| 252 } | 252 } |
| 253 | 253 |
| 254 #endif // SVGSMILElement_h | 254 #endif // SVGSMILElement_h |
| OLD | NEW |