Index: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
index a2b46023fef679c563d0b4357aa4c35505e7b3e8..38f25b8d40c2e9b8f7c4e067aebde7f41c9bd171 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp |
@@ -307,7 +307,7 @@ bool HTMLFrameOwnerElement::loadOrRedirectSubframe( |
if (!SubframeLoadingDisabler::canLoadFrame(*this)) |
return false; |
- if (document().frame()->host()->subframeCount() >= Page::maxNumberOfFrames) |
+ if (document().frame()->page()->subframeCount() >= Page::maxNumberOfFrames) |
return false; |
FrameLoadRequest frameLoadRequest(&document(), url, "_self", |