Rename nsIAtom as nsAtom.

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than
nsIAtom.
This commit is contained in:
Nicholas Nethercote 2017-10-09 09:27:11 +11:00
parent 55a37930b2
commit 7628c1236a
12 changed files with 12752 additions and 12752 deletions

View file

@ -80,7 +80,7 @@ use gecko_bindings::structs::nsCSSValueSharedList;
use gecko_bindings::structs::nsChangeHint;
use gecko_bindings::structs::nsCursorImage;
use gecko_bindings::structs::nsFont;
use gecko_bindings::structs::nsIAtom;
use gecko_bindings::structs::nsAtom;
use gecko_bindings::structs::nsIURI;
use gecko_bindings::structs::nsCompatibility;
use gecko_bindings::structs::nsRestyleHint;
@ -556,7 +556,7 @@ extern "C" {
RawGeckoPresContextBorrowed,
values: ServoComputedDataBorrowed,
pseudo_type: CSSPseudoElementType,
pseudo_tag: *mut nsIAtom);
pseudo_tag: *mut nsAtom);
}
extern "C" {
pub fn Gecko_ServoStyleContext_Destroy(context: *mut ServoStyleContext);
@ -600,17 +600,17 @@ extern "C" {
element: RawGeckoElementBorrowed) -> bool;
}
extern "C" {
pub fn Gecko_Namespace(element: RawGeckoElementBorrowed) -> *mut nsIAtom;
pub fn Gecko_Namespace(element: RawGeckoElementBorrowed) -> *mut nsAtom;
}
extern "C" {
pub fn Gecko_MatchLang(element: RawGeckoElementBorrowed,
override_lang: *mut nsIAtom,
override_lang: *mut nsAtom,
has_override_lang: bool, value: *const u16)
-> bool;
}
extern "C" {
pub fn Gecko_GetXMLLangValue(element: RawGeckoElementBorrowed)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Gecko_GetDocumentLWTheme(aDocument: *const nsIDocument)
@ -618,108 +618,108 @@ extern "C" {
}
extern "C" {
pub fn Gecko_AtomAttrValue(element: RawGeckoElementBorrowed,
attribute: *mut nsIAtom) -> *mut nsIAtom;
attribute: *mut nsAtom) -> *mut nsAtom;
}
extern "C" {
pub fn Gecko_LangValue(element: RawGeckoElementBorrowed) -> *mut nsIAtom;
pub fn Gecko_LangValue(element: RawGeckoElementBorrowed) -> *mut nsAtom;
}
extern "C" {
pub fn Gecko_HasAttr(element: RawGeckoElementBorrowed, ns: *mut nsIAtom,
name: *mut nsIAtom) -> bool;
pub fn Gecko_HasAttr(element: RawGeckoElementBorrowed, ns: *mut nsAtom,
name: *mut nsAtom) -> bool;
}
extern "C" {
pub fn Gecko_AttrEquals(element: RawGeckoElementBorrowed,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignoreCase: bool) -> bool;
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignoreCase: bool) -> bool;
}
extern "C" {
pub fn Gecko_AttrDashEquals(element: RawGeckoElementBorrowed,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool) -> bool;
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool) -> bool;
}
extern "C" {
pub fn Gecko_AttrIncludes(element: RawGeckoElementBorrowed,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool) -> bool;
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool) -> bool;
}
extern "C" {
pub fn Gecko_AttrHasSubstring(element: RawGeckoElementBorrowed,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool)
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool)
-> bool;
}
extern "C" {
pub fn Gecko_AttrHasPrefix(element: RawGeckoElementBorrowed,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool) -> bool;
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool) -> bool;
}
extern "C" {
pub fn Gecko_AttrHasSuffix(element: RawGeckoElementBorrowed,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool) -> bool;
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool) -> bool;
}
extern "C" {
pub fn Gecko_ClassOrClassList(element: RawGeckoElementBorrowed,
class_: *mut *mut nsIAtom,
classList: *mut *mut *mut nsIAtom) -> u32;
class_: *mut *mut nsAtom,
classList: *mut *mut *mut nsAtom) -> u32;
}
extern "C" {
pub fn Gecko_SnapshotAtomAttrValue(element: *const ServoElementSnapshot,
attribute: *mut nsIAtom)
-> *mut nsIAtom;
attribute: *mut nsAtom)
-> *mut nsAtom;
}
extern "C" {
pub fn Gecko_SnapshotLangValue(element: *const ServoElementSnapshot)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Gecko_SnapshotHasAttr(element: *const ServoElementSnapshot,
ns: *mut nsIAtom, name: *mut nsIAtom)
ns: *mut nsAtom, name: *mut nsAtom)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrEquals(element: *const ServoElementSnapshot,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignoreCase: bool)
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignoreCase: bool)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrDashEquals(element: *const ServoElementSnapshot,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool)
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrIncludes(element: *const ServoElementSnapshot,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool)
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrHasSubstring(element:
*const ServoElementSnapshot,
ns: *mut nsIAtom,
name: *mut nsIAtom,
str: *mut nsIAtom,
ns: *mut nsAtom,
name: *mut nsAtom,
str: *mut nsAtom,
ignore_case: bool) -> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrHasPrefix(element: *const ServoElementSnapshot,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool)
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrHasSuffix(element: *const ServoElementSnapshot,
ns: *mut nsIAtom, name: *mut nsIAtom,
str: *mut nsIAtom, ignore_case: bool)
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotClassOrClassList(element:
*const ServoElementSnapshot,
class_: *mut *mut nsIAtom,
classList: *mut *mut *mut nsIAtom)
class_: *mut *mut nsAtom,
classList: *mut *mut *mut nsAtom)
-> u32;
}
extern "C" {
@ -841,32 +841,32 @@ extern "C" {
extern "C" {
pub fn Gecko_StyleTransition_SetUnsupportedProperty(aTransition:
*mut StyleTransition,
aAtom: *mut nsIAtom);
aAtom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_Atomize(aString: *const ::std::os::raw::c_char, aLength: u32)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Gecko_Atomize16(aString: *const nsAString) -> *mut nsIAtom;
pub fn Gecko_Atomize16(aString: *const nsAString) -> *mut nsAtom;
}
extern "C" {
pub fn Gecko_AddRefAtom(aAtom: *mut nsIAtom);
pub fn Gecko_AddRefAtom(aAtom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_ReleaseAtom(aAtom: *mut nsIAtom);
pub fn Gecko_ReleaseAtom(aAtom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_GetAtomAsUTF16(aAtom: *mut nsIAtom, aLength: *mut u32)
pub fn Gecko_GetAtomAsUTF16(aAtom: *mut nsAtom, aLength: *mut u32)
-> *const u16;
}
extern "C" {
pub fn Gecko_AtomEqualsUTF8(aAtom: *mut nsIAtom,
pub fn Gecko_AtomEqualsUTF8(aAtom: *mut nsAtom,
aString: *const ::std::os::raw::c_char,
aLength: u32) -> bool;
}
extern "C" {
pub fn Gecko_AtomEqualsUTF8IgnoreCase(aAtom: *mut nsIAtom,
pub fn Gecko_AtomEqualsUTF8IgnoreCase(aAtom: *mut nsAtom,
aString:
*const ::std::os::raw::c_char,
aLength: u32) -> bool;
@ -880,7 +880,7 @@ extern "C" {
extern "C" {
pub fn Gecko_nsTArray_FontFamilyName_AppendNamed(aNames:
*mut nsTArray<FontFamilyName>,
aName: *mut nsIAtom,
aName: *mut nsAtom,
aQuoted: bool);
}
extern "C" {
@ -924,9 +924,9 @@ extern "C" {
extern "C" {
pub fn Gecko_AppendFeatureValueHashEntry(value_set:
*mut gfxFontFeatureValueSet,
family: *mut nsIAtom,
family: *mut nsAtom,
alternate: u32,
name: *mut nsIAtom)
name: *mut nsAtom)
-> *mut nsTArray<::std::os::raw::c_uint>;
}
extern "C" {
@ -942,7 +942,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_AppendAlternateValues(font: *mut nsFont, alternate_name: u32,
atom: *mut nsIAtom);
atom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_CopyAlternateValuesFrom(dest: *mut nsFont,
@ -962,7 +962,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_SetCounterStyleToName(ptr: *mut CounterStylePtr,
name: *mut nsIAtom,
name: *mut nsAtom,
pres_context:
RawGeckoPresContextBorrowed);
}
@ -982,7 +982,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_CounterStyle_GetName(ptr: *const CounterStylePtr)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Gecko_CounterStyle_GetAnonymous(ptr: *const CounterStylePtr)
@ -1016,7 +1016,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_SetImageElement(image: *mut nsStyleImage,
atom: *mut nsIAtom);
atom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_CopyImageValueFrom(image: *mut nsStyleImage,
@ -1035,7 +1035,7 @@ extern "C" {
-> *const URLValueData;
}
extern "C" {
pub fn Gecko_GetImageElement(image: *const nsStyleImage) -> *mut nsIAtom;
pub fn Gecko_GetImageElement(image: *const nsStyleImage) -> *mut nsAtom;
}
extern "C" {
pub fn Gecko_GetGradientImageValue(image: *const nsStyleImage)
@ -1189,7 +1189,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_AppendWillChange(display: *mut nsStyleDisplay,
atom: *mut nsIAtom);
atom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_CopyWillChangeFrom(dest: *mut nsStyleDisplay,
@ -1397,12 +1397,12 @@ extern "C" {
}
extern "C" {
pub fn Gecko_CSSValue_SetStringFromAtom(css_value: nsCSSValueBorrowedMut,
atom: *mut nsIAtom,
atom: *mut nsAtom,
unit: nsCSSUnit);
}
extern "C" {
pub fn Gecko_CSSValue_SetAtomIdent(css_value: nsCSSValueBorrowedMut,
atom: *mut nsIAtom);
atom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_CSSValue_SetArray(css_value: nsCSSValueBorrowedMut,
@ -1445,7 +1445,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_nsStyleFont_SetLang(font: *mut nsStyleFont,
atom: *mut nsIAtom);
atom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_nsStyleFont_CopyLangFrom(aFont: *mut nsStyleFont,
@ -1468,7 +1468,7 @@ extern "C" {
RawGeckoPresContextBorrowed);
}
extern "C" {
pub fn Gecko_GetBaseSize(lang: *mut nsIAtom) -> FontSizePrefs;
pub fn Gecko_GetBaseSize(lang: *mut nsAtom) -> FontSizePrefs;
}
extern "C" {
pub fn Gecko_GetBindingParent(aElement: RawGeckoElementBorrowed)
@ -1537,7 +1537,7 @@ extern "C" {
pub fn Gecko_CSSFontFaceRule_Release(aPtr: *mut nsCSSFontFaceRule);
}
extern "C" {
pub fn Gecko_CSSCounterStyle_Create(name: *mut nsIAtom)
pub fn Gecko_CSSCounterStyle_Create(name: *mut nsAtom)
-> *mut nsCSSCounterStyleRule;
}
extern "C" {
@ -1575,7 +1575,7 @@ extern "C" {
arg2: nsCSSPropertyID);
}
extern "C" {
pub fn Gecko_RegisterNamespace(ns: *mut nsIAtom) -> i32;
pub fn Gecko_RegisterNamespace(ns: *mut nsAtom) -> i32;
}
extern "C" {
pub fn Gecko_ShouldCreateStyleThreadPool() -> bool;
@ -2073,7 +2073,7 @@ extern "C" {
}
extern "C" {
pub fn Servo_StyleSet_GetCounterStyleRule(set: RawServoStyleSetBorrowed,
name: *mut nsIAtom)
name: *mut nsAtom)
-> *mut nsCSSCounterStyleRule;
}
extern "C" {
@ -2116,7 +2116,7 @@ extern "C" {
element:
RawGeckoElementBorrowed,
local_name:
*mut nsIAtom)
*mut nsAtom)
-> bool;
}
extern "C" {
@ -2367,11 +2367,11 @@ extern "C" {
}
extern "C" {
pub fn Servo_KeyframesRule_GetName(rule: RawServoKeyframesRuleBorrowed)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Servo_KeyframesRule_SetName(rule: RawServoKeyframesRuleBorrowed,
name: *mut nsIAtom);
name: *mut nsAtom);
}
extern "C" {
pub fn Servo_KeyframesRule_GetCount(rule: RawServoKeyframesRuleBorrowed)
@ -2404,11 +2404,11 @@ extern "C" {
}
extern "C" {
pub fn Servo_NamespaceRule_GetPrefix(rule: RawServoNamespaceRuleBorrowed)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Servo_NamespaceRule_GetURI(rule: RawServoNamespaceRuleBorrowed)
-> *mut nsIAtom;
-> *mut nsAtom;
}
extern "C" {
pub fn Servo_PageRule_GetStyle(rule: RawServoPageRuleBorrowed)
@ -2728,7 +2728,7 @@ extern "C" {
RawServoDeclarationBlockBorrowed,
property:
nsCSSPropertyID,
value: *mut nsIAtom);
value: *mut nsAtom);
}
extern "C" {
pub fn Servo_DeclarationBlock_SetKeywordValue(declarations:
@ -2844,14 +2844,14 @@ extern "C" {
extern "C" {
pub fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null:
ServoStyleContextBorrowedOrNull,
pseudo_tag: *mut nsIAtom,
pseudo_tag: *mut nsAtom,
set:
RawServoStyleSetBorrowed)
-> ServoStyleContextStrong;
}
extern "C" {
pub fn Servo_ComputedValues_Inherit(set: RawServoStyleSetBorrowed,
pseudo_tag: *mut nsIAtom,
pseudo_tag: *mut nsAtom,
parent_style:
ServoStyleContextBorrowedOrNull,
target: InheritTarget)