mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 1347270: remove the nsIDOMWindowUtils::ElementsRestyled API. r=bholley
MozReview-Commit-ID: AKsEWc7Wpip --HG-- extra : rebase_source : 2d4611ca4205041e0ae9a36142b9fd65da122e29
This commit is contained in:
parent
6570c70725
commit
ae62618daf
@ -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)
|
||||
{
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user