Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class

This commit is contained in:
FranklinDM 2024-03-29 01:40:22 +08:00 committed by roytam1
commit 4bf43b8fb4
58 changed files with 155 additions and 589 deletions

View file

@ -9,7 +9,6 @@
#include "mozilla/GuardObjects.h"
#include "mozilla/MouseEvents.h"
#include "mozilla/Move.h"
#include "mozilla/StyleSetHandleInlines.h"
#include "nsAutoPtr.h"
#include "nsBindingManager.h"
#include "nsComponentManagerUtils.h"
@ -115,8 +114,7 @@ AttachXBLBindings(nsIContent* aContent) {
}
RefPtr<nsStyleContext> sc =
shell->StyleSet()->AsGecko()->ResolveStyleFor(aContent->AsElement(),
nullptr);
shell->StyleSet()->ResolveStyleFor(aContent->AsElement(), nullptr);
if (!sc) {
return;
}