diff --git a/dom/svg/SVGTextContentElement.h b/dom/svg/SVGTextContentElement.h index a837e5a1ba1d..99172b5ea2a1 100644 --- a/dom/svg/SVGTextContentElement.h +++ b/dom/svg/SVGTextContentElement.h @@ -35,15 +35,20 @@ public: // WebIDL already_AddRefed TextLength(); already_AddRefed 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 GetStartPositionOfChar(uint32_t charnum, ErrorResult& rv); + MOZ_CAN_RUN_SCRIPT already_AddRefed GetEndPositionOfChar(uint32_t charnum, ErrorResult& rv); + MOZ_CAN_RUN_SCRIPT already_AddRefed 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 GetNonLayoutDependentNumberOfChars(); + MOZ_CAN_RUN_SCRIPT SVGTextFrame* GetSVGTextFrame(); + MOZ_CAN_RUN_SCRIPT SVGTextFrame* GetSVGTextFrameForNonLayoutDependentQuery(); + MOZ_CAN_RUN_SCRIPT mozilla::Maybe GetNonLayoutDependentNumberOfChars(); enum { LENGTHADJUST }; virtual nsSVGEnum* EnumAttributes() = 0; diff --git a/dom/svg/SVGTransformableElement.h b/dom/svg/SVGTransformableElement.h index 2accc28d7f86..b88ccf056fe2 100644 --- a/dom/svg/SVGTransformableElement.h +++ b/dom/svg/SVGTransformableElement.h @@ -37,6 +37,7 @@ public: already_AddRefed Transform(); nsSVGElement* GetNearestViewportElement(); nsSVGElement* GetFarthestViewportElement(); + MOZ_CAN_RUN_SCRIPT already_AddRefed GetBBox(const SVGBoundingBoxOptions& aOptions, ErrorResult& rv); already_AddRefed GetCTM();