Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: Source/core/rendering/RenderFrame.cpp

Issue 19504005: Introduce toHTMLFrameElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698