<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[173866] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/173866">173866</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2014-09-22 23:00:35 -0700 (Mon, 22 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed build fix after <a href="http://trac.webkit.org/projects/webkit/changeset/173859">r173859</a>.

Partial revert to fix debug build after <a href="http://trac.webkit.org/projects/webkit/changeset/173859">r173859</a>.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::remoteSVGRootElement):
* html/HTMLFrameOwnerElement.cpp:
(WebCore::HTMLFrameOwnerElement::getSVGDocument):
* page/EventHandler.cpp:
(WebCore::EventHandler::handleMousePressEvent):
(WebCore::EventHandler::handleMouseMoveEvent):
(WebCore::EventHandler::handleMouseReleaseEvent):
* page/Frame.cpp:
(WebCore::Frame::setPageAndTextZoomFactors):
* page/FrameView.cpp:
(WebCore::FrameView::scrollToAnchor):
* rendering/svg/RenderSVGBlock.h:
(WebCore::RenderSVGBlock::graphicsElement):
* rendering/svg/RenderSVGGradientStop.cpp:
(WebCore::RenderSVGGradientStop::gradientElement):
* rendering/svg/RenderSVGInline.h:
(WebCore::RenderSVGInline::graphicsElement):
* rendering/svg/RenderSVGResourceClipper.cpp:
(WebCore::RenderSVGResourceClipper::pathOnlyClipping):
* rendering/svg/RenderSVGResourceContainer.cpp:
(WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
* rendering/svg/RenderSVGShape.h:
(WebCore::RenderSVGShape::graphicsElement):
* rendering/svg/RenderSVGTransformableContainer.h:
* rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::updateMaskedAncestorShouldIsolateBlending):
* rendering/svg/SVGRenderTreeAsText.cpp:
(WebCore::operator&lt;&lt;):
* rendering/svg/SVGRenderingContext.cpp:
(WebCore::SVGRenderingContext::prepareToRenderSVGContent):
* rendering/svg/SVGResources.cpp:
(WebCore::targetReferenceFromResource):
* svg/SVGAElement.cpp:
(WebCore::SVGAElement::defaultEventHandler):
* svg/SVGAnimateElement.cpp:
(WebCore::SVGAnimateElement::calculateAnimatedValue):
* svg/SVGAnimationElement.cpp:
(WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
* svg/SVGElement.cpp:
(WebCore::SVGElement::getBoundingBox):
* svg/SVGLinearGradientElement.cpp:
(WebCore::SVGLinearGradientElement::collectGradientAttributes):
* svg/SVGLocatable.cpp:
(WebCore::SVGLocatable::getTransformToElement):
* svg/SVGPolyElement.cpp:
(WebCore::SVGPolyElement::synchronizePoints):
(WebCore::SVGPolyElement::lookupOrCreatePointsWrapper):
* svg/SVGRadialGradientElement.cpp:
(WebCore::SVGRadialGradientElement::collectGradientAttributes):
* svg/SVGTextContentElement.cpp:
(WebCore::SVGTextContentElement::synchronizeTextLength):
(WebCore::SVGTextContentElement::lookupOrCreateTextLengthWrapper):
(WebCore::SVGTextContentElement::elementFromRenderer):
* svg/SVGUseElement.cpp:
(WebCore::SVGUseElement::toClipPath):
* svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::connectConditions):
(WebCore::SVGSMILElement::disconnectConditions):
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::hasSingleSecurityOrigin):
(WebCore::SVGImage::setContainerSize):
(WebCore::SVGImage::containerSize):
(WebCore::SVGImage::embeddedContentBox):
(WebCore::SVGImage::hasRelativeWidth):
(WebCore::SVGImage::hasRelativeHeight):
(WebCore::SVGImage::computeIntrinsicDimensions):
(WebCore::SVGImage::startAnimation):
(WebCore::SVGImage::stopAnimation):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp">trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFrameOwnerElementcpp">trunk/Source/WebCore/html/HTMLFrameOwnerElement.cpp</a></li>
<li><a href="#trunkSourceWebCorepageEventHandlercpp">trunk/Source/WebCore/page/EventHandler.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFramecpp">trunk/Source/WebCore/page/Frame.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewcpp">trunk/Source/WebCore/page/FrameView.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGBlockh">trunk/Source/WebCore/rendering/svg/RenderSVGBlock.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGGradientStopcpp">trunk/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGInlineh">trunk/Source/WebCore/rendering/svg/RenderSVGInline.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGResourceClippercpp">trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGResourceContainercpp">trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGShapeh">trunk/Source/WebCore/rendering/svg/RenderSVGShape.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgRenderSVGTransformableContainerh">trunk/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.h</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGRenderSupportcpp">trunk/Source/WebCore/rendering/svg/SVGRenderSupport.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGRenderTreeAsTextcpp">trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGRenderingContextcpp">trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingsvgSVGResourcescpp">trunk/Source/WebCore/rendering/svg/SVGResources.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGAElementcpp">trunk/Source/WebCore/svg/SVGAElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGAnimateElementcpp">trunk/Source/WebCore/svg/SVGAnimateElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGAnimationElementcpp">trunk/Source/WebCore/svg/SVGAnimationElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGElementcpp">trunk/Source/WebCore/svg/SVGElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGLinearGradientElementcpp">trunk/Source/WebCore/svg/SVGLinearGradientElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGLocatablecpp">trunk/Source/WebCore/svg/SVGLocatable.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGPolyElementcpp">trunk/Source/WebCore/svg/SVGPolyElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGRadialGradientElementcpp">trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGTextContentElementcpp">trunk/Source/WebCore/svg/SVGTextContentElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGUseElementcpp">trunk/Source/WebCore/svg/SVGUseElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvganimationSVGSMILElementcpp">trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvggraphicsSVGImagecpp">trunk/Source/WebCore/svg/graphics/SVGImage.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/ChangeLog        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -1,3 +1,79 @@
</span><ins>+2014-09-22  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Unreviewed build fix after r173859.
+
+        Partial revert to fix debug build after r173859.
+
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::remoteSVGRootElement):
+        * html/HTMLFrameOwnerElement.cpp:
+        (WebCore::HTMLFrameOwnerElement::getSVGDocument):
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::handleMousePressEvent):
+        (WebCore::EventHandler::handleMouseMoveEvent):
+        (WebCore::EventHandler::handleMouseReleaseEvent):
+        * page/Frame.cpp:
+        (WebCore::Frame::setPageAndTextZoomFactors):
+        * page/FrameView.cpp:
+        (WebCore::FrameView::scrollToAnchor):
+        * rendering/svg/RenderSVGBlock.h:
+        (WebCore::RenderSVGBlock::graphicsElement):
+        * rendering/svg/RenderSVGGradientStop.cpp:
+        (WebCore::RenderSVGGradientStop::gradientElement):
+        * rendering/svg/RenderSVGInline.h:
+        (WebCore::RenderSVGInline::graphicsElement):
+        * rendering/svg/RenderSVGResourceClipper.cpp:
+        (WebCore::RenderSVGResourceClipper::pathOnlyClipping):
+        * rendering/svg/RenderSVGResourceContainer.cpp:
+        (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
+        * rendering/svg/RenderSVGShape.h:
+        (WebCore::RenderSVGShape::graphicsElement):
+        * rendering/svg/RenderSVGTransformableContainer.h:
+        * rendering/svg/SVGRenderSupport.cpp:
+        (WebCore::SVGRenderSupport::updateMaskedAncestorShouldIsolateBlending):
+        * rendering/svg/SVGRenderTreeAsText.cpp:
+        (WebCore::operator&lt;&lt;):
+        * rendering/svg/SVGRenderingContext.cpp:
+        (WebCore::SVGRenderingContext::prepareToRenderSVGContent):
+        * rendering/svg/SVGResources.cpp:
+        (WebCore::targetReferenceFromResource):
+        * svg/SVGAElement.cpp:
+        (WebCore::SVGAElement::defaultEventHandler):
+        * svg/SVGAnimateElement.cpp:
+        (WebCore::SVGAnimateElement::calculateAnimatedValue):
+        * svg/SVGAnimationElement.cpp:
+        (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
+        * svg/SVGElement.cpp:
+        (WebCore::SVGElement::getBoundingBox):
+        * svg/SVGLinearGradientElement.cpp:
+        (WebCore::SVGLinearGradientElement::collectGradientAttributes):
+        * svg/SVGLocatable.cpp:
+        (WebCore::SVGLocatable::getTransformToElement):
+        * svg/SVGPolyElement.cpp:
+        (WebCore::SVGPolyElement::synchronizePoints):
+        (WebCore::SVGPolyElement::lookupOrCreatePointsWrapper):
+        * svg/SVGRadialGradientElement.cpp:
+        (WebCore::SVGRadialGradientElement::collectGradientAttributes):
+        * svg/SVGTextContentElement.cpp:
+        (WebCore::SVGTextContentElement::synchronizeTextLength):
+        (WebCore::SVGTextContentElement::lookupOrCreateTextLengthWrapper):
+        (WebCore::SVGTextContentElement::elementFromRenderer):
+        * svg/SVGUseElement.cpp:
+        (WebCore::SVGUseElement::toClipPath):
+        * svg/animation/SVGSMILElement.cpp:
+        (WebCore::SVGSMILElement::connectConditions):
+        (WebCore::SVGSMILElement::disconnectConditions):
+        * svg/graphics/SVGImage.cpp:
+        (WebCore::SVGImage::hasSingleSecurityOrigin):
+        (WebCore::SVGImage::setContainerSize):
+        (WebCore::SVGImage::containerSize):
+        (WebCore::SVGImage::embeddedContentBox):
+        (WebCore::SVGImage::hasRelativeWidth):
+        (WebCore::SVGImage::hasRelativeHeight):
+        (WebCore::SVGImage::computeIntrinsicDimensions):
+        (WebCore::SVGImage::startAnimation):
+        (WebCore::SVGImage::stopAnimation):
+
</ins><span class="cx"> 2014-09-22  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Ensure that layout is up-to-date before hit-testing via RenderView
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -2885,7 +2885,7 @@
</span><span class="cx">     if (!document || !document-&gt;isSVGDocument())
</span><span class="cx">         return nullptr;
</span><span class="cx">     
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(*document).rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(*document).rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return nullptr;
</span><span class="cx">     RenderObject* rendererRoot = rootElement-&gt;renderer();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFrameOwnerElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFrameOwnerElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFrameOwnerElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/html/HTMLFrameOwnerElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -115,7 +115,7 @@
</span><span class="cx"> {
</span><span class="cx">     Document* document = contentDocument();
</span><span class="cx">     if (document &amp;&amp; document-&gt;isSVGDocument())
</span><del>-        return downcast&lt;SVGDocument&gt;(document);
</del><ins>+        return toSVGDocument(document);
</ins><span class="cx">     // Spec: http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument
</span><span class="cx">     ec = NOT_SUPPORTED_ERR;
</span><span class="cx">     return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventHandlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventHandler.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventHandler.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/page/EventHandler.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -760,10 +760,10 @@
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     if (m_frame.document()-&gt;isSVGDocument()
</span><del>-        &amp;&amp; downcast&lt;SVGDocument&gt;(*m_frame.document()).zoomAndPanEnabled()) {
</del><ins>+        &amp;&amp; toSVGDocument(*m_frame.document()).zoomAndPanEnabled()) {
</ins><span class="cx">         if (event.event().shiftKey() &amp;&amp; singleClick) {
</span><span class="cx">             m_svgPan = true;
</span><del>-            downcast&lt;SVGDocument&gt;(*m_frame.document()).startPan(m_frame.view()-&gt;windowToContents(event.event().position()));
</del><ins>+            toSVGDocument(*m_frame.document()).startPan(m_frame.view()-&gt;windowToContents(event.event().position()));
</ins><span class="cx">             return true;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -1893,7 +1893,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     if (m_svgPan) {
</span><del>-        downcast&lt;SVGDocument&gt;(m_frame.document())-&gt;updatePan(m_frame.view()-&gt;windowToContents(m_lastKnownMousePosition));
</del><ins>+        toSVGDocument(m_frame.document())-&gt;updatePan(m_frame.view()-&gt;windowToContents(m_lastKnownMousePosition));
</ins><span class="cx">         return true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -2037,7 +2037,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_svgPan) {
</span><span class="cx">         m_svgPan = false;
</span><del>-        downcast&lt;SVGDocument&gt;(m_frame.document())-&gt;updatePan(m_frame.view()-&gt;windowToContents(m_lastKnownMousePosition));
</del><ins>+        toSVGDocument(m_frame.document())-&gt;updatePan(m_frame.view()-&gt;windowToContents(m_lastKnownMousePosition));
</ins><span class="cx">         return true;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Frame.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Frame.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/page/Frame.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -968,7 +968,7 @@
</span><span class="cx">     // Respect SVGs zoomAndPan=&quot;disabled&quot; property in standalone SVG documents.
</span><span class="cx">     // FIXME: How to handle compound documents + zoomAndPan=&quot;disabled&quot;? Needs SVG WG clarification.
</span><span class="cx">     if (document-&gt;isSVGDocument()) {
</span><del>-        if (!downcast&lt;SVGDocument&gt;(*document).zoomAndPanEnabled())
</del><ins>+        if (!toSVGDocument(*document).zoomAndPanEnabled())
</ins><span class="cx">             return;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/page/FrameView.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -1961,7 +1961,7 @@
</span><span class="cx">     frame().document()-&gt;setCSSTarget(anchorElement);
</span><span class="cx"> 
</span><span class="cx">     if (frame().document()-&gt;isSVGDocument()) {
</span><del>-        if (SVGSVGElement* svg = downcast&lt;SVGDocument&gt;(*frame().document()).rootElement()) {
</del><ins>+        if (SVGSVGElement* svg = toSVGDocument(*frame().document()).rootElement()) {
</ins><span class="cx">             svg-&gt;setupInitialView(name, anchorElement);
</span><span class="cx">             if (!anchorElement)
</span><span class="cx">                 return true;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGBlockh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGBlock.h (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGBlock.h        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGBlock.h        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual LayoutRect visualOverflowRect() const override final;
</span><span class="cx"> 
</span><del>-    SVGGraphicsElement&amp; graphicsElement() const { return downcast&lt;SVGGraphicsElement&gt;(nodeForNonAnonymous()); }
</del><ins>+    SVGGraphicsElement&amp; graphicsElement() const { return toSVGGraphicsElement(nodeForNonAnonymous()); }
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     RenderSVGBlock(SVGGraphicsElement&amp;, PassRef&lt;RenderStyle&gt;);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGGradientStopcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGGradientStop.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> SVGGradientElement* RenderSVGGradientStop::gradientElement()
</span><span class="cx"> {
</span><span class="cx">     if (element().parentElement() &amp;&amp; isSVGGradientElement(*element().parentElement()))
</span><del>-        return &amp;downcast&lt;SVGGradientElement&gt;(*element().parentElement());
</del><ins>+        return &amp;toSVGGradientElement(*element().parentElement());
</ins><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGInlineh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGInline.h (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGInline.h        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGInline.h        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> public:
</span><span class="cx">     RenderSVGInline(SVGGraphicsElement&amp;, PassRef&lt;RenderStyle&gt;);
</span><span class="cx"> 
</span><del>-    SVGGraphicsElement&amp; graphicsElement() const { return downcast&lt;SVGGraphicsElement&gt;(nodeForNonAnonymous()); }
</del><ins>+    SVGGraphicsElement&amp; graphicsElement() const { return toSVGGraphicsElement(nodeForNonAnonymous()); }
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     void element() const = delete;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGResourceClippercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx">             return false;
</span><span class="cx">         if (!childNode-&gt;isSVGElement() || !downcast&lt;SVGElement&gt;(*childNode).isSVGGraphicsElement())
</span><span class="cx">             continue;
</span><del>-        SVGGraphicsElement&amp; styled = downcast&lt;SVGGraphicsElement&gt;(*childNode);
</del><ins>+        SVGGraphicsElement&amp; styled = toSVGGraphicsElement(*childNode);
</ins><span class="cx">         const RenderStyle&amp; style = renderer-&gt;style();
</span><span class="cx">         if (style.display() == NONE || style.visibility() != VISIBLE)
</span><span class="cx">              continue;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGResourceContainercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -212,7 +212,7 @@
</span><span class="cx">     if (!object-&gt;isSVGShape())
</span><span class="cx">         return resourceTransform;
</span><span class="cx"> 
</span><del>-    SVGGraphicsElement* element = downcast&lt;SVGGraphicsElement&gt;(object-&gt;node());
</del><ins>+    SVGGraphicsElement* element = toSVGGraphicsElement(object-&gt;node());
</ins><span class="cx">     AffineTransform transform = element-&gt;getScreenCTM(SVGLocatable::DisallowStyleUpdate);
</span><span class="cx">     transform *= resourceTransform;
</span><span class="cx">     return transform;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGShapeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGShape.h (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGShape.h        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGShape.h        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx">     RenderSVGShape(SVGGraphicsElement&amp;, PassRef&lt;RenderStyle&gt;, Path*, bool);
</span><span class="cx">     virtual ~RenderSVGShape();
</span><span class="cx"> 
</span><del>-    SVGGraphicsElement&amp; graphicsElement() const { return downcast&lt;SVGGraphicsElement&gt;(RenderSVGModelObject::element()); }
</del><ins>+    SVGGraphicsElement&amp; graphicsElement() const { return toSVGGraphicsElement(RenderSVGModelObject::element()); }
</ins><span class="cx"> 
</span><span class="cx">     void setNeedsShapeUpdate() { m_needsShapeUpdate = true; }
</span><span class="cx">     virtual void setNeedsBoundariesUpdate() override final { m_needsBoundariesUpdate = true; }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgRenderSVGTransformableContainerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.h (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.h        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGTransformableContainer.h        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> class RenderSVGTransformableContainer final : public RenderSVGContainer {
</span><span class="cx"> public:
</span><span class="cx">     RenderSVGTransformableContainer(SVGGraphicsElement&amp;, PassRef&lt;RenderStyle&gt;);
</span><del>-    SVGGraphicsElement&amp; graphicsElement() { return downcast&lt;SVGGraphicsElement&gt;(RenderSVGContainer::element()); }
</del><ins>+    SVGGraphicsElement&amp; graphicsElement() { return toSVGGraphicsElement(RenderSVGContainer::element()); }
</ins><span class="cx"> 
</span><span class="cx">     virtual bool isSVGTransformableContainer() const { return true; }
</span><span class="cx">     virtual const AffineTransform&amp; localToParentTransform() const { return m_localTransform; }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGRenderSupportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGRenderSupport.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGRenderSupport.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/SVGRenderSupport.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -464,7 +464,7 @@
</span><span class="cx">             continue;
</span><span class="cx"> 
</span><span class="cx">         if (ancestor-&gt;computedStyle()-&gt;svgStyle().hasMasker())
</span><del>-            downcast&lt;SVGGraphicsElement&gt;(*ancestor).setShouldIsolateBlending(maskedAncestorShouldIsolateBlending);
</del><ins>+            toSVGGraphicsElement(*ancestor).setShouldIsolateBlending(maskedAncestorShouldIsolateBlending);
</ins><span class="cx"> 
</span><span class="cx">         return;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGRenderTreeAsTextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -344,7 +344,7 @@
</span><span class="cx">         writeNameValuePair(ts, &quot;cy&quot;, element.cy().value(lengthContext));
</span><span class="cx">         writeNameValuePair(ts, &quot;r&quot;, element.r().value(lengthContext));
</span><span class="cx">     } else if (svgElement.hasTagName(SVGNames::polygonTag) || svgElement.hasTagName(SVGNames::polylineTag)) {
</span><del>-        const SVGPolyElement&amp; element = downcast&lt;SVGPolyElement&gt;(svgElement);
</del><ins>+        const SVGPolyElement&amp; element = toSVGPolyElement(svgElement);
</ins><span class="cx">         writeNameAndQuotedValue(ts, &quot;points&quot;, element.pointList().valueAsString());
</span><span class="cx">     } else if (isSVGPathElement(svgElement)) {
</span><span class="cx">         const SVGPathElement&amp; element = downcast&lt;SVGPathElement&gt;(svgElement);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGRenderingContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/SVGRenderingContext.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_COMPOSITING)
</span><span class="cx">     if (svgStyle.hasMasker() &amp;&amp; downcast&lt;SVGElement&gt;(renderer.element())-&gt;isSVGGraphicsElement()) {
</span><del>-        SVGGraphicsElement&amp; graphicsElement = downcast&lt;SVGGraphicsElement&gt;(*renderer.element());
</del><ins>+        SVGGraphicsElement&amp; graphicsElement = toSVGGraphicsElement(*renderer.element());
</ins><span class="cx">         isolateMaskForBlending = graphicsElement.shouldIsolateBlending();
</span><span class="cx">     }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingsvgSVGResourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/SVGResources.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/svg/SVGResources.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/rendering/svg/SVGResources.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx">     if (isSVGPatternElement(element))
</span><span class="cx">         target = downcast&lt;SVGPatternElement&gt;(element).href();
</span><span class="cx">     else if (isSVGGradientElement(element))
</span><del>-        target = downcast&lt;SVGGradientElement&gt;(element).href();
</del><ins>+        target = toSVGGradientElement(element).href();
</ins><span class="cx">     else if (isSVGFilterElement(element))
</span><span class="cx">         target = downcast&lt;SVGFilterElement&gt;(element).href();
</span><span class="cx">     else
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGAElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGAElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGAElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGAElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx">             if (url[0] == '#') {
</span><span class="cx">                 Element* targetElement = treeScope().getElementById(url.substringSharingImpl(1));
</span><span class="cx">                 if (targetElement &amp;&amp; isSVGSMILElement(*targetElement)) {
</span><del>-                    downcast&lt;SVGSMILElement&gt;(*targetElement).beginByLinkActivation();
</del><ins>+                    toSVGSMILElement(*targetElement).beginByLinkActivation();
</ins><span class="cx">                     event-&gt;setDefaultHandled();
</span><span class="cx">                     return;
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGAnimateElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGAnimateElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGAnimateElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGAnimateElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx">     ASSERT(m_fromType-&gt;type() == m_animatedPropertyType);
</span><span class="cx">     ASSERT(m_toType);
</span><span class="cx"> 
</span><del>-    SVGAnimateElement&amp; resultAnimationElement = downcast&lt;SVGAnimateElement&gt;(*resultElement);
</del><ins>+    SVGAnimateElement&amp; resultAnimationElement = toSVGAnimateElement(*resultElement);
</ins><span class="cx">     ASSERT(resultAnimationElement.m_animatedType);
</span><span class="cx">     ASSERT(resultAnimationElement.m_animatedPropertyType == m_animatedPropertyType);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGAnimationElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGAnimationElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGAnimationElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGAnimationElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -508,7 +508,7 @@
</span><span class="cx"> 
</span><span class="cx">     CalcMode calcMode = this-&gt;calcMode();
</span><span class="cx">     if (hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::animateColorTag)) {
</span><del>-        AnimatedPropertyType attributeType = downcast&lt;SVGAnimateElement&gt;(*this).determineAnimatedPropertyType(targetElement());
</del><ins>+        AnimatedPropertyType attributeType = toSVGAnimateElement(*this).determineAnimatedPropertyType(targetElement());
</ins><span class="cx">         // Fall back to discrete animations for Strings.
</span><span class="cx">         if (attributeType == AnimatedBoolean
</span><span class="cx">             || attributeType == AnimatedEnumeration
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -460,7 +460,7 @@
</span><span class="cx"> bool SVGElement::getBoundingBox(FloatRect&amp; rect, SVGLocatable::StyleUpdateStrategy styleUpdateStrategy)
</span><span class="cx"> {
</span><span class="cx">     if (isSVGGraphicsElement()) {
</span><del>-        rect = downcast&lt;SVGGraphicsElement&gt;(*this).getBBox(styleUpdateStrategy);
</del><ins>+        rect = toSVGGraphicsElement(*this).getBBox(styleUpdateStrategy);
</ins><span class="cx">         return true;
</span><span class="cx">     }
</span><span class="cx">     return false;
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGLinearGradientElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGLinearGradientElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGLinearGradientElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGLinearGradientElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -174,7 +174,7 @@
</span><span class="cx">         // Respect xlink:href, take attributes from referenced element
</span><span class="cx">         Node* refNode = SVGURIReference::targetElementFromIRIString(current-&gt;href(), document());
</span><span class="cx">         if (refNode &amp;&amp; isSVGGradientElement(*refNode)) {
</span><del>-            current = downcast&lt;SVGGradientElement&gt;(refNode);
</del><ins>+            current = toSVGGradientElement(refNode);
</ins><span class="cx"> 
</span><span class="cx">             // Cycle detection
</span><span class="cx">             if (processedGradients.contains(current))
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGLocatablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGLocatable.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGLocatable.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGLocatable.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">     AffineTransform ctm = getCTM(styleUpdateStrategy);
</span><span class="cx"> 
</span><span class="cx">     if (target &amp;&amp; target-&gt;isSVGGraphicsElement()) {
</span><del>-        AffineTransform targetCTM = downcast&lt;SVGGraphicsElement&gt;(*target).getCTM(styleUpdateStrategy);
</del><ins>+        AffineTransform targetCTM = toSVGGraphicsElement(*target).getCTM(styleUpdateStrategy);
</ins><span class="cx">         if (!targetCTM.isInvertible()) {
</span><span class="cx">             ec = SVGException::SVG_MATRIX_NOT_INVERTABLE;
</span><span class="cx">             return ctm;
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGPolyElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGPolyElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGPolyElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGPolyElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -132,7 +132,7 @@
</span><span class="cx"> void SVGPolyElement::synchronizePoints(SVGElement* contextElement)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(contextElement);
</span><del>-    SVGPolyElement&amp; ownerType = downcast&lt;SVGPolyElement&gt;(*contextElement);
</del><ins>+    SVGPolyElement&amp; ownerType = toSVGPolyElement(*contextElement);
</ins><span class="cx">     if (!ownerType.m_points.shouldSynchronize)
</span><span class="cx">         return;
</span><span class="cx">     ownerType.m_points.synchronize(&amp;ownerType, pointsPropertyInfo()-&gt;attributeName, ownerType.m_points.value.valueAsString());
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx"> PassRefPtr&lt;SVGAnimatedProperty&gt; SVGPolyElement::lookupOrCreatePointsWrapper(SVGElement* contextElement)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(contextElement);
</span><del>-    SVGPolyElement&amp; ownerType = downcast&lt;SVGPolyElement&gt;(*contextElement);
</del><ins>+    SVGPolyElement&amp; ownerType = toSVGPolyElement(*contextElement);
</ins><span class="cx">     return SVGAnimatedProperty::lookupOrCreateWrapper&lt;SVGPolyElement, SVGAnimatedPointList, SVGPointList&gt;
</span><span class="cx">         (&amp;ownerType, pointsPropertyInfo(), ownerType.m_points.value);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGRadialGradientElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -192,7 +192,7 @@
</span><span class="cx">         // Respect xlink:href, take attributes from referenced element
</span><span class="cx">         Node* refNode = SVGURIReference::targetElementFromIRIString(current-&gt;href(), document());
</span><span class="cx">         if (refNode &amp;&amp; isSVGGradientElement(*refNode)) {
</span><del>-            current = downcast&lt;SVGGradientElement&gt;(refNode);
</del><ins>+            current = toSVGGradientElement(refNode);
</ins><span class="cx"> 
</span><span class="cx">             // Cycle detection
</span><span class="cx">             if (processedGradients.contains(current))
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGTextContentElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGTextContentElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGTextContentElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGTextContentElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -75,7 +75,7 @@
</span><span class="cx"> void SVGTextContentElement::synchronizeTextLength(SVGElement* contextElement)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(contextElement);
</span><del>-    SVGTextContentElement&amp; ownerType = downcast&lt;SVGTextContentElement&gt;(*contextElement);
</del><ins>+    SVGTextContentElement&amp; ownerType = toSVGTextContentElement(*contextElement);
</ins><span class="cx">     if (!ownerType.m_textLength.shouldSynchronize)
</span><span class="cx">         return;
</span><span class="cx">     AtomicString value(SVGPropertyTraits&lt;SVGLength&gt;::toString(ownerType.m_specifiedTextLength));
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> PassRefPtr&lt;SVGAnimatedProperty&gt; SVGTextContentElement::lookupOrCreateTextLengthWrapper(SVGElement* contextElement)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(contextElement);
</span><del>-    SVGTextContentElement&amp; ownerType = downcast&lt;SVGTextContentElement&gt;(*contextElement);
</del><ins>+    SVGTextContentElement&amp; ownerType = toSVGTextContentElement(*contextElement);
</ins><span class="cx">     return SVGAnimatedProperty::lookupOrCreateWrapper&lt;SVGTextContentElement, SVGAnimatedLength, SVGLength&gt;
</span><span class="cx">         (&amp;ownerType, textLengthPropertyInfo(), ownerType.m_textLength.value);
</span><span class="cx"> }
</span><span class="lines">@@ -299,7 +299,7 @@
</span><span class="cx">     if (!element-&gt;isTextContent())
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><del>-    return downcast&lt;SVGTextContentElement&gt;(element);
</del><ins>+    return toSVGTextContentElement(element);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGUseElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGUseElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGUseElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/SVGUseElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -552,7 +552,7 @@
</span><span class="cx">             // Spec: Indirect references are an error (14.3.5)
</span><span class="cx">             document().accessSVGExtensions()-&gt;reportError(&quot;Not allowed to use indirect reference in &lt;clip-path&gt;&quot;);
</span><span class="cx">         } else {
</span><del>-            downcast&lt;SVGGraphicsElement&gt;(*node).toClipPath(path);
</del><ins>+            toSVGGraphicsElement(*node).toClipPath(path);
</ins><span class="cx">             // FIXME: Avoid manual resolution of x/y here. Its potentially harmful.
</span><span class="cx">             SVGLengthContext lengthContext(this);
</span><span class="cx">             path.translate(FloatSize(x().value(lengthContext), y().value(lengthContext)));
</span></span></pre></div>
<a id="trunkSourceWebCoresvganimationSVGSMILElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -540,7 +540,7 @@
</span><span class="cx">                 condition.m_syncbase = nullptr;
</span><span class="cx">                 continue;
</span><span class="cx">             }
</span><del>-            downcast&lt;SVGSMILElement&gt;(*condition.m_syncbase).addTimeDependent(this);
</del><ins>+            toSVGSMILElement(*condition.m_syncbase).addTimeDependent(this);
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -568,7 +568,7 @@
</span><span class="cx">             condition.m_eventListener = nullptr;
</span><span class="cx">         } else if (condition.m_type == Condition::Syncbase) {
</span><span class="cx">             if (condition.m_syncbase)
</span><del>-                downcast&lt;SVGSMILElement&gt;(condition.m_syncbase.get())-&gt;removeTimeDependent(this);
</del><ins>+                toSVGSMILElement(condition.m_syncbase.get())-&gt;removeTimeDependent(this);
</ins><span class="cx">         }
</span><span class="cx">         condition.m_syncbase = nullptr;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoresvggraphicsSVGImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/graphics/SVGImage.cpp (173865 => 173866)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/graphics/SVGImage.cpp        2014-09-23 04:39:35 UTC (rev 173865)
+++ trunk/Source/WebCore/svg/graphics/SVGImage.cpp        2014-09-23 06:00:35 UTC (rev 173866)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx">     if (!m_page || !usesContainerSize())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return;
</span><span class="cx">     RenderSVGRoot* renderer = toRenderSVGRoot(rootElement-&gt;renderer());
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return IntSize();
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return IntSize();
</span><span class="cx"> 
</span><span class="lines">@@ -264,7 +264,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return 0;
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return 0;
</span><span class="cx">     return toRenderBox(rootElement-&gt;renderer());
</span><span class="lines">@@ -281,7 +281,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return false;
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return false;
</span><span class="cx">     return rootElement-&gt;intrinsicWidth().isPercent();
</span><span class="lines">@@ -291,7 +291,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return false;
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return false;
</span><span class="cx">     return rootElement-&gt;intrinsicHeight().isPercent();
</span><span class="lines">@@ -301,7 +301,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return;
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -320,7 +320,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return;
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return;
</span><span class="cx">     rootElement-&gt;unpauseAnimations();
</span><span class="lines">@@ -331,7 +331,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!m_page)
</span><span class="cx">         return;
</span><del>-    SVGSVGElement* rootElement = downcast&lt;SVGDocument&gt;(m_page-&gt;mainFrame().document())-&gt;rootElement();
</del><ins>+    SVGSVGElement* rootElement = toSVGDocument(m_page-&gt;mainFrame().document())-&gt;rootElement();
</ins><span class="cx">     if (!rootElement)
</span><span class="cx">         return;
</span><span class="cx">     rootElement-&gt;pauseAnimations();
</span></span></pre>
</div>
</div>

</body>
</html>