зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1453877 - Remove unused RestyleHintData struct. r=xidorn
And fix a comment mentioning nsCSSSelectorList that I came across. MozReview-Commit-ID: 1BOcDqV5dUr --HG-- extra : rebase_source : 5fbdae6da74cf4fac145fbdd721723e81839e4b3
This commit is contained in:
Родитель
529ef739c9
Коммит
7498850f28
|
@ -1317,9 +1317,9 @@ void nsIDocument::SelectorCache::NotifyExpired(SelectorCacheKey* aSelector)
|
|||
// There is no guarantee that this method won't be re-entered when selector
|
||||
// matching is ongoing because "memory-pressure" could be notified immediately
|
||||
// when OOM happens according to the design of nsExpirationTracker.
|
||||
// The perfect solution is to delete the |aSelector| and its nsCSSSelectorList
|
||||
// in mTable asynchronously.
|
||||
// We remove these objects synchronously for now because NotifiyExpired() will
|
||||
// The perfect solution is to delete the |aSelector| and its
|
||||
// RawServoSelectorList in mTable asynchronously.
|
||||
// We remove these objects synchronously for now because NotifyExpired() will
|
||||
// never be triggered by "memory-pressure" which is not implemented yet in
|
||||
// the stage 2 of mozalloc_handle_oom().
|
||||
// Once these objects are removed asynchronously, we should update the warning
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
#include "nsDebug.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
struct nsCSSSelector;
|
||||
|
||||
// Defines for various style related constants
|
||||
|
||||
enum nsChangeHint : uint32_t {
|
||||
|
@ -664,19 +662,4 @@ inline nsRestyleHint operator^=(nsRestyleHint& aLeft, nsRestyleHint aRight)
|
|||
return aLeft = aLeft ^ aRight;
|
||||
}
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
/**
|
||||
* Additional data used in conjunction with an nsRestyleHint to control the
|
||||
* restyle process.
|
||||
*/
|
||||
struct RestyleHintData
|
||||
{
|
||||
// When eRestyle_SomeDescendants is used, this array contains the selectors
|
||||
// that identify which descendants will be restyled.
|
||||
nsTArray<nsCSSSelector*> mSelectorsForDescendants;
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif /* nsChangeHint_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче