Skip to content

Commit

Permalink
Bug 1517682 - Drop layout.css.image-orientation.enabled pref. r=heycam
Browse files Browse the repository at this point in the history
It was enabled by default in bug 825771.

Depends on D15703

Differential Revision: https://phabricator.services.mozilla.com/D15704

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Hiroyuki Ikezoe committed Jan 4, 2019
1 parent 6aaa816 commit 9bdfa0c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 19 deletions.
4 changes: 0 additions & 4 deletions devtools/shared/css/generated/properties-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -9368,10 +9368,6 @@ exports.PREFERENCES = [
"font-optical-sizing",
"layout.css.font-variations.enabled"
],
[
"image-orientation",
"layout.css.image-orientation.enabled"
],
[
"initial-letter",
"layout.css.initial-letter.enabled"
Expand Down
18 changes: 8 additions & 10 deletions layout/style/test/property_database.js
Original file line number Diff line number Diff line change
Expand Up @@ -5206,6 +5206,14 @@ var gCSSProperties = {
other_values: [ "0", "0.3", "-7.3" ],
invalid_values: []
},
"image-orientation": {
domProp: "imageOrientation",
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "none" ],
other_values: [ "from-image" ],
invalid_values: [ "0", "0deg" ],
},
"image-rendering": {
domProp: "imageRendering",
inherited: true,
Expand Down Expand Up @@ -7196,16 +7204,6 @@ if (IsCSSPropertyPrefEnabled("layout.css.contain.enabled")) {
};
}

if (IsCSSPropertyPrefEnabled("layout.css.image-orientation.enabled")) {
gCSSProperties["image-orientation"] = {
domProp: "imageOrientation",
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "none" ],
other_values: [ "from-image" ],
invalid_values: [ "0", "0deg" ]
};
}

if (IsCSSPropertyPrefEnabled("layout.css.initial-letter.enabled")) {
gCSSProperties["initial-letter"] = {
Expand Down
1 change: 0 additions & 1 deletion layout/style/test/test_computed_style_prefs.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
// ----

var gProps = {
"layout.css.image-orientation.enabled": ["image-orientation"],
"layout.css.mix-blend-mode.enabled": ["mix-blend-mode"],
"layout.css.isolation.enabled": [ "isolation"],
"layout.css.touch_action.enabled": ["touch-action"],
Expand Down
3 changes: 0 additions & 3 deletions modules/libpref/init/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3075,9 +3075,6 @@ pref("layout.css.convertFromNode.enabled", true);
// Is support for CSS text-justify property enabled?
pref("layout.css.text-justify.enabled", true);

// Is support for the CSS image-orientation property enabled?
pref("layout.css.image-orientation.enabled", true);

// Is the paint-order property supported for HTML text?
// (It is always supported for SVG.)
pref("layout.css.paint-order.enabled", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,5 @@ ${helpers.single_keyword(
products="gecko",
gecko_enum_prefix="StyleImageOrientation",
animation_value_type="discrete",
gecko_pref="layout.css.image-orientation.enabled",
spec="https://drafts.csswg.org/css-images/#propdef-image-orientation",
)}

0 comments on commit 9bdfa0c

Please sign in to comment.