mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +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
|
|
@ -17,8 +17,7 @@
|
|||
#include "nsTArray.h"
|
||||
#include "nsTHashtable.h"
|
||||
#include "nsUnicodeProperties.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
|
|
@ -2028,9 +2027,9 @@ CounterStyleManager::BuildCounterStyle(const nsSubstring& aName)
|
|||
|
||||
// It is intentional that the predefined names are case-insensitive
|
||||
// but the user-defined names case-sensitive.
|
||||
StyleSetHandle styleSet = mPresContext->StyleSet();
|
||||
nsStyleSet* styleSet = mPresContext->StyleSet();
|
||||
nsCSSCounterStyleRule* rule =
|
||||
styleSet->AsGecko()->CounterStyleRuleForName(aName);
|
||||
styleSet->CounterStyleRuleForName(aName);
|
||||
if (rule) {
|
||||
data = new (mPresContext) CustomCounterStyle(aName, this, rule);
|
||||
} else {
|
||||
|
|
@ -2070,9 +2069,9 @@ CounterStyleManager::NotifyRuleChanged()
|
|||
RefPtr<CounterStyle>& style = iter.Data();
|
||||
bool toBeUpdated = false;
|
||||
bool toBeRemoved = false;
|
||||
StyleSetHandle styleSet = mPresContext->StyleSet();
|
||||
nsStyleSet* styleSet = mPresContext->StyleSet();
|
||||
nsCSSCounterStyleRule* newRule =
|
||||
styleSet->AsGecko()->CounterStyleRuleForName(iter.Key());
|
||||
styleSet->CounterStyleRuleForName(iter.Key());
|
||||
if (!newRule) {
|
||||
if (style->IsCustomStyle()) {
|
||||
toBeRemoved = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue