Index: Source/core/svg/animation/SMILTimeContainer.cpp |
diff --git a/Source/core/svg/animation/SMILTimeContainer.cpp b/Source/core/svg/animation/SMILTimeContainer.cpp |
index 3174ea6fc5d923dde8ba3dc65f778ea1d9eb34d8..771db6d009b3d7787e102aa776c7eae38b425698 100644 |
--- a/Source/core/svg/animation/SMILTimeContainer.cpp |
+++ b/Source/core/svg/animation/SMILTimeContainer.cpp |
@@ -229,7 +229,7 @@ void SMILTimeContainer::updateDocumentOrderIndexes() |
{ |
unsigned timingElementCount = 0; |
for (Element* element = m_ownerSVGElement; element; element = ElementTraversal::next(*element, m_ownerSVGElement)) { |
- if (SVGSMILElement::isSMILElement(element)) |
+ if (element && isSVGSMILElement(*element)) |
tkent
2013/12/04 03:50:02
|element &&| is redundant because the |for| condit
|
toSVGSMILElement(element)->setDocumentOrderIndex(timingElementCount++); |
} |
m_documentOrderIndexesDirty = false; |