Bug 1292432 part 10 - Make style/link elements return StyleSheet. r=heycam

MozReview-Commit-ID: EIcfdYGZ8UH
This commit is contained in:
Xidorn Quan
2016-10-14 22:25:38 +11:00
parent 850976ea9c
commit 0ec6cd8f38
3 changed files with 5 additions and 15 deletions

View File

@@ -68,7 +68,7 @@ HTMLStyleElement::GetMozDisabled(bool* aDisabled)
bool
HTMLStyleElement::Disabled()
{
CSSStyleSheet* ss = GetSheet();
StyleSheet* ss = GetSheet();
return ss && ss->Disabled();
}
@@ -82,8 +82,7 @@ HTMLStyleElement::SetMozDisabled(bool aDisabled)
void
HTMLStyleElement::SetDisabled(bool aDisabled)
{
CSSStyleSheet* ss = GetSheet();
if (ss) {
if (StyleSheet* ss = GetSheet()) {
ss->SetDisabled(aDisabled);
}
}