Bug 1447056 part 1 - Move eWindowType_sheet to be before eWindowType_popup. r=mstange

nsBaseWidget::BoundsUseDesktopPixels() states that window types before
eWindowType_sheet take desktop pixels rather than device pixels for
parameters of Move and Resize.

Cocoa widget seems to treat all of them as desktop pixels, and sheet is
one of the window types that it can actually open, so it should be put
before popup so that BoundsUseDesktopPixels() is correct on that.

MozReview-Commit-ID: FPqOoUQlQCy

--HG--
extra : rebase_source : cf625c6bf75888abfdf2393b3c3937a073c3b613
extra : source : e2080039ee9e7270b87a5512927bb151a1154b3f
This commit is contained in:
Xidorn Quan 2018-04-05 08:08:30 +10:00
Родитель 58b4822076
Коммит 66569d7e37
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -16,6 +16,7 @@ enum nsWindowType {
eWindowType_toplevel, // default top level window
eWindowType_dialog, // top level window but usually handled differently
// by the OS
eWindowType_sheet, // MacOSX sheet (special dialog class)
eWindowType_popup, // used for combo boxes, etc
eWindowType_child, // child windows (contained inside a window on the
// desktop (has no border))
@ -23,7 +24,6 @@ enum nsWindowType {
eWindowType_plugin, // plugin window
eWindowType_plugin_ipc_chrome, // chrome side native widget for plugins (e10s)
eWindowType_plugin_ipc_content, // content side puppet widget for plugins (e10s)
eWindowType_sheet, // MacOSX sheet (special dialog class)
};
/**