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:
Cameron McCormack 2018-04-13 15:16:13 +10:00
Родитель 529ef739c9
Коммит 7498850f28
2 изменённых файлов: 3 добавлений и 20 удалений

Просмотреть файл

@ -1317,9 +1317,9 @@ void nsIDocument::SelectorCache::NotifyExpired(SelectorCacheKey* aSelector)
// There is no guarantee that this method won't be re-entered when selector // There is no guarantee that this method won't be re-entered when selector
// matching is ongoing because "memory-pressure" could be notified immediately // matching is ongoing because "memory-pressure" could be notified immediately
// when OOM happens according to the design of nsExpirationTracker. // when OOM happens according to the design of nsExpirationTracker.
// The perfect solution is to delete the |aSelector| and its nsCSSSelectorList // The perfect solution is to delete the |aSelector| and its
// in mTable asynchronously. // RawServoSelectorList in mTable asynchronously.
// We remove these objects synchronously for now because NotifiyExpired() will // We remove these objects synchronously for now because NotifyExpired() will
// never be triggered by "memory-pressure" which is not implemented yet in // never be triggered by "memory-pressure" which is not implemented yet in
// the stage 2 of mozalloc_handle_oom(). // the stage 2 of mozalloc_handle_oom().
// Once these objects are removed asynchronously, we should update the warning // Once these objects are removed asynchronously, we should update the warning

Просмотреть файл

@ -13,8 +13,6 @@
#include "nsDebug.h" #include "nsDebug.h"
#include "nsTArray.h" #include "nsTArray.h"
struct nsCSSSelector;
// Defines for various style related constants // Defines for various style related constants
enum nsChangeHint : uint32_t { enum nsChangeHint : uint32_t {
@ -664,19 +662,4 @@ inline nsRestyleHint operator^=(nsRestyleHint& aLeft, nsRestyleHint aRight)
return aLeft = aLeft ^ 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___ */ #endif /* nsChangeHint_h___ */