Index: Source/core/svg/SVGUseElement.cpp |
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp |
index 6135db12db673f5a251a44b6671e25cea82c851f..dcf24039921efcf431faaa94d80e18f37230f92b 100644 |
--- a/Source/core/svg/SVGUseElement.cpp |
+++ b/Source/core/svg/SVGUseElement.cpp |
@@ -238,7 +238,7 @@ void SVGUseElement::svgAttributeChanged(const QualifiedName& attrName) |
} |
#ifdef DUMP_INSTANCE_TREE |
-static void dumpInstanceTree(unsigned int& depth, String& text, SVGElementInstance* targetInstance) |
+static void dumpInstanceTree(unsigned& depth, String& text, SVGElementInstance* targetInstance) |
{ |
SVGElement* element = targetInstance->correspondingElement(); |
ASSERT(element); |
@@ -258,14 +258,14 @@ static void dumpInstanceTree(unsigned int& depth, String& text, SVGElementInstan |
String parentNodeName = element->parentNode() ? element->parentNode()->nodeName() : "null"; |
String firstChildNodeName = element->firstChild() ? element->firstChild()->nodeName() : "null"; |
- for (unsigned int i = 0; i < depth; ++i) |
+ for (unsigned i = 0; i < depth; ++i) |
text += " "; |
text += String::format("SVGElementInstance this=%p, (parentNode=%s (%p), firstChild=%s (%p), correspondingElement=%s (%p), directUseElement=%s (%p), shadowTreeElement=%s (%p), id=%s)\n", |
targetInstance, parentNodeName.latin1().data(), element->parentNode(), firstChildNodeName.latin1().data(), element->firstChild(), |
elementNodeName.latin1().data(), element, directUseElementName.latin1().data(), directUseElement, shadowTreeElementNodeName.latin1().data(), shadowTreeElement, elementId.latin1().data()); |
- for (unsigned int i = 0; i < depth; ++i) |
+ for (unsigned i = 0; i < depth; ++i) |
text += " "; |
const HashSet<SVGElementInstance*>& elementInstances = element->instancesForElement(); |
@@ -273,7 +273,7 @@ static void dumpInstanceTree(unsigned int& depth, String& text, SVGElementInstan |
const HashSet<SVGElementInstance*>::const_iterator end = elementInstances.end(); |
for (HashSet<SVGElementInstance*>::const_iterator it = elementInstances.begin(); it != end; ++it) { |
- for (unsigned int i = 0; i < depth; ++i) |
+ for (unsigned i = 0; i < depth; ++i) |
text += " "; |
text += String::format(" -> SVGElementInstance this=%p, (refCount: %i, shadowTreeElement in document? %i)\n", |
@@ -484,7 +484,7 @@ void SVGUseElement::buildShadowAndInstanceTree(SVGElement* target) |
// Eventually dump instance tree |
#ifdef DUMP_INSTANCE_TREE |
String text; |
- unsigned int depth = 0; |
+ unsigned depth = 0; |
dumpInstanceTree(depth, text, m_targetElementInstance.get()); |
fprintf(stderr, "\nDumping <use> instance tree:\n%s\n", text.latin1().data()); |