当前位置: 首页>>代码示例>>C++>>正文


C++ QualifiedName::localName方法代码示例

本文整理汇总了C++中QualifiedName::localName方法的典型用法代码示例。如果您正苦于以下问题:C++ QualifiedName::localName方法的具体用法?C++ QualifiedName::localName怎么用?C++ QualifiedName::localName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QualifiedName的用法示例。


在下文中一共展示了QualifiedName::localName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: setAttribute

void CSSSelector::setAttribute(const QualifiedName& value, bool isCaseInsensitive)
{
    createRareData();
    m_data.m_rareData->m_attribute = value;
    m_data.m_rareData->m_attributeCanonicalLocalName = isCaseInsensitive ? value.localName().convertToASCIILowercase() : value.localName();
}
开发者ID:josedealcala,项目名称:webkit,代码行数:6,代码来源:CSSSelector.cpp

示例2: isAnimatableAttribute

bool SVGElement::isAnimatableAttribute(const QualifiedName& name) const
{
    if (SVGElement::animatableAttributeForName(name.localName()) == name)
        return !filterOutAnimatableAttribute(name);
    return false;
}
开发者ID:nickooms,项目名称:webkit,代码行数:6,代码来源:SVGElement.cpp

示例3: threadSafeMatch

static bool threadSafeMatch(const String& localName, const QualifiedName& qName)
{
    return threadSafeEqual(localName.impl(), qName.localName().impl());
}
开发者ID:rgabor-dev,项目名称:webkitnix,代码行数:4,代码来源:BackgroundHTMLParser.cpp

示例4: threadSafeMatch

bool threadSafeMatch(const HTMLIdentifier& localName, const QualifiedName& qName)
{
    return threadSafeEqual(localName.asStringImpl(), qName.localName().impl());
}
开发者ID:Happy-Ferret,项目名称:webkit.js,代码行数:4,代码来源:HTMLParserIdioms.cpp

示例5: inSelectScope

bool HTMLElementStack::inSelectScope(const QualifiedName& tagName) const
{
    return inSelectScope(tagName.localName());
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:4,代码来源:HTMLElementStack.cpp

示例6: addLocalNameToSet

static void addLocalNameToSet(HashSet<AtomicStringImpl*>* set, const QualifiedName& qName)
{
    set->add(qName.localName().impl());
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:4,代码来源:HTMLDocument.cpp

示例7: addTag

static void addTag(const QualifiedName& tag, ConstructorFunction func)
{
    gFunctionMap->set(tag.localName().impl(), func);
}
开发者ID:Xertz,项目名称:EAWebKit,代码行数:4,代码来源:MathMLElementFactory.cpp

示例8: collectInvalidationSetsForAttribute

void RuleFeatureSet::collectInvalidationSetsForAttribute(InvalidationSetVector& invalidationSets, Element& element, const QualifiedName& attributeName) const
{
    if (RefPtrWillBeRawPtr<InvalidationSet> invalidationSet = m_attributeInvalidationSets.get(attributeName.localName())) {
        TRACE_SCHEDULE_STYLE_INVALIDATION(element, *invalidationSet, attributeChange, attributeName);
        invalidationSets.append(invalidationSet);
    }
}
开发者ID:OctiumBrowser,项目名称:octium-main,代码行数:7,代码来源:RuleFeature.cpp

示例9: anyAttributeMatches

static bool anyAttributeMatches(Element* element, const CSSSelector* selector, const QualifiedName& selectorAttr, bool caseSensitive)
{
    ASSERT(element->hasAttributesWithoutUpdate());
    for (size_t i = 0, count = element->attributeCount(); i < count; ++i) {
        const Attribute& attribute = element->attributeAt(i);

        if (!attribute.matches(selectorAttr.prefix(), element->isHTMLElement() ? selector->attributeCanonicalLocalName() : selectorAttr.localName(), selectorAttr.namespaceURI()))
            continue;

        if (attributeValueMatches(attribute, static_cast<CSSSelector::Match>(selector->m_match), selector->value(), caseSensitive))
            return true;
    }

    return false;
}
开发者ID:,项目名称:,代码行数:15,代码来源:

示例10: hasAttribute

bool Element::hasAttribute(const QualifiedName& name) const
{
    return hasAttributeNS(name.namespaceURI(), name.localName());
}
开发者ID:Katarzynasrom,项目名称:patch-hosting-for-android-x86-support,代码行数:4,代码来源:Element.cpp

示例11: match

 static bool match(const AtomicString& name, const QualifiedName& qName)
 {
     ASSERT(isMainThread());
     return qName.localName() == name;
 }
开发者ID:,项目名称:,代码行数:5,代码来源:

示例12: createSVGTestPropertyInfo

static SVGPropertyInfo createSVGTestPropertyInfo(const QualifiedName& attributeName, SVGPropertyInfo::SynchronizeProperty synchronizeFunction)
{
    return { AnimatedUnknown, PropertyIsReadWrite, attributeName, attributeName.localName(), synchronizeFunction, nullptr };
}
开发者ID:houzhenggang,项目名称:webkit,代码行数:4,代码来源:SVGTests.cpp

示例13: scheduleStyleInvalidationForAttributeChange

void RuleFeatureSet::scheduleStyleInvalidationForAttributeChange(const QualifiedName& attributeName, Element& element)
{

    if (RefPtrWillBeRawPtr<DescendantInvalidationSet> invalidationSet = m_attributeInvalidationSets.get(attributeName.localName()))
        m_styleInvalidator.scheduleInvalidation(invalidationSet, element);
}
开发者ID:,项目名称:,代码行数:6,代码来源:

示例14: getPropertyValue

static inline void getPropertyValue(SVGElement* svgParent, const QualifiedName& attributeName, String& value)
{
    ASSERT(svgParent->isStyled());
    value = computedStyle(svgParent)->getPropertyValue(cssPropertyID(attributeName.localName()));
}
开发者ID:,项目名称:,代码行数:5,代码来源:

示例15: willModifyAttribute

void Element::willModifyAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& newValue)
{
    if (name == HTMLNames::idAttr)
        updateId(oldValue, newValue);

    if (inActiveDocument() && styleChangeType() < SubtreeStyleChange && affectedByAttributeSelector(name.localName()))
        setNeedsStyleRecalc(LocalStyleChange);

    if (OwnPtr<MutationObserverInterestGroup> recipients = MutationObserverInterestGroup::createForAttributesMutation(*this, name))
        recipients->enqueueMutationRecord(MutationRecord::createAttributes(this, name, oldValue));
}
开发者ID:ksimbili,项目名称:sky_engine,代码行数:11,代码来源:Element.cpp


注:本文中的QualifiedName::localName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。