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

Unified Diff: third_party/WebKit/Source/core/dom/NodeRareData.cpp

Issue 2739033003: Move FrameHost::m_subframeCount to Page (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameHost.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/NodeRareData.cpp
diff --git a/third_party/WebKit/Source/core/dom/NodeRareData.cpp b/third_party/WebKit/Source/core/dom/NodeRareData.cpp
index 9343fd3faf879ee696eb192dc2b9642bfe479e01..1bedf95d67d51bf0347afa55fd2f148425fc2eb6 100644
--- a/third_party/WebKit/Source/core/dom/NodeRareData.cpp
+++ b/third_party/WebKit/Source/core/dom/NodeRareData.cpp
@@ -33,7 +33,7 @@
#include "bindings/core/v8/ScriptWrappableVisitor.h"
#include "core/dom/Element.h"
#include "core/dom/ElementRareData.h"
-#include "core/frame/FrameHost.h"
+#include "core/page/Page.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -85,12 +85,12 @@ void NodeRareData::finalizeGarbageCollectedObject() {
}
void NodeRareData::incrementConnectedSubframeCount() {
- SECURITY_CHECK((m_connectedFrameCount + 1) <= FrameHost::maxNumberOfFrames);
+ SECURITY_CHECK((m_connectedFrameCount + 1) <= Page::maxNumberOfFrames);
++m_connectedFrameCount;
}
// Ensure the 10 bits reserved for the m_connectedFrameCount cannot overflow
-static_assert(FrameHost::maxNumberOfFrames <
+static_assert(Page::maxNumberOfFrames <
(1 << NodeRareData::ConnectedFrameCountBits),
"Frame limit should fit in rare data count");
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698