diff options
Diffstat (limited to 'ksvg/impl/SVGMaskElementImpl.cc')
-rw-r--r-- | ksvg/impl/SVGMaskElementImpl.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/ksvg/impl/SVGMaskElementImpl.cc b/ksvg/impl/SVGMaskElementImpl.cc index 16491eb9..51c97be9 100644 --- a/ksvg/impl/SVGMaskElementImpl.cc +++ b/ksvg/impl/SVGMaskElementImpl.cc @@ -296,22 +296,22 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin for(DOM::Node node = firstChild(); !node.isNull(); node = node.nextSibling()) { SVGElementImpl *element = ownerDoc()->getElementFromHandle(node.handle()); - SVGShapeImpl *shape = dynamic_cast<SVGShapeImpl *>(element); + SVGShapeImpl *tqshape = dynamic_cast<SVGShapeImpl *>(element); SVGTestsImpl *tests = dynamic_cast<SVGTestsImpl *>(element); SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(element); bool ok = tests ? tests->ok() : true; - if(element && shape && style && ok && style->getVisible() && style->getDisplay()) + if(element && tqshape && style && ok && style->getVisible() && style->getDisplay()) { SVGLocatableImpl *locatable = dynamic_cast<SVGLocatableImpl *>(element); if(locatable) locatable->updateCachedScreenCTM(baseMatrix); element->createItem(m_canvas); - if(shape->item()) + if(tqshape->item()) { - shape->item()->setReferenced(true); - m_canvas->invalidate(shape->item(), true); + tqshape->item()->setReferenced(true); + m_canvas->tqinvalidate(tqshape->item(), true); } } } @@ -321,15 +321,15 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin for(DOM::Node node = firstChild(); !node.isNull(); node = node.nextSibling()) { SVGElementImpl *element = ownerDoc()->getElementFromHandle(node.handle()); - SVGShapeImpl *shape = dynamic_cast<SVGShapeImpl *>(element); + SVGShapeImpl *tqshape = dynamic_cast<SVGShapeImpl *>(element); SVGTestsImpl *tests = dynamic_cast<SVGTestsImpl *>(element); SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(element); bool ok = tests ? tests->ok() : true; - if(element && shape && style && ok && style->getVisible() && style->getDisplay()) + if(element && tqshape && style && ok && style->getVisible() && style->getDisplay()) { - if(shape) - shape->removeItem(m_canvas); + if(tqshape) + tqshape->removeItem(m_canvas); } } @@ -453,17 +453,17 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin return mask; } -TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const TQRect& screenRectangle) +TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *tqshape, const TQRect& screenRectangle) { TQByteArray cumulativeMask; do { - SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(shape); + SVGStylableImpl *style = dynamic_cast<SVGStylableImpl *>(tqshape); if(style && style->hasMask()) { - SVGElementImpl *element = shape->ownerDoc()->rootElement()->getElementById(style->getMask()); + SVGElementImpl *element = tqshape->ownerDoc()->rootElement()->getElementById(style->getMask()); if(element) { @@ -471,7 +471,7 @@ TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const TQRect& if(maskElement) { - SVGMaskElementImpl::Mask mask = maskElement->createMask(shape); + SVGMaskElementImpl::Mask mask = maskElement->createMask(tqshape); if(!mask.isEmpty()) { @@ -495,21 +495,21 @@ TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const TQRect& } } - DOM::Node parentNode = shape->parentNode(); + DOM::Node parentNode = tqshape->parentNode(); if(!parentNode.isNull()) { - SVGElementImpl *parent = shape->ownerDoc()->getElementFromHandle(parentNode.handle()); + SVGElementImpl *parent = tqshape->ownerDoc()->getElementFromHandle(parentNode.handle()); if(parent) - shape = dynamic_cast<SVGShapeImpl *>(parent); + tqshape = dynamic_cast<SVGShapeImpl *>(parent); else - shape = 0; + tqshape = 0; } else - shape = 0; + tqshape = 0; - } while(shape); + } while(tqshape); return cumulativeMask; } |