Use is<>() / downcast<>() for Element
[WebKit-https.git] / Source / WebCore / rendering / RenderTableCaption.h
index 6441609..14ba9d2 100644 (file)
@@ -31,7 +31,7 @@ public:
     RenderTableCaption(Element&, PassRef<RenderStyle>);
     virtual ~RenderTableCaption();
 
-    Element& element() const { return toElement(nodeForNonAnonymous()); }
+    Element& element() const { return downcast<Element>(nodeForNonAnonymous()); }
 
     virtual LayoutUnit containingBlockLogicalWidthForContent() const override;