mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
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:
parent
b02c2d15fb
commit
6994c26198
@ -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),
|
||||
@ -13570,12 +13568,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user