зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1429531. Add MOZ_CAN_RUN_SCRIPT annotations to SVG methods that can call GetPrimaryFrame. r=mystor
MozReview-Commit-ID: KoXEBUa2OjR
This commit is contained in:
Родитель
c606284204
Коммит
02eaa145e7
|
@ -35,15 +35,20 @@ public:
|
|||
// WebIDL
|
||||
already_AddRefed<SVGAnimatedLength> TextLength();
|
||||
already_AddRefed<SVGAnimatedEnumeration> LengthAdjust();
|
||||
int32_t GetNumberOfChars();
|
||||
float GetComputedTextLength();
|
||||
MOZ_CAN_RUN_SCRIPT int32_t GetNumberOfChars();
|
||||
MOZ_CAN_RUN_SCRIPT float GetComputedTextLength();
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
void SelectSubString(uint32_t charnum, uint32_t nchars, ErrorResult& rv);
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
float GetSubStringLength(uint32_t charnum, uint32_t nchars, ErrorResult& rv);
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
already_AddRefed<nsISVGPoint> GetStartPositionOfChar(uint32_t charnum, ErrorResult& rv);
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
already_AddRefed<nsISVGPoint> GetEndPositionOfChar(uint32_t charnum, ErrorResult& rv);
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
already_AddRefed<SVGIRect> GetExtentOfChar(uint32_t charnum, ErrorResult& rv);
|
||||
float GetRotationOfChar(uint32_t charnum, ErrorResult& rv);
|
||||
int32_t GetCharNumAtPosition(nsISVGPoint& point);
|
||||
MOZ_CAN_RUN_SCRIPT float GetRotationOfChar(uint32_t charnum, ErrorResult& rv);
|
||||
MOZ_CAN_RUN_SCRIPT int32_t GetCharNumAtPosition(nsISVGPoint& point);
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -51,9 +56,9 @@ protected:
|
|||
: SVGTextContentElementBase(aNodeInfo)
|
||||
{}
|
||||
|
||||
SVGTextFrame* GetSVGTextFrame();
|
||||
SVGTextFrame* GetSVGTextFrameForNonLayoutDependentQuery();
|
||||
mozilla::Maybe<int32_t> GetNonLayoutDependentNumberOfChars();
|
||||
MOZ_CAN_RUN_SCRIPT SVGTextFrame* GetSVGTextFrame();
|
||||
MOZ_CAN_RUN_SCRIPT SVGTextFrame* GetSVGTextFrameForNonLayoutDependentQuery();
|
||||
MOZ_CAN_RUN_SCRIPT mozilla::Maybe<int32_t> GetNonLayoutDependentNumberOfChars();
|
||||
|
||||
enum { LENGTHADJUST };
|
||||
virtual nsSVGEnum* EnumAttributes() = 0;
|
||||
|
|
|
@ -37,6 +37,7 @@ public:
|
|||
already_AddRefed<SVGAnimatedTransformList> Transform();
|
||||
nsSVGElement* GetNearestViewportElement();
|
||||
nsSVGElement* GetFarthestViewportElement();
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
already_AddRefed<SVGIRect> GetBBox(const SVGBoundingBoxOptions& aOptions,
|
||||
ErrorResult& rv);
|
||||
already_AddRefed<SVGMatrix> GetCTM();
|
||||
|
|
Загрузка…
Ссылка в новой задаче