Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index 087cd75e2a4adf3622d2a000c478cc7cb4e8a640..eb6917b267e8b61703aaa1df22079a369a10e63a 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -4351,10 +4351,10 @@ bool RenderFrameImpl::IsHidden() { |
} |
bool RenderFrameImpl::IsLocalRoot() const { |
- bool is_local_root = render_widget_ != nullptr; |
+ bool is_local_root = static_cast<bool>(render_widget_); |
DCHECK_EQ(is_local_root, |
!(frame_->parent() && frame_->parent()->isWebLocalFrame())); |
- return render_widget_ != nullptr; |
+ return is_local_root; |
} |
// Tell the embedding application that the URL of the active page has changed. |