diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-27 09:05:25 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-27 09:05:25 +0200 |
commit | fbaab39c94a047f2a0b0bfbe6cf24a790cd7e8b5 (patch) | |
tree | 7b0e57d393cb08a895973cab2d2072cb2b93a77f /layout/svg/nsSVGEffects.h | |
parent | 580084e9e1d0355c96a54a9641df6c1fee894948 (diff) | |
parent | e3508f55bed8a463d298021633dbc7d079c9d764 (diff) | |
download | UXP-fbaab39c94a047f2a0b0bfbe6cf24a790cd7e8b5.tar UXP-fbaab39c94a047f2a0b0bfbe6cf24a790cd7e8b5.tar.gz UXP-fbaab39c94a047f2a0b0bfbe6cf24a790cd7e8b5.tar.lz UXP-fbaab39c94a047f2a0b0bfbe6cf24a790cd7e8b5.tar.xz UXP-fbaab39c94a047f2a0b0bfbe6cf24a790cd7e8b5.zip |
Merge branch 'master' into Basilisk-release
Diffstat (limited to 'layout/svg/nsSVGEffects.h')
-rw-r--r-- | layout/svg/nsSVGEffects.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/layout/svg/nsSVGEffects.h b/layout/svg/nsSVGEffects.h index 9dd92fd31..0cf9b1500 100644 --- a/layout/svg/nsSVGEffects.h +++ b/layout/svg/nsSVGEffects.h @@ -626,11 +626,23 @@ public: static already_AddRefed<nsIURI> GetPaintURI(nsIFrame* aFrame, nsStyleSVGPaint nsStyleSVG::* aPaint); - /** + /** * A helper function to resolve SVG mask URL. */ static already_AddRefed<nsIURI> GetMaskURI(nsIFrame* aFrame, uint32_t aIndex); + + /** + * Return a baseURL for resolving a local-ref URL. + * + * @param aContent an element which uses a local-ref property. Here are some + * examples: + * <rect fill=url(#foo)> + * <circle clip-path=url(#foo)> + * <use xlink:href="#foo"> + */ + static already_AddRefed<nsIURI> + GetBaseURLForLocalRef(nsIContent* aContent, nsIURI* aDocURI); }; #endif /*NSSVGEFFECTS_H_*/ |