1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <AutoVisualizer xmlns=
"http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
4 <!-- Mozilla Gecko Visualizers -->
6 <Type Name=
"mozilla::Maybe<*>">
7 <DisplayString Condition=
"mIsSome == false">Nothing
</DisplayString>
8 <DisplayString Condition=
"mIsSome == true">Some({*($T1 *)
&mStorage.val})
</DisplayString>
10 <ExpandedItem Condition=
"mIsSome == true">*($T1 *)
&mStorage.val
</ExpandedItem>
14 <Type Name=
"mozilla::Result<*,*>">
15 <DisplayString>{mImpl}
</DisplayString>
18 <Type Name=
"mozilla::detail::ResultImplementation<*,*,mozilla::detail::PackingStrategy::Variant>">
19 <DisplayString Condition=
"mStorage.tag == false">ok: {*($T1 *)(mStorage.rawData)}
</DisplayString>
20 <DisplayString Condition=
"mStorage.tag == true">err: {*($T2 *)(mStorage.rawData)}
</DisplayString>
21 <DisplayString>%% invalid storage tag in variant %%
</DisplayString>
23 <ExpandedItem Condition=
"mStorage.tag == false">*($T1 *)(mStorage.rawData)
</ExpandedItem>
24 <ExpandedItem Condition=
"mStorage.tag == true">*($T2 *)(mStorage.rawData)
</ExpandedItem>
29 <Type Name=
"nsTArray<*>">
30 <DisplayString Condition=
"mHdr->mLength == 0 && mHdr->mCapacity == 0">empty
</DisplayString>
31 <DisplayString Condition=
"mHdr->mLength == mHdr->mCapacity">size = {mHdr-
>mLength}
</DisplayString>
32 <DisplayString>size = {mHdr-
>mLength}, capacity = {mHdr-
>mCapacity}
</DisplayString>
34 <ArrayItems Condition=
"mHdr->mLength > 0">
35 <Size>mHdr-
>mLength
</Size>
36 <ValuePointer>($T1*)(mHdr +
1)
</ValuePointer>
42 <Type Name=
"nsAutoRefCnt">
43 <DisplayString>{mValue}
</DisplayString>
46 <Type Name=
"nsCycleCollectingAutoRefCnt">
47 <!-- this value needs to be updated if NS_NUMBER_OF_FLAGS_IN_REFCNT in xpcom/glue/nsISupportsImpl.h changes -->
48 <DisplayString>{mValue
>> 2}
</DisplayString>
50 <Synthetic Name=
"In Purple Buffer"><DisplayString>{mValue
& 1 !=
0}
</DisplayString></Synthetic>
51 <Synthetic Name=
"Is Purple"><DisplayString>{mValue
& 2 !=
0}
</DisplayString></Synthetic>
55 <Type Name=
"mozilla::ThreadSafeAutoRefCnt">
56 <DisplayString>{mValue.mValue._My_val}
</DisplayString>
59 <!-- smart pointer/refcount pointer things -->
60 <Type Name=
"nsRefPtr<*>">
61 <AlternativeType Name=
"nsCOMPtr<*>" />
62 <AlternativeType Name=
"nsAutoPtr<*>" />
63 <AlternativeType Name=
"mozilla::WebGLRefPtr<*>" />
65 <DisplayString Condition=
"mRawPtr == 0">NULL
</DisplayString>
66 <DisplayString>{*($T1*)mRawPtr}
</DisplayString>
68 <ExpandedItem>($T1*)mRawPtr
</ExpandedItem>
73 <Type Name=
"nsTString<char>">
74 <AlternativeType Name=
"nsTLiteralString<char>" />
75 <AlternativeType Name=
"mozilla::detail::nsTStringRepr<char>" />
76 <AlternativeType Name=
"nsTSubstring<char>" />
78 <DisplayString>{mData,s}
</DisplayString>
79 <StringView>mData,s
</StringView>
81 <Item Name=
"Length">mLength
</Item>
82 <Item Name=
"Flags">mDataFlags
</Item>
86 <Type Name=
"nsTSubstringTuple<char>">
87 <DisplayString Condition=
"mHead != nullptr">{mHead,na} {mFragB-
>mData,s}
</DisplayString>
88 <DisplayString Condition=
"mHead == nullptr">{mFragA-
>mData,s} {mFragB-
>mData,s}
</DisplayString>
91 <Type Name=
"nsTString<char16_t>">
92 <AlternativeType Name=
"nsTLiteralString<char16_t>" />
93 <AlternativeType Name=
"mozilla::detail::nsTStringRepr<char16_t>" />
94 <AlternativeType Name=
"nsTSubstring<char16_t>" />
96 <DisplayString>{mData,su}
</DisplayString>
97 <StringView>mData,su
</StringView>
99 <Item Name=
"Length">mLength
</Item>
100 <Item Name=
"Flags">mDataFlags
</Item>
104 <Type Name=
"nsTSubstringTuple<char16_t>">
105 <DisplayString Condition=
"mHead != nullptr">{mHead,na} {mFragB-
>mData,su}
</DisplayString>
106 <DisplayString Condition=
"mHead == nullptr">{mFragA-
>mData,su} {mFragB-
>mData,su}
</DisplayString>
109 <!-- rects, points, etc. -->
110 <Type Name=
"mozilla::gfx::BaseRect<*,*,*,*,*>">
111 <AlternativeType Name=
"mozilla::gfx::Rect" />
112 <DisplayString>x={x}, y={y}, width={width}, height={height}
</DisplayString>
115 <Type Name=
"mozilla::gfx::BaseSize<*,*>">
116 <AlternativeType Name=
"mozilla::gfx::Size" />
117 <AlternativeType Name=
"nsIntSize" />
118 <DisplayString>width={width}, height={height}
</DisplayString>
121 <Type Name=
"mozilla::gfx::BasePoint<*,*>">
122 <AlternativeType Name=
"mozilla::gfx::Point" />
123 <DisplayString>x={x}, y={y}
</DisplayString>
126 <Type Name=
"mozilla::gfx::Matrix4x4">
127 <AlternativeType Name=
"gfx3DMatrix" />
128 <DisplayString Condition=
"(_11==_22==_33==_44==1) && (_12==_13==_14==_21==_23==_24==_31==_32==_34==_41==_42==_43==0)">[Identity]
</DisplayString>
129 <DisplayString Condition=
"(_11==_22==_33==_44==1) && (_12==_13==_14==_21==_23==_24==_31==_32==_34==0)">[Translate: ({_41}, {_42}, {_43})]
</DisplayString>
130 <DisplayString Condition=
"_44==1 && (_12==_13==_14==_21==_23==_24==_31==_32==_34==_41==_42==_43==0)">[Scale: ({_11}, {_22}, {_33})]
</DisplayString>
131 <DisplayString>[
4x4 Matrix]
</DisplayString>
134 <Synthetic Name=
"R1"><DisplayString>[{_11}, {_12}, {_13}, {_14}]
</DisplayString></Synthetic>
135 <Synthetic Name=
"R2"><DisplayString>[{_21}, {_22}, {_23}, {_24}]
</DisplayString></Synthetic>
136 <Synthetic Name=
"R3"><DisplayString>[{_31}, {_32}, {_33}, {_34}]
</DisplayString></Synthetic>
137 <Synthetic Name=
"R4"><DisplayString>[{_41}, {_42}, {_43}, {_44}]
</DisplayString></Synthetic>
142 <Type Name=
"JS::Handle<*>">
143 <DisplayString Condition=
"ptr == 0">NULL
</DisplayString>
144 <DisplayString>{*($T1*)ptr}
</DisplayString>
146 <ExpandedItem>($T1*)ptr
</ExpandedItem>