Bug 1347270: remove the nsIDOMWindowUtils::ElementsRestyled API. r=bholley

MozReview-Commit-ID: AKsEWc7Wpip

--HG--
extra : rebase_source : 2d4611ca4205041e0ae9a36142b9fd65da122e29
This commit is contained in:
Emilio Cobos Álvarez 2017-05-30 11:38:53 +02:00
parent 6570c70725
commit ae62618daf
4 changed files with 1 additions and 32 deletions

View File

@ -4047,18 +4047,6 @@ nsDOMWindowUtils::AskPermission(nsIContentPermissionRequest* aRequest)
return nsContentPermissionUtils::AskPermission(aRequest, window->GetCurrentInnerWindow());
}
NS_IMETHODIMP
nsDOMWindowUtils::GetElementsRestyled(uint64_t* aResult)
{
nsPresContext* presContext = GetPresContext();
if (!presContext) {
return NS_ERROR_NOT_AVAILABLE;
}
*aResult = presContext->ElementsRestyledCount();
return NS_OK;
}
NS_IMETHODIMP
nsDOMWindowUtils::GetRestyleGeneration(uint64_t* aResult)
{

View File

@ -50,7 +50,7 @@ interface nsIContentPermissionRequest;
interface nsIObserver;
interface nsIDOMStorage;
[scriptable, uuid(c471d440-004b-4c50-a6f2-747db5f443b6)]
[scriptable, uuid(4d6732ca-9da7-4176-b8a1-8dde15cd0bf9)]
interface nsIDOMWindowUtils : nsISupports {
/**
@ -1875,17 +1875,6 @@ interface nsIDOMWindowUtils : nsISupports {
*/
void askPermission(in nsIContentPermissionRequest aRequest);
/**
* Number of elements restyled for the curent document.
*
* Note that during a restyle operation we may restyle an element more
* than once (e.g., for an inline that contains blocks). This also
* counts restyling of pseudo-elements and anonymous boxes.
*
* May throw NS_ERROR_NOT_AVAILABLE.
*/
readonly attribute unsigned long long elementsRestyled;
/**
* Restyle generation for the current document.
*

View File

@ -1719,8 +1719,6 @@ ElementRestyler::Restyle(nsRestyleHint aRestyleHint)
MOZ_ASSERT(!(aRestyleHint & eRestyle_LaterSiblings),
"eRestyle_LaterSiblings must not be part of aRestyleHint");
mPresContext->RestyledElement();
AutoDisplayContentsAncestorPusher adcp(mTreeMatchContext, mPresContext,
mFrame->GetContent() ? mFrame->GetContent()->GetParent() : nullptr);

View File

@ -904,9 +904,6 @@ public:
nsIFrame * aFrame);
#endif
void RestyledElement() {
++mElementsRestyled;
}
void ConstructedFrame() {
++mFramesConstructed;
}
@ -914,9 +911,6 @@ public:
++mFramesReflowed;
}
uint64_t ElementsRestyledCount() {
return mElementsRestyled;
}
uint64_t FramesConstructedCount() {
return mFramesConstructed;
}