diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index c4981b1414d..90f88f47849 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -3781,10 +3781,10 @@ nsEventStateManager::SetCursor(int32_t aCursor, imgIContainer* aContainer, case NS_STYLE_CURSOR_SPINNING: c = eCursor_spinning; break; - case NS_STYLE_CURSOR_MOZ_ZOOM_IN: + case NS_STYLE_CURSOR_ZOOM_IN: c = eCursor_zoom_in; break; - case NS_STYLE_CURSOR_MOZ_ZOOM_OUT: + case NS_STYLE_CURSOR_ZOOM_OUT: c = eCursor_zoom_out; break; case NS_STYLE_CURSOR_NOT_ALLOWED: diff --git a/layout/base/nsStyleConsts.h b/layout/base/nsStyleConsts.h index 281253c51af..a35ad52118d 100644 --- a/layout/base/nsStyleConsts.h +++ b/layout/base/nsStyleConsts.h @@ -345,8 +345,8 @@ static inline mozilla::css::Side operator++(mozilla::css::Side& side, int) { #define NS_STYLE_CURSOR_GRAB 21 #define NS_STYLE_CURSOR_GRABBING 22 #define NS_STYLE_CURSOR_SPINNING 23 -#define NS_STYLE_CURSOR_MOZ_ZOOM_IN 24 -#define NS_STYLE_CURSOR_MOZ_ZOOM_OUT 25 +#define NS_STYLE_CURSOR_ZOOM_IN 24 +#define NS_STYLE_CURSOR_ZOOM_OUT 25 #define NS_STYLE_CURSOR_NOT_ALLOWED 26 #define NS_STYLE_CURSOR_COL_RESIZE 27 #define NS_STYLE_CURSOR_ROW_RESIZE 28 diff --git a/layout/style/nsCSSKeywordList.h b/layout/style/nsCSSKeywordList.h index 3c5deefedc8..71d12d27d84 100644 --- a/layout/style/nsCSSKeywordList.h +++ b/layout/style/nsCSSKeywordList.h @@ -524,6 +524,8 @@ CSS_KEY(x-large, x_large) CSS_KEY(x-small, x_small) CSS_KEY(xx-large, xx_large) CSS_KEY(xx-small, xx_small) +CSS_KEY(zoom-in, zoom_in) +CSS_KEY(zoom-out, zoom_out) // Appearance keywords for widget styles CSS_KEY(radio, radio) diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp index ca29296a5b6..731c26cbdc1 100644 --- a/layout/style/nsCSSProps.cpp +++ b/layout/style/nsCSSProps.cpp @@ -886,11 +886,13 @@ const int32_t nsCSSProps::kCursorKTable[] = { eCSSKeyword_ns_resize, NS_STYLE_CURSOR_NS_RESIZE, eCSSKeyword_ew_resize, NS_STYLE_CURSOR_EW_RESIZE, eCSSKeyword_none, NS_STYLE_CURSOR_NONE, + eCSSKeyword_zoom_in, NS_STYLE_CURSOR_ZOOM_IN, + eCSSKeyword_zoom_out, NS_STYLE_CURSOR_ZOOM_OUT, // -moz- prefixed vendor specific eCSSKeyword__moz_grab, NS_STYLE_CURSOR_GRAB, eCSSKeyword__moz_grabbing, NS_STYLE_CURSOR_GRABBING, - eCSSKeyword__moz_zoom_in, NS_STYLE_CURSOR_MOZ_ZOOM_IN, - eCSSKeyword__moz_zoom_out, NS_STYLE_CURSOR_MOZ_ZOOM_OUT, + eCSSKeyword__moz_zoom_in, NS_STYLE_CURSOR_ZOOM_IN, + eCSSKeyword__moz_zoom_out, NS_STYLE_CURSOR_ZOOM_OUT, eCSSKeyword_UNKNOWN,-1 }; diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index 072ec2796e8..4736f188d9b 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -2339,7 +2339,7 @@ var gCSSProperties = { inherited: true, type: CSS_TYPE_LONGHAND, initial_values: [ "auto" ], - other_values: [ "crosshair", "default", "pointer", "move", "e-resize", "ne-resize", "nw-resize", "n-resize", "se-resize", "sw-resize", "s-resize", "w-resize", "text", "wait", "help", "progress", "copy", "alias", "context-menu", "cell", "not-allowed", "col-resize", "row-resize", "no-drop", "vertical-text", "all-scroll", "nesw-resize", "nwse-resize", "ns-resize", "ew-resize", "none", "-moz-grab", "-moz-grabbing", "-moz-zoom-in", "-moz-zoom-out", "url(foo.png), move", "url(foo.png) 5 7, move", "url(foo.png) 12 3, url(bar.png), no-drop", "url(foo.png), url(bar.png) 7 2, wait", "url(foo.png) 3 2, url(bar.png) 7 9, pointer" ], + other_values: [ "crosshair", "default", "pointer", "move", "e-resize", "ne-resize", "nw-resize", "n-resize", "se-resize", "sw-resize", "s-resize", "w-resize", "text", "wait", "help", "progress", "copy", "alias", "context-menu", "cell", "not-allowed", "col-resize", "row-resize", "no-drop", "vertical-text", "all-scroll", "nesw-resize", "nwse-resize", "ns-resize", "ew-resize", "none", "zoom-in", "zoom-out", "-moz-grab", "-moz-grabbing", "-moz-zoom-in", "-moz-zoom-out", "url(foo.png), move", "url(foo.png) 5 7, move", "url(foo.png) 12 3, url(bar.png), no-drop", "url(foo.png), url(bar.png) 7 2, wait", "url(foo.png) 3 2, url(bar.png) 7 9, pointer" ], invalid_values: [ "url(foo.png)", "url(foo.png) 5 5" ] }, "direction": {