зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c4fb54eee1
Коммит
715fb4d644
|
@ -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:
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче