diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/NodeRareData.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/dom/NodeRareData.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/NodeRareData.cpp b/chromium/third_party/WebKit/Source/core/dom/NodeRareData.cpp index 65d14a36a2c..6365a9caeeb 100644 --- a/chromium/third_party/WebKit/Source/core/dom/NodeRareData.cpp +++ b/chromium/third_party/WebKit/Source/core/dom/NodeRareData.cpp @@ -73,6 +73,12 @@ void NodeRareData::finalizeGarbageCollectedObject() this->~NodeRareData(); } +void NodeRareData::incrementConnectedSubframeCount(unsigned amount) +{ + RELEASE_ASSERT_WITH_SECURITY_IMPLICATION((m_connectedFrameCount + amount) <= FrameHost::maxNumberOfFrames); + m_connectedFrameCount += amount; +} + // Ensure the 10 bits reserved for the m_connectedFrameCount cannot overflow static_assert(FrameHost::maxNumberOfFrames < (1 << NodeRareData::ConnectedFrameCountBits), "Frame limit should fit in rare data count"); |