Bug 1664101 - Move DisplayPort*PropertyData below DisplayPortOptions. r=kats

In a later patch, DisplayPortMarginsPropertyData will have a
dependency on one of the options.

Differential Revision: https://phabricator.services.mozilla.com/D92505
This commit is contained in:
Botond Ballo 2020-10-07 22:34:54 +00:00
Родитель c4fb54eee1
Коммит 715fb4d644
1 изменённых файлов: 18 добавлений и 18 удалений

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

@ -22,24 +22,6 @@ namespace mozilla {
class PresShell;
struct DisplayPortPropertyData {
DisplayPortPropertyData(const nsRect& aRect, uint32_t aPriority,
bool aPainted)
: mRect(aRect), mPriority(aPriority), mPainted(aPainted) {}
nsRect mRect;
uint32_t mPriority;
bool mPainted;
};
struct DisplayPortMarginsPropertyData {
DisplayPortMarginsPropertyData(const ScreenMargin& aMargins,
uint32_t aPriority, bool aPainted)
: mMargins(aMargins), mPriority(aPriority), mPainted(aPainted) {}
ScreenMargin mMargins;
uint32_t mPriority;
bool mPainted;
};
// For GetDisplayPort
enum class DisplayportRelativeTo { ScrollPort, ScrollFrame };
@ -72,6 +54,24 @@ struct DisplayPortOptions {
}
};
struct DisplayPortPropertyData {
DisplayPortPropertyData(const nsRect& aRect, uint32_t aPriority,
bool aPainted)
: mRect(aRect), mPriority(aPriority), mPainted(aPainted) {}
nsRect mRect;
uint32_t mPriority;
bool mPainted;
};
struct DisplayPortMarginsPropertyData {
DisplayPortMarginsPropertyData(const ScreenMargin& aMargins,
uint32_t aPriority, bool aPainted)
: mMargins(aMargins), mPriority(aPriority), mPainted(aPainted) {}
ScreenMargin mMargins;
uint32_t mPriority;
bool mPainted;
};
class DisplayPortUtils {
public:
/**