зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1595800 - Part 3: Remove screen orientation attributes used for RDM from Document. r=smaug
Depends on D55001 Differential Revision: https://phabricator.services.mozilla.com/D55002 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6769078c62
Коммит
8c7e4877d3
|
@ -1346,8 +1346,6 @@ Document::Document(const char* aContentType)
|
|||
mFlashClassification(FlashClassification::Unknown),
|
||||
mScrollAnchorAdjustmentLength(0),
|
||||
mScrollAnchorAdjustmentCount(0),
|
||||
mCurrentOrientationAngle(0),
|
||||
mCurrentOrientationType(OrientationType::Portrait_primary),
|
||||
mServoRestyleRootDirtyBits(0),
|
||||
mThrowOnDynamicMarkupInsertionCounter(0),
|
||||
mIgnoreOpensDuringUnloadCounter(0),
|
||||
|
@ -13572,12 +13570,6 @@ bool Document::SetOrientationPendingPromise(Promise* aPromise) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Document::SetRDMPaneOrientation(OrientationType aType, uint16_t aAngle) {
|
||||
if (GetBrowsingContext()->InRDMPane()) {
|
||||
SetCurrentOrientation(aType, aAngle);
|
||||
}
|
||||
}
|
||||
|
||||
static void DispatchPointerLockChange(Document* aTarget) {
|
||||
if (!aTarget) {
|
||||
return;
|
||||
|
|
|
@ -2289,23 +2289,12 @@ class Document : public nsINode,
|
|||
|
||||
// ScreenOrientation related APIs
|
||||
|
||||
void SetCurrentOrientation(OrientationType aType, uint16_t aAngle) {
|
||||
mCurrentOrientationType = aType;
|
||||
mCurrentOrientationAngle = aAngle;
|
||||
}
|
||||
|
||||
uint16_t CurrentOrientationAngle() const { return mCurrentOrientationAngle; }
|
||||
OrientationType CurrentOrientationType() const {
|
||||
return mCurrentOrientationType;
|
||||
}
|
||||
void ClearOrientationPendingPromise();
|
||||
bool SetOrientationPendingPromise(Promise* aPromise);
|
||||
Promise* GetOrientationPendingPromise() const {
|
||||
return mOrientationPendingPromise;
|
||||
}
|
||||
|
||||
void SetRDMPaneOrientation(OrientationType aType, uint16_t aAngle);
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Document notification API's
|
||||
|
@ -5248,9 +5237,6 @@ class Document : public nsINode,
|
|||
// http://www.w3.org/TR/screen-orientation/
|
||||
RefPtr<Promise> mOrientationPendingPromise;
|
||||
|
||||
uint16_t mCurrentOrientationAngle;
|
||||
OrientationType mCurrentOrientationType;
|
||||
|
||||
nsTArray<RefPtr<nsFrameLoader>> mInitializableFrameLoaders;
|
||||
nsTArray<nsCOMPtr<nsIRunnable>> mFrameLoaderFinalizers;
|
||||
RefPtr<nsRunnableMethod<Document>> mFrameLoaderRunner;
|
||||
|
|
|
@ -622,16 +622,6 @@ partial interface Document {
|
|||
readonly attribute FeaturePolicy featurePolicy;
|
||||
};
|
||||
|
||||
/**
|
||||
* Document extensions to support devtools.
|
||||
*/
|
||||
partial interface Document {
|
||||
// Extension to give chrome JS the ability to set the window screen
|
||||
// orientation while in RDM.
|
||||
[ChromeOnly]
|
||||
void setRDMPaneOrientation(OrientationType type, float rotationAngle);
|
||||
};
|
||||
|
||||
// Extension to give chrome JS the ability to specify a non-default keypress
|
||||
// event model.
|
||||
partial interface Document {
|
||||
|
|
Загрузка…
Ссылка в новой задаче