Lines Matching refs:instance
78 // If there is no element instance tree, force immediate SVGElementInstance tree
208 for (SVGElementInstance* instance = targetInstance->firstChild(); instance; instance = instance->nextSibling())
209 updateContainerSize(useElement, instance);
256 for (SVGElementInstance* instance = targetInstance->firstChild(); instance; instance = instance->nextSibling())
257 updateContainerOffset(instance);
285 // Update root container offset (not reachable through instance tree)
359 text += String::format("Corresponding element is associated with %i instance(s):\n", elementInstances.size());
372 for (SVGElementInstance* instance = targetInstance->firstChild(); instance; instance = instance->nextSibling())
373 dumpInstanceTree(depth, text, instance);
439 // Do not build the shadow/instance tree for <use> elements living in a shadow tree.
461 // Why a seperated instance/shadow tree? SVG demands it:
462 // The instance tree is accesable from JavaScript, and has to
466 // Build instance tree. Create root SVGElementInstance object for the first sub-tree node.
484 // Assure instance tree building was successfull
490 // Build shadow tree from instance tree
505 // shadow tree elements <-> instances in the instance tree.
510 // Do NOT leave an inconsistent instance tree around, instead destruct it.
520 // Eventually dump instance tree
526 fprintf(stderr, "\nDumping <use> instance tree:\n%s\n", text.latin1().data());
609 // Spec: If the 'use' element references a 'g' which contains two 'rect' elements, then the instance tree
624 RefPtr<SVGElementInstance> instance = SVGElementInstance::create(this, element);
625 SVGElementInstance* instancePtr = instance.get();
626 targetInstance->appendChild(instance.release());
628 // Enter recursion, appending new instance tree nodes to the "instance" object.
633 // object, the instance tree will contain recursive expansion of the indirect references to form a complete tree.
656 SVGElementInstance* instance = targetInstance->parentNode();
657 while (instance) {
658 SVGElement* element = instance->correspondingElement();
665 instance = instance->parentNode();
668 // Create an instance object, even if we're dealing with a cycle
695 // For instance <use> on <foreignObject> (direct case).
705 // For instance: <use> on <g> containing <foreignObject> (indirect case).
749 // For instance <use> on <foreignObject> (direct case).
766 // For instance: <use> on <g> containing <foreignObject> (indirect case).
819 // For instance: <use> on <g> containing <foreignObject> (indirect case).
863 for (SVGElementInstance* instance = target->firstChild(); instance; instance = instance->nextSibling())
864 transferEventListenersToShadowTree(instance);
897 for (SVGElementInstance* instance = targetInstance->firstChild(); node && instance; instance = instance->nextSibling()) {
902 associateInstancesWithShadowTreeElements(node, instance);
917 SVGElementInstance* SVGUseElement::instanceForShadowTreeElement(Node* element, SVGElementInstance* instance) const
920 ASSERT(instance);
923 // this instance hasn't yet been associated to a shadowTree element.
924 if (!instance->shadowTreeElement())
927 if (element == instance->shadowTreeElement())
928 return instance;
930 for (SVGElementInstance* current = instance->firstChild(); current; current = current->nextSibling()) {