| 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 0efebb766aca2cd98e06e3f806719037c619870d..9aaebf4c7cfc65c1f309d1b527187eb9c5ab9933 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "core/layout/api/LayoutPartItem.h"
|
| #include "core/loader/FrameLoadRequest.h"
|
| #include "core/loader/FrameLoader.h"
|
| +#include "core/page/Page.h"
|
| #include "core/plugins/PluginView.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
|
|
| @@ -312,8 +313,7 @@ bool HTMLFrameOwnerElement::loadOrRedirectSubframe(
|
| if (!SubframeLoadingDisabler::canLoadFrame(*this))
|
| return false;
|
|
|
| - if (document().frame()->host()->subframeCount() >=
|
| - FrameHost::maxNumberOfFrames)
|
| + if (document().frame()->host()->subframeCount() >= Page::maxNumberOfFrames)
|
| return false;
|
|
|
| FrameLoadRequest frameLoadRequest(&document(), url, "_self",
|
|
|