зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1298655 - Add bindings for constructing nsCSSShadowArray; r=bholley
MozReview-Commit-ID: IFaQwuhsKqH --HG-- extra : rebase_source : 4ecc974b4edef66a48ae1d46d2fec382994f6a29
This commit is contained in:
Родитель
c8fa8d35f8
Коммит
97989b02e7
|
@ -856,6 +856,15 @@ Gecko_NewBasicShape(mozilla::StyleBasicShapeType aType)
|
||||||
|
|
||||||
NS_IMPL_THREADSAFE_FFI_REFCOUNTING(nsStyleCoord::Calc, Calc);
|
NS_IMPL_THREADSAFE_FFI_REFCOUNTING(nsStyleCoord::Calc, Calc);
|
||||||
|
|
||||||
|
nsCSSShadowArray*
|
||||||
|
Gecko_NewCSSShadowArray(uint32_t aLen)
|
||||||
|
{
|
||||||
|
RefPtr<nsCSSShadowArray> arr = new(aLen) nsCSSShadowArray(aLen);
|
||||||
|
return arr.forget().take();
|
||||||
|
}
|
||||||
|
|
||||||
|
NS_IMPL_THREADSAFE_FFI_REFCOUNTING(nsCSSShadowArray, CSSShadowArray);
|
||||||
|
|
||||||
#define STYLE_STRUCT(name, checkdata_cb) \
|
#define STYLE_STRUCT(name, checkdata_cb) \
|
||||||
\
|
\
|
||||||
void \
|
void \
|
||||||
|
|
|
@ -264,6 +264,9 @@ mozilla::StyleBasicShape* Gecko_NewBasicShape(mozilla::StyleBasicShapeType type)
|
||||||
void Gecko_FillAllBackgroundLists(nsStyleImageLayers* layers, uint32_t max_len);
|
void Gecko_FillAllBackgroundLists(nsStyleImageLayers* layers, uint32_t max_len);
|
||||||
NS_DECL_THREADSAFE_FFI_REFCOUNTING(nsStyleCoord::Calc, Calc);
|
NS_DECL_THREADSAFE_FFI_REFCOUNTING(nsStyleCoord::Calc, Calc);
|
||||||
|
|
||||||
|
nsCSSShadowArray* Gecko_NewCSSShadowArray(uint32_t len);
|
||||||
|
NS_DECL_THREADSAFE_FFI_REFCOUNTING(nsCSSShadowArray, CSSShadowArray);
|
||||||
|
|
||||||
// Style-struct management.
|
// Style-struct management.
|
||||||
#define STYLE_STRUCT(name, checkdata_cb) \
|
#define STYLE_STRUCT(name, checkdata_cb) \
|
||||||
struct nsStyle##name; \
|
struct nsStyle##name; \
|
||||||
|
|
|
@ -1111,7 +1111,7 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_INLINE_DECL_REFCOUNTING(nsCSSShadowArray)
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(nsCSSShadowArray)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32_t mLength;
|
uint32_t mLength;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче