Beispiel #1
0
SVGElement::SVGElement(const QualifiedName& tagName, Document* doc)
    : StyledElement(doc) // it's wrong, remove it!!! FIXME: vtokarev
//    : StyledElement(tagName, doc)
//    , m_shadowParent(0)
{
    m_prefix = tagName.prefixId();
}
Beispiel #2
0
bool QualifiedName::matches(const QualifiedName& other) const
{
    //FIXME: IMPLEMENT
    return *this == other || (m_localName == other.localNameId() && (m_prefix == other.prefixId() || m_namespace == other.namespaceNameId()));
}
Beispiel #3
0
bool QualifiedName::operator==(const QualifiedName& other) const
{
    /*kDebug() << m_prefix.id() << other.prefixId().id() << ((m_prefix == other.prefixId())) << endl;
    kDebug() << (m_prefix == other.prefixId()) << (m_localName == other.localNameId()) << (m_namespace == other.namespaceNameId()) << endl;*/
    return (m_prefix == other.prefixId() && m_localName == other.localNameId() && m_namespace == other.namespaceNameId());
}
Beispiel #4
0
QualifiedName::QualifiedName(const QualifiedName& name)
{
    m_prefix = name.prefixId();
    m_namespace = name.namespaceNameId();
    m_localName = name.localNameId();
}