當前位置: 首頁>>代碼示例>>C++>>正文


C++ FindAttributeDependence函數代碼示例

本文整理匯總了C++中FindAttributeDependence函數的典型用法代碼示例。如果您正苦於以下問題:C++ FindAttributeDependence函數的具體用法?C++ FindAttributeDependence怎麽用?C++ FindAttributeDependence使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了FindAttributeDependence函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: FindAttributeDependence

SVGPathElement::IsAttributeMapped(const nsIAtom* name) const
{
  static const MappedAttributeEntry* const map[] = {
    sMarkersMap
  };

  return FindAttributeDependence(name, map) ||
    SVGPathElementBase::IsAttributeMapped(name);
}
開發者ID:ak352,項目名稱:mozilla-central,代碼行數:9,代碼來源:SVGPathElement.cpp

示例2: FindAttributeDependence

nsSVGImageElement::IsAttributeMapped(const nsIAtom* name) const
{
  static const MappedAttributeEntry* const map[] = {
    sViewportsMap,
  };
  
  return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||
    nsSVGImageElementBase::IsAttributeMapped(name);
}
開發者ID:MozillaOnline,項目名稱:gecko-dev,代碼行數:9,代碼來源:nsSVGImageElement.cpp

示例3: FindAttributeDependence

HTMLVideoElement::IsAttributeMapped(const nsAtom* aAttribute) const {
  static const MappedAttributeEntry attributes[] = {
      {nsGkAtoms::width}, {nsGkAtoms::height}, {nullptr}};

  static const MappedAttributeEntry* const map[] = {attributes,
                                                    sCommonAttributeMap};

  return FindAttributeDependence(aAttribute, map);
}
開發者ID:jld,項目名稱:gecko-dev,代碼行數:9,代碼來源:HTMLVideoElement.cpp

示例4: FindAttributeDependence

nsHTMLFrameElement::IsAttributeMapped(const nsIAtom* aAttribute) const
{
  static const MappedAttributeEntry* const map[] = {
    sScrollingAttributeMap,
    sCommonAttributeMap,
  };
  
  return FindAttributeDependence(aAttribute, map, NS_ARRAY_LENGTH(map));
}
開發者ID:lofter2011,項目名稱:Icefox,代碼行數:9,代碼來源:nsHTMLFrameElement.cpp

示例5: FindAttributeDependence

HTMLTextAreaElement::IsAttributeMapped(const nsIAtom* aAttribute) const
{
  static const MappedAttributeEntry* const map[] = {
    sDivAlignAttributeMap,
    sCommonAttributeMap,
  };

  return FindAttributeDependence(aAttribute, map);
}
開發者ID:JaminLiu,項目名稱:gecko-dev,代碼行數:9,代碼來源:HTMLTextAreaElement.cpp

示例6: FindAttributeDependence

nsSVGGradientElement::IsAttributeMapped(const nsIAtom* name) const
{
  static const MappedAttributeEntry* const map[] = {
    sColorMap,
    sGradientStopMap
  };
  
  return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||
    nsSVGGradientElementBase::IsAttributeMapped(name);
}
開發者ID:EdgarChen,項目名稱:mozilla-cvs-history,代碼行數:10,代碼來源:nsSVGGradientElement.cpp

示例7: FindAttributeDependence

HTMLSharedObjectElement::IsAttributeMapped(const nsIAtom *aAttribute) const
{
  static const MappedAttributeEntry* const map[] = {
    sCommonAttributeMap,
    sImageMarginSizeAttributeMap,
    sImageBorderAttributeMap,
    sImageAlignAttributeMap,
  };

  return FindAttributeDependence(aAttribute, map);
}
開發者ID:LordJZ,項目名稱:gecko-dev,代碼行數:11,代碼來源:HTMLSharedObjectElement.cpp

示例8: FindAttributeDependence

nsHTMLDivElement::IsAttributeMapped(const nsIAtom* aAttribute) const
{
  if (mNodeInfo->Equals(nsGkAtoms::div)) {
    static const MappedAttributeEntry* const map[] = {
      sDivAlignAttributeMap,
      sCommonAttributeMap
    };
    return FindAttributeDependence(aAttribute, map, NS_ARRAY_LENGTH(map));
  }
  if (mNodeInfo->Equals(nsGkAtoms::marquee)) {  
    static const MappedAttributeEntry* const map[] = {
      sImageMarginSizeAttributeMap,
      sBackgroundColorAttributeMap,
      sCommonAttributeMap
    };
    return FindAttributeDependence(aAttribute, map, NS_ARRAY_LENGTH(map));
  }

  return nsGenericHTMLElement::IsAttributeMapped(aAttribute);
}
開發者ID:AllenDou,項目名稱:firefox,代碼行數:20,代碼來源:nsHTMLDivElement.cpp

示例9: FindAttributeDependence

