mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
added important rule support
This commit is contained in:
parent
bfc7f2ffe1
commit
282eb4c3bb
@ -525,6 +525,12 @@ void ContentEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
iRule = aRule->GetImportantRule();
|
||||
if (nsnull != iRule) {
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -650,6 +656,12 @@ void PseudoEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
iRule = aRule->GetImportantRule();
|
||||
if (nsnull != iRule) {
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +63,8 @@ public:
|
||||
|
||||
virtual PRInt32 GetWeight(void) const = 0;
|
||||
virtual void SetWeight(PRInt32 aWeight) = 0;
|
||||
|
||||
virtual nsIStyleRule* GetImportantRule(void) = 0;
|
||||
};
|
||||
|
||||
extern NS_HTML nsresult
|
||||
|
@ -525,6 +525,12 @@ void ContentEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
iRule = aRule->GetImportantRule();
|
||||
if (nsnull != iRule) {
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -650,6 +656,12 @@ void PseudoEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
iRule = aRule->GetImportantRule();
|
||||
if (nsnull != iRule) {
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +63,8 @@ public:
|
||||
|
||||
virtual PRInt32 GetWeight(void) const = 0;
|
||||
virtual void SetWeight(PRInt32 aWeight) = 0;
|
||||
|
||||
virtual nsIStyleRule* GetImportantRule(void) = 0;
|
||||
};
|
||||
|
||||
extern NS_HTML nsresult
|
||||
|
@ -525,6 +525,12 @@ void ContentEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
iRule = aRule->GetImportantRule();
|
||||
if (nsnull != iRule) {
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -650,6 +656,12 @@ void PseudoEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
iRule = aRule->GetImportantRule();
|
||||
if (nsnull != iRule) {
|
||||
data->mResults->AppendElement(iRule);
|
||||
data->mCount++;
|
||||
NS_RELEASE(iRule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +63,8 @@ public:
|
||||
|
||||
virtual PRInt32 GetWeight(void) const = 0;
|
||||
virtual void SetWeight(PRInt32 aWeight) = 0;
|
||||
|
||||
virtual nsIStyleRule* GetImportantRule(void) = 0;
|
||||
};
|
||||
|
||||
extern NS_HTML nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user