mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 1769758 - Remove window.mozPaintCount. r=webidl,peterv
We unshipped it successfully a while ago (bug 1591968). Differential Revision: https://phabricator.services.mozilla.com/D146575
This commit is contained in:
parent
c2aed688a2
commit
9fffb1830a
@ -3617,10 +3617,6 @@ double nsGlobalWindowInner::GetDesktopToDeviceScale(ErrorResult& aError) {
|
||||
return presContext->DeviceContext()->GetDesktopToDeviceScale().scale;
|
||||
}
|
||||
|
||||
uint64_t nsGlobalWindowInner::GetMozPaintCount(ErrorResult& aError) {
|
||||
FORWARD_TO_OUTER_OR_THROW(GetMozPaintCountOuter, (), aError, 0);
|
||||
}
|
||||
|
||||
int32_t nsGlobalWindowInner::RequestAnimationFrame(
|
||||
FrameRequestCallback& aCallback, ErrorResult& aError) {
|
||||
if (!mDoc) {
|
||||
|
@ -883,7 +883,6 @@ class nsGlobalWindowInner final : public mozilla::dom::EventTarget,
|
||||
bool Find(const nsAString& aString, bool aCaseSensitive, bool aBackwards,
|
||||
bool aWrapAround, bool aWholeWord, bool aSearchInFrames,
|
||||
bool aShowDialog, mozilla::ErrorResult& aError);
|
||||
uint64_t GetMozPaintCount(mozilla::ErrorResult& aError);
|
||||
|
||||
bool DidFireDocElemInserted() const { return mDidFireDocElemInserted; }
|
||||
void SetDidFireDocElemInserted() { mDidFireDocElemInserted = true; }
|
||||
|
@ -3816,15 +3816,6 @@ float nsGlobalWindowOuter::GetMozInnerScreenYOuter(CallerType aCallerType) {
|
||||
return nsPresContext::AppUnitsToFloatCSSPixels(r.y);
|
||||
}
|
||||
|
||||
uint64_t nsGlobalWindowOuter::GetMozPaintCountOuter() {
|
||||
if (!mDocShell) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
PresShell* presShell = mDocShell->GetPresShell();
|
||||
return presShell ? presShell->GetPaintCount() : 0;
|
||||
}
|
||||
|
||||
void nsGlobalWindowOuter::SetScreenXOuter(int32_t aScreenX,
|
||||
CallerType aCallerType,
|
||||
ErrorResult& aError) {
|
||||
|
@ -627,7 +627,6 @@ class nsGlobalWindowOuter final : public mozilla::dom::EventTarget,
|
||||
bool FindOuter(const nsAString& aString, bool aCaseSensitive, bool aBackwards,
|
||||
bool aWrapAround, bool aWholeWord, bool aSearchInFrames,
|
||||
bool aShowDialog, mozilla::ErrorResult& aError);
|
||||
uint64_t GetMozPaintCountOuter();
|
||||
|
||||
mozilla::dom::Nullable<mozilla::dom::WindowProxyHolder> OpenDialogOuter(
|
||||
JSContext* aCx, const nsAString& aUrl, const nsAString& aName,
|
||||
|
@ -2214,8 +2214,6 @@ interface nsIDOMWindowUtils : nsISupports {
|
||||
/**
|
||||
* Returns the number of times this document for this window has
|
||||
* been painted to the screen.
|
||||
*
|
||||
* Use this instead of window.mozPaintCount
|
||||
*/
|
||||
readonly attribute unsigned long long paintCount;
|
||||
|
||||
|
@ -484,14 +484,6 @@ partial interface Window {
|
||||
optional boolean searchInFrames = false,
|
||||
optional boolean showDialog = false);
|
||||
|
||||
/**
|
||||
* Returns the number of times this document for this window has
|
||||
* been painted to the screen.
|
||||
*
|
||||
* If you need this for tests use nsIDOMWindowUtils.paintCount instead.
|
||||
*/
|
||||
[Throws, Pref="dom.mozPaintCount.enabled"] readonly attribute unsigned long long mozPaintCount;
|
||||
|
||||
attribute EventHandler ondevicemotion;
|
||||
attribute EventHandler ondeviceorientation;
|
||||
attribute EventHandler onabsolutedeviceorientation;
|
||||
|
@ -1818,12 +1818,6 @@
|
||||
# Prefs starting with "dom."
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
# Whether window.mozPaintCount is exposed to the web.
|
||||
- name: dom.mozPaintCount.enabled
|
||||
type: bool
|
||||
value: false
|
||||
mirror: always
|
||||
|
||||
# Allow cut/copy
|
||||
- name: dom.allow_cut_copy
|
||||
type: bool
|
||||
|
Loading…
Reference in New Issue
Block a user