| 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 15 matching lines...) Expand all Loading... |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/svg/animation/SVGSMILElement.h" | 27 #include "core/svg/animation/SVGSMILElement.h" |
| 28 | 28 |
| 29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 30 #include "bindings/core/v8/ScriptEventListener.h" | 30 #include "bindings/core/v8/ScriptEventListener.h" |
| 31 #include "core/XLinkNames.h" | 31 #include "core/XLinkNames.h" |
| 32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 33 #include "core/events/Event.h" | 33 #include "core/events/Event.h" |
| 34 #include "core/events/EventListener.h" | 34 #include "core/events/EventListener.h" |
| 35 #include "core/events/EventSender.h" | 35 #include "core/events/EventSender.h" |
| 36 #include "core/frame/UseCounter.h" |
| 36 #include "core/svg/SVGDocumentExtensions.h" | 37 #include "core/svg/SVGDocumentExtensions.h" |
| 37 #include "core/svg/SVGSVGElement.h" | 38 #include "core/svg/SVGSVGElement.h" |
| 38 #include "core/svg/SVGURIReference.h" | 39 #include "core/svg/SVGURIReference.h" |
| 39 #include "core/svg/animation/SMILTimeContainer.h" | 40 #include "core/svg/animation/SMILTimeContainer.h" |
| 40 #include "platform/FloatConversion.h" | 41 #include "platform/FloatConversion.h" |
| 41 #include "wtf/MathExtras.h" | 42 #include "wtf/MathExtras.h" |
| 42 #include "wtf/StdLibExtras.h" | 43 #include "wtf/StdLibExtras.h" |
| 43 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 44 | 45 |
| 45 namespace blink { | 46 namespace blink { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 resolveFirstInterval(); | 307 resolveFirstInterval(); |
| 307 } | 308 } |
| 308 | 309 |
| 309 Node::InsertionNotificationRequest SVGSMILElement::insertedInto(ContainerNode* r
ootParent) | 310 Node::InsertionNotificationRequest SVGSMILElement::insertedInto(ContainerNode* r
ootParent) |
| 310 { | 311 { |
| 311 SVGElement::insertedInto(rootParent); | 312 SVGElement::insertedInto(rootParent); |
| 312 | 313 |
| 313 if (!rootParent->inDocument()) | 314 if (!rootParent->inDocument()) |
| 314 return InsertionDone; | 315 return InsertionDone; |
| 315 | 316 |
| 317 UseCounter::count(document(), UseCounter::SVGSMILElementInDocument); |
| 318 |
| 316 setAttributeName(constructQualifiedName(this, fastGetAttribute(SVGNames::att
ributeNameAttr))); | 319 setAttributeName(constructQualifiedName(this, fastGetAttribute(SVGNames::att
ributeNameAttr))); |
| 317 SVGSVGElement* owner = ownerSVGElement(); | 320 SVGSVGElement* owner = ownerSVGElement(); |
| 318 if (!owner) | 321 if (!owner) |
| 319 return InsertionDone; | 322 return InsertionDone; |
| 320 | 323 |
| 321 m_timeContainer = owner->timeContainer(); | 324 m_timeContainer = owner->timeContainer(); |
| 322 ASSERT(m_timeContainer); | 325 ASSERT(m_timeContainer); |
| 323 m_timeContainer->setDocumentOrderIndexesDirty(); | 326 m_timeContainer->setDocumentOrderIndexesDirty(); |
| 324 | 327 |
| 325 // "If no attribute is present, the default begin value (an offset-value of
0) must be evaluated." | 328 // "If no attribute is present, the default begin value (an offset-value of
0) must be evaluated." |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 #if ENABLE(OILPAN) | 1352 #if ENABLE(OILPAN) |
| 1350 visitor->trace(m_targetElement); | 1353 visitor->trace(m_targetElement); |
| 1351 visitor->trace(m_timeContainer); | 1354 visitor->trace(m_timeContainer); |
| 1352 visitor->trace(m_conditions); | 1355 visitor->trace(m_conditions); |
| 1353 visitor->trace(m_syncBaseDependents); | 1356 visitor->trace(m_syncBaseDependents); |
| 1354 #endif | 1357 #endif |
| 1355 SVGElement::trace(visitor); | 1358 SVGElement::trace(visitor); |
| 1356 } | 1359 } |
| 1357 | 1360 |
| 1358 } | 1361 } |
| OLD | NEW |