HTMLTextAreaElement::IsAttributeMapped(const nsAtom* aAttribute) const {
  static const MappedAttributeEntry attributes[] = {{nsGkAtoms::wrap},
                                                    {nullptr}};

  static const MappedAttributeEntry* const map[] = {
      attributes,
      sDivAlignAttributeMap,
      sCommonAttributeMap,
  };

  return FindAttributeDependence(aAttribute, map);
}
開發者ID:jasonLaster,項目名稱:gecko-dev,代碼行數:12,代碼來源:HTMLTextAreaElement.cpp

示例10: FindAttributeDependence

nsSVGTextPathElement::IsAttributeMapped(const nsIAtom* name) const
{
  static const MappedAttributeEntry* const map[] = {
    sColorMap,
    sFillStrokeMap,
    sFontSpecificationMap,
    sGraphicsMap,
    sTextContentElementsMap
  };
  
  return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||
    nsSVGTextPathElementBase::IsAttributeMapped(name);
}
開發者ID:Egyptghost1,項目名稱:DOMinator,代碼行數:13,代碼來源:nsSVGTextPathElement.cpp

示例11: Tag

PRBool
nsMathMLElement::IsAttributeMapped(const nsIAtom* aAttribute) const
{
  static const MappedAttributeEntry* const tokenMap[] = {
    sTokenStyles
  };
  static const MappedAttributeEntry* const mstyleMap[] = {
    sTokenStyles,
    sEnvironmentStyles
  };
  
  // We don't support mglyph (yet).
  nsIAtom* tag = Tag();
  if (tag == nsGkAtoms::ms_ || tag == nsGkAtoms::mi_ ||
      tag == nsGkAtoms::mn_ || tag == nsGkAtoms::mo_ ||
      tag == nsGkAtoms::mtext_)
    return FindAttributeDependence(aAttribute, tokenMap,
                                   NS_ARRAY_LENGTH(tokenMap));
  if (tag == nsGkAtoms::mstyle_)
    return FindAttributeDependence(aAttribute, mstyleMap,
                                   NS_ARRAY_LENGTH(mstyleMap));
  return PR_FALSE;
}
開發者ID:PolyMtl,項目名稱:crash-inducing,代碼行數:23,代碼來源:00744b85e7e4da4714ede502dbd00b4a0ff7e25d.cpp

示例12: FindAttributeDependence

nsHTMLLIElement::IsAttributeMapped(const nsIAtom* aAttribute) const
{
  static const MappedAttributeEntry attributes[] = {
    { &nsGkAtoms::type },
    { nsnull },
  };

  static const MappedAttributeEntry* const map[] = {
    attributes,
    sCommonAttributeMap,
  };

  return FindAttributeDependence(aAttribute, map, NS_ARRAY_LENGTH(map));
}
開發者ID:Akin-Net,項目名稱:mozilla-central,代碼行數:14,代碼來源:nsHTMLLIElement.cpp

示例13: FindAttributeDependence

nsSVGFilterElement::IsAttributeMapped(const nsIAtom* name) const
{
  static const MappedAttributeEntry* const map[] = {
    sFEFloodMap,
    sFiltersMap,
    sFontSpecificationMap,
    sGradientStopMap,
    sLightingEffectsMap,
    sMarkersMap,
    sTextContentElementsMap,
    sViewportsMap
  };
  return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||
    nsSVGGraphicElementBase::IsAttributeMapped(name);
}
開發者ID:MozillaOnline,項目名稱:gecko-dev,代碼行數:15,代碼來源:nsSVGFilterElement.cpp

示例14: FindAttributeDependence

SVGSwitchElement::IsAttributeMapped(const nsAtom* name) const
{
  static const MappedAttributeEntry* const map[] = {
    sFEFloodMap,
    sFiltersMap,
    sFontSpecificationMap,
    sGradientStopMap,
    sLightingEffectsMap,
    sMarkersMap,
    sTextContentElementsMap,
    sViewportsMap
  };

  return FindAttributeDependence(name, map) ||
    SVGSwitchElementBase::IsAttributeMapped(name);
}
開發者ID:marcoscaceres,項目名稱:gecko-dev,代碼行數:16,代碼來源:SVGSwitchElement.cpp

示例15: FindAttributeDependence

HTMLFontElement::IsAttributeMapped(const nsIAtom* aAttribute) const
{
    static const MappedAttributeEntry attributes[] = {
        { &nsGkAtoms::face },
        { &nsGkAtoms::size },
        { &nsGkAtoms::color },
        { nullptr }
    };

    static const MappedAttributeEntry* const map[] = {
        attributes,
        sCommonAttributeMap,
    };

    return FindAttributeDependence(aAttribute, map);
}
開發者ID:nhirata,項目名稱:releases-mozilla-central,代碼行數:16,代碼來源:HTMLFontElement.cpp


注:本文中的FindAttributeDependence函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。