Commit da1ac85d authored by philipj@opera.com's avatar philipj@opera.com

Fix typo checkConnectedSubf(r)ameCountIsConsistent

Review URL: https://codereview.chromium.org/340813002

git-svn-id: svn://svn.chromium.org/blink/trunk@176419 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 01cd0f30
......@@ -12,13 +12,13 @@
namespace WebCore {
#ifndef NDEBUG
static unsigned checkConnectedSubrameCountIsConsistent(Node&);
static unsigned checkConnectedSubframeCountIsConsistent(Node&);
#endif
void ChildFrameDisconnector::disconnect(DisconnectPolicy policy)
{
#ifndef NDEBUG
checkConnectedSubrameCountIsConsistent(m_root);
checkConnectedSubframeCountIsConsistent(m_root);
#endif
if (!m_root.connectedSubframeCount())
......@@ -72,7 +72,7 @@ void ChildFrameDisconnector::collectFrameOwners(ElementShadow& shadow)
}
#ifndef NDEBUG
static unsigned checkConnectedSubrameCountIsConsistent(Node& node)
static unsigned checkConnectedSubframeCountIsConsistent(Node& node)
{
unsigned count = 0;
......@@ -82,12 +82,12 @@ static unsigned checkConnectedSubrameCountIsConsistent(Node& node)
if (ElementShadow* shadow = toElement(node).shadow()) {
for (ShadowRoot* root = shadow->youngestShadowRoot(); root; root = root->olderShadowRoot())
count += checkConnectedSubrameCountIsConsistent(*root);
count += checkConnectedSubframeCountIsConsistent(*root);
}
}
for (Node* child = node.firstChild(); child; child = child->nextSibling())
count += checkConnectedSubrameCountIsConsistent(*child);
count += checkConnectedSubframeCountIsConsistent(*child);
// If we undercount there's possibly a security bug since we'd leave frames
// in subtrees outside the document.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment