mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class
This commit is contained in:
parent
4d7bdedade
commit
4bf43b8fb4
58 changed files with 155 additions and 589 deletions
|
|
@ -35,8 +35,7 @@
|
|||
#include "nsIDocument.h"
|
||||
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "imgIRequest.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsCSSKeywords.h"
|
||||
|
|
@ -504,7 +503,7 @@ nsComputedDOMStyle::GetStyleContextForElementNoFlush(Element* aElement,
|
|||
if (!presContext)
|
||||
return nullptr;
|
||||
|
||||
StyleSetHandle styleSet = presShell->StyleSet();
|
||||
nsStyleSet* styleSet = presShell->StyleSet();
|
||||
|
||||
RefPtr<nsStyleContext> sc;
|
||||
if (aPseudo) {
|
||||
|
|
@ -543,7 +542,7 @@ nsComputedDOMStyle::GetStyleContextForElementNoFlush(Element* aElement,
|
|||
rules[i].swap(rules[length - i - 1]);
|
||||
}
|
||||
|
||||
sc = styleSet->AsGecko()->ResolveStyleForRules(parentContext, rules);
|
||||
sc = styleSet->ResolveStyleForRules(parentContext, rules);
|
||||
}
|
||||
|
||||
return sc.forget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue