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 @@ ...@@ -12,13 +12,13 @@
namespace WebCore { namespace WebCore {
#ifndef NDEBUG #ifndef NDEBUG
static unsigned checkConnectedSubrameCountIsConsistent(Node&); static unsigned checkConnectedSubframeCountIsConsistent(Node&);
#endif #endif
void ChildFrameDisconnector::disconnect(DisconnectPolicy policy) void ChildFrameDisconnector::disconnect(DisconnectPolicy policy)
{ {
#ifndef NDEBUG #ifndef NDEBUG
checkConnectedSubrameCountIsConsistent(m_root); checkConnectedSubframeCountIsConsistent(m_root);
#endif #endif
if (!m_root.connectedSubframeCount()) if (!m_root.connectedSubframeCount())
...@@ -72,7 +72,7 @@ void ChildFrameDisconnector::collectFrameOwners(ElementShadow& shadow) ...@@ -72,7 +72,7 @@ void ChildFrameDisconnector::collectFrameOwners(ElementShadow& shadow)
} }
#ifndef NDEBUG #ifndef NDEBUG
static unsigned checkConnectedSubrameCountIsConsistent(Node& node) static unsigned checkConnectedSubframeCountIsConsistent(Node& node)
{ {
unsigned count = 0; unsigned count = 0;
...@@ -82,12 +82,12 @@ static unsigned checkConnectedSubrameCountIsConsistent(Node& node) ...@@ -82,12 +82,12 @@ static unsigned checkConnectedSubrameCountIsConsistent(Node& node)
if (ElementShadow* shadow = toElement(node).shadow()) { if (ElementShadow* shadow = toElement(node).shadow()) {
for (ShadowRoot* root = shadow->youngestShadowRoot(); root; root = root->olderShadowRoot()) for (ShadowRoot* root = shadow->youngestShadowRoot(); root; root = root->olderShadowRoot())
count += checkConnectedSubrameCountIsConsistent(*root); count += checkConnectedSubframeCountIsConsistent(*root);
} }
} }
for (Node* child = node.firstChild(); child; child = child->nextSibling()) 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 // If we undercount there's possibly a security bug since we'd leave frames
// in subtrees outside the document. // 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