зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1896709 - Part 15: Add nsIDOMWindowUtils.clearSharedScriptCache. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D215884
This commit is contained in:
Родитель
c007d38afb
Коммит
b255ab35f3
|
@ -33,6 +33,7 @@
|
|||
#include "mozilla/ScrollContainerFrame.h"
|
||||
#include "mozilla/ServoStyleSet.h"
|
||||
#include "mozilla/SharedStyleSheetCache.h"
|
||||
#include "mozilla/dom/SharedScriptCache.h"
|
||||
#include "mozilla/StaticPrefs_test.h"
|
||||
#include "mozilla/InputTaskManager.h"
|
||||
#include "nsIObjectLoadingContent.h"
|
||||
|
@ -1289,6 +1290,12 @@ nsDOMWindowUtils::ClearSharedStyleSheetCache() {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::ClearSharedScriptCache() {
|
||||
SharedScriptCache::Clear();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetParsedStyleSheets(uint32_t* aSheets) {
|
||||
RefPtr<Document> doc = GetDocument();
|
||||
|
|
|
@ -841,6 +841,11 @@ interface nsIDOMWindowUtils : nsISupports {
|
|||
*/
|
||||
void clearSharedStyleSheetCache();
|
||||
|
||||
/**
|
||||
* Clears the SharedScriptCache.
|
||||
*/
|
||||
void clearSharedScriptCache();
|
||||
|
||||
/**
|
||||
* Returns the number of stylesheets that have been parsed on this document.
|
||||
* Useful to test caching.
|
||||
|
|
|
@ -2701,6 +2701,7 @@ interface nsIDOMWindowUtils extends nsISupports {
|
|||
sendNativeTouchpadDoubleTap(aScreenX: i32, aScreenY: i32, aModifierFlags: i32): void;
|
||||
sendNativeTouchpadPan(aEventPhase: u32, aScreenX: i32, aScreenY: i32, aDeltaX: double, aDeltaY: double, aModifierFlags: i32, aObserver?: nsIObserver): void;
|
||||
clearSharedStyleSheetCache(): void;
|
||||
clearSharedScriptCache(): void;
|
||||
readonly parsedStyleSheets: u32;
|
||||
activateNativeMenuItemAt(indexString: string): void;
|
||||
forceUpdateNativeMenuAt(indexString: string): void;
|
||||
|
|
Загрузка…
Ссылка в новой задаче