зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1133174 - Disable SVGGraphicsElement.{nearest,farthest}ViewportElement in early beta r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D163907
This commit is contained in:
Родитель
161cf57d1e
Коммит
5046858f0c
|
@ -62,3 +62,5 @@ DEPRECATED_OPERATION(OffscreenCanvasToBlob)
|
|||
DEPRECATED_OPERATION(IDBDatabaseCreateMutableFile)
|
||||
DEPRECATED_OPERATION(IDBMutableFileOpen)
|
||||
DEPRECATED_OPERATION(MozPreservesPitchDeprecatedPrefix)
|
||||
DEPRECATED_OPERATION(SVGNearestViewportElement)
|
||||
DEPRECATED_OPERATION(SVGFarthestViewportElement)
|
||||
|
|
|
@ -308,6 +308,10 @@ WindowContentUntrustedWarning=The ‘content’ attribute of Window objects is d
|
|||
SVGRefLoopWarning=The SVG <%S> with ID “%S” has a reference loop.
|
||||
# LOCALIZATION NOTE: The first %S is the tag name of the element in the chain where the chain was broken, the second %S is the element's ID.
|
||||
SVGRefChainLengthExceededWarning=An SVG <%S> reference chain which is too long was abandoned at the element with ID “%S”.
|
||||
# LOCALIZATION NOTE: Do not translate SVGGraphicsElement.nearestViewportElement or SVGElement.viewportElement.
|
||||
SVGNearestViewportElement=SVGGraphicsElement.nearestViewportElement is deprecated and will be removed at a future date. Use SVGElement.viewportElement instead.
|
||||
# LOCALIZATION NOTE: Do not translate SVGGraphicsElement.farthestViewportElement.
|
||||
SVGFarthestViewportElement=SVGGraphicsElement.farthestViewportElement is deprecated and will be removed at a future date.
|
||||
# LOCALIZATION NOTE: Do not translate "<script>".
|
||||
ScriptSourceEmpty=‘%S’ attribute of <script> element is empty.
|
||||
# LOCALIZATION NOTE: Do not translate "<script>".
|
||||
|
|
|
@ -49,24 +49,6 @@ function runTest() {
|
|||
is(g3.viewportElement, null, "g3.viewportElement");
|
||||
is(symbolRect.viewportElement, sym, "symbolRect.viewportElement");
|
||||
|
||||
<!-- nearestViewportElement -->
|
||||
is(root.nearestViewportElement, null, "root.nearestViewportElement");
|
||||
is(inner.nearestViewportElement, root, "inner.nearestViewportElement");
|
||||
is(g1.nearestViewportElement, inner, "g1.nearestViewportElement");
|
||||
is(outer.nearestViewportElement, null, "outer.nearestViewportElement");
|
||||
is(g2.nearestViewportElement, outer, "g2.nearestViewportElement");
|
||||
is(g3.nearestViewportElement, null, "g3.nearestViewportElement");
|
||||
is(symbolRect.nearestViewportElement, sym, "symbolRect.nearestViewportElement");
|
||||
|
||||
<!-- farthestViewportElement -->
|
||||
is(root.farthestViewportElement, null, "root.farthestViewportElement");
|
||||
is(inner.farthestViewportElement, root, "inner.farthestViewportElement");
|
||||
is(g1.farthestViewportElement, root, "g1.farthestViewportElement");
|
||||
is(outer.farthestViewportElement, null, "outer.farthestViewportElement");
|
||||
is(g2.farthestViewportElement, outer, "g2.farthestViewportElement");
|
||||
is(g3.farthestViewportElement, null, "g3.farthestViewportElement");
|
||||
is(symbolRect.farthestViewportElement, root, "symbolRect.farthestViewportElement");
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,11 @@ interface SVGGraphicsElement : SVGElement {
|
|||
|
||||
readonly attribute SVGAnimatedTransformList transform;
|
||||
|
||||
[Deprecated="SVGNearestViewportElement",
|
||||
Pref="svg.nearestAndFarthestViewportElement.enabled"]
|
||||
readonly attribute SVGElement? nearestViewportElement;
|
||||
[Deprecated="SVGFarthestViewportElement",
|
||||
Pref="svg.nearestAndFarthestViewportElement.enabled"]
|
||||
readonly attribute SVGElement? farthestViewportElement;
|
||||
|
||||
[NewObject]
|
||||
|
|
|
@ -13521,6 +13521,12 @@
|
|||
value: false
|
||||
mirror: always
|
||||
|
||||
# Whether SVGGraphicsElement.nearestViewportElement and SVGGraphicsElement.farthestViewportElement are enabled.
|
||||
- name: svg.nearestAndFarthestViewportElement.enabled
|
||||
type: bool
|
||||
value: @IS_NOT_EARLY_BETA_OR_EARLIER@
|
||||
mirror: always
|
||||
|
||||
# Tweak which elements are allowed in <svg:use> subtrees, and in which
|
||||
# circumstances. See RemoveForbiddenNodes in SVGUseElement.cpp for the spec
|
||||
# text.
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[historical.html]
|
||||
prefs: [svg.nearestAndFarthestViewportElement.enabled:false]
|
|
@ -66,8 +66,10 @@ var removedMembers = {
|
|||
"xmlspace"
|
||||
],
|
||||
"SVGGraphicsElement": [
|
||||
"farthestViewportElement",
|
||||
"getTransformToElement",
|
||||
"hasExtension",
|
||||
"nearestViewportElement",
|
||||
"requiredFeatures"
|
||||
],
|
||||
"SVGSVGElement": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче