Index: Source/core/rendering/RenderFrame.cpp |
diff --git a/Source/core/rendering/RenderFrame.cpp b/Source/core/rendering/RenderFrame.cpp |
index 32ff5fe92341f5a035757f81132e1535de4d15c7..c67bd0a5dbd37d358360e1e4d215768fd8bfa8f8 100644 |
--- a/Source/core/rendering/RenderFrame.cpp |
+++ b/Source/core/rendering/RenderFrame.cpp |
@@ -37,7 +37,7 @@ RenderFrame::RenderFrame(HTMLFrameElement* frame) |
FrameEdgeInfo RenderFrame::edgeInfo() const |
{ |
- HTMLFrameElement* element = static_cast<HTMLFrameElement*>(node()); |
+ HTMLFrameElement* element = toHTMLFrameElement(node()); |
return FrameEdgeInfo(element->noResize(), element->hasFrameBorder()); |
} |
@@ -49,7 +49,7 @@ void RenderFrame::updateFromElement() |
void RenderFrame::viewCleared() |
{ |
- HTMLFrameElement* element = static_cast<HTMLFrameElement*>(node()); |
+ HTMLFrameElement* element = toHTMLFrameElement(node()); |
if (!element || !widget() || !widget()->isFrameView()) |
return; |