Bug 677173 - Remove 3D transforms IDL properties because they are disabled. r=dbaron

This commit is contained in:
Matt Woodrow 2011-09-01 11:35:10 +12:00
Родитель 50c2543763
Коммит 52b4490152
6 изменённых файлов: 30 добавлений и 68 удалений

Просмотреть файл

@ -51,7 +51,7 @@
* http://www.w3.org/TR/DOM-Level-2-Style
*/
[builtinclass, scriptable, uuid(519ae4fa-0fee-4aaa-bcb9-34b503236801)]
[builtinclass, scriptable, uuid(79b66107-f9d2-42ac-bc68-b558d79037ec)]
interface nsIDOMCSS2Properties : nsISupports
{
attribute DOMString background;
@ -684,18 +684,6 @@ interface nsIDOMCSS2Properties : nsISupports
attribute DOMString MozTransformOrigin;
// raises(DOMException) on setting
attribute DOMString MozPerspective;
// raises(DOMException) on setting
attribute DOMString MozPerspectiveOrigin;
// raises(DOMException) on setting
attribute DOMString MozBackfaceVisibility;
// raises(DOMException) on setting
attribute DOMString MozTransformStyle;
// raises(DOMException) on setting
attribute DOMString MozWindowShadow;
// raises(DOMException) on setting

Просмотреть файл

@ -351,6 +351,12 @@ nsCSSProps::LookupProperty(const nsACString& aProperty)
}
}
}
if (res == eCSSProperty_perspective || res == eCSSProperty_perspective_origin ||
res == eCSSProperty_backface_visibility || res == eCSSProperty_transform_style) {
return eCSSProperty_UNKNOWN;
}
return res;
}
@ -372,6 +378,12 @@ nsCSSProps::LookupProperty(const nsAString& aProperty)
}
}
}
if (res == eCSSProperty_perspective || res == eCSSProperty_perspective_origin ||
res == eCSSProperty_backface_visibility || res == eCSSProperty_transform_style) {
return eCSSProperty_UNKNOWN;
}
return res;
}

Просмотреть файл

@ -67,6 +67,15 @@ public:
NS_DECL_NSICSSDECLARATION
NS_IMETHOD GetMozPerspective(nsAString_internal&);
NS_IMETHOD SetMozPerspective(const nsAString_internal&);
NS_IMETHOD GetMozPerspectiveOrigin(nsAString_internal&);
NS_IMETHOD SetMozPerspectiveOrigin(const nsAString_internal&);
NS_IMETHOD GetMozBackfaceVisibility(nsAString_internal&);
NS_IMETHOD SetMozBackfaceVisibility(const nsAString_internal&);
NS_IMETHOD GetMozTransformStyle(nsAString_internal&);
NS_IMETHOD SetMozTransformStyle(const nsAString_internal&);
// Require subclasses to implement |GetParentRule|.
//NS_DECL_NSIDOMCSSSTYLEDECLARATION
NS_IMETHOD GetCssText(nsAString & aCssText);

Просмотреть файл

@ -193,6 +193,14 @@ print_array(const char *aName,
// catch if they do.
continue;
if (strcmp(p->propName, "-moz-perspective") == 0 ||
strcmp(p->propName, "-moz-perspective-origin") == 0 ||
strcmp(p->propName, "-moz-backface-visibility") == 0 ||
strcmp(p->propName, "-moz-transform-style") == 0) {
++j;
continue;
}
if (first)
first = 0;
else

Просмотреть файл

@ -981,57 +981,6 @@ var gCSSProperties = {
"border", "center red", "right diagonal",
"#00ffff bottom"]
},
"-moz-perspective-origin": {
domProp: "MozPerspectiveOrigin",
inherited: false,
type: CSS_TYPE_LONGHAND,
/* no subproperties */
prerequisites: { "width": "10px", "height": "10px", "display": "block"},
initial_values: [ "50% 50%", "center", "center center" ],
other_values: [ "25% 25%", "5px 5px", "20% 3em", "0 0", "0in 1in",
"top", "bottom","top left", "top right",
"top center", "center left", "center right",
"bottom left", "bottom right", "bottom center",
"20% center", "5px center", "13in bottom",
"left 50px", "right 13%", "center 40px",
"-moz-calc(20px)",
"-moz-calc(20px) 10px",
"10px -moz-calc(20px)",
"-moz-calc(20px) 25%",
"25% -moz-calc(20px)",
"-moz-calc(20px) -moz-calc(20px)",
"-moz-calc(20px + 1em) -moz-calc(20px / 2)",
"-moz-calc(20px + 50%) -moz-calc(50% - 10px)",
"-moz-calc(-20px) -moz-calc(-50%)",
"-moz-calc(-20%) -moz-calc(-50%)" ],
invalid_values: [ "red", "auto", "none", "0.5 0.5", "40px #0000ff",
"border", "center red", "right diagonal",
"#00ffff bottom"]
},
"-moz-perspective": {
domProp: "MozPerspective",
inherited: false,
type: CSS_TYPE_LONGHAND,
initial_values: [ "none", "0" ],
other_values: [ "1000px", "500.2px", "-100px", "-27.2em" ],
invalid_values: [ "pants", "200" ]
},
"-moz-backface-visibility": {
domProp: "MozBackfaceVisibility",
inherited: false,
type: CSS_TYPE_LONGHAND,
initial_values: [ "visible" ],
other_values: [ "hidden" ],
invalid_values: [ "collapse" ]
},
"-moz-transform-style": {
domProp: "MozTransformStyle",
inherited: false,
type: CSS_TYPE_LONGHAND,
initial_values: [ "flat" ],
other_values: [ "preserve-3d" ],
invalid_values: []
},
"-moz-user-focus": {
domProp: "MozUserFocus",
inherited: true,

Просмотреть файл

@ -80,9 +80,6 @@ var supported_properties = {
"-moz-transform-origin": [ test_length_pair_transition,
test_length_percent_pair_transition,
test_length_percent_pair_unclamped ],
"-moz-perspective-origin": [ test_length_pair_transition,
test_length_percent_pair_transition,
test_length_percent_pair_unclamped ],
"background-color": [ test_color_transition ],
"background-position": [ test_background_position_transition,
// FIXME: We don't currently test clamping,
@ -193,7 +190,6 @@ var supported_properties = {
"padding-top": [ test_length_transition, test_percent_transition,
test_length_percent_calc_transition,
test_length_clamped, test_percent_clamped ],
"-moz-perspective": [ test_length_transition ],
"right": [ test_length_transition, test_percent_transition,
test_length_percent_calc_transition,
test_length_unclamped, test_percent_unclamped ],