本文整理汇总了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();
}
示例2: isAnimatableAttribute
bool SVGElement::isAnimatableAttribute(const QualifiedName& name) const
{
if (SVGElement::animatableAttributeForName(name.localName()) == name)
return !filterOutAnimatableAttribute(name);
return false;
}
示例3: threadSafeMatch
static bool threadSafeMatch(const String& localName, const QualifiedName& qName)
{
return threadSafeEqual(localName.impl(), qName.localName().impl());
}
示例4: threadSafeMatch
bool threadSafeMatch(const HTMLIdentifier& localName, const QualifiedName& qName)
{
return threadSafeEqual(localName.asStringImpl(), qName.localName().impl());
}
示例5: inSelectScope
bool HTMLElementStack::inSelectScope(const QualifiedName& tagName) const
{
return inSelectScope(tagName.localName());
}
示例6: addLocalNameToSet
static void addLocalNameToSet(HashSet<AtomicStringImpl*>* set, const QualifiedName& qName)
{
set->add(qName.localName().impl());
}
示例7: addTag
static void addTag(const QualifiedName& tag, ConstructorFunction func)
{
gFunctionMap->set(tag.localName().impl(), func);
}
示例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);
}
}
示例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;
}
示例10: hasAttribute
bool Element::hasAttribute(const QualifiedName& name) const
{
return hasAttributeNS(name.namespaceURI(), name.localName());
}
示例11: match
static bool match(const AtomicString& name, const QualifiedName& qName)
{
ASSERT(isMainThread());
return qName.localName() == name;
}
示例12: createSVGTestPropertyInfo
static SVGPropertyInfo createSVGTestPropertyInfo(const QualifiedName& attributeName, SVGPropertyInfo::SynchronizeProperty synchronizeFunction)
{
return { AnimatedUnknown, PropertyIsReadWrite, attributeName, attributeName.localName(), synchronizeFunction, nullptr };
}
示例13: scheduleStyleInvalidationForAttributeChange
void RuleFeatureSet::scheduleStyleInvalidationForAttributeChange(const QualifiedName& attributeName, Element& element)
{
if (RefPtrWillBeRawPtr<DescendantInvalidationSet> invalidationSet = m_attributeInvalidationSets.get(attributeName.localName()))
m_styleInvalidator.scheduleInvalidation(invalidationSet, element);
}
示例14: getPropertyValue
static inline void getPropertyValue(SVGElement* svgParent, const QualifiedName& attributeName, String& value)
{
ASSERT(svgParent->isStyled());
value = computedStyle(svgParent)->getPropertyValue(cssPropertyID(attributeName.localName()));
}
示例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));
}