зеркало из https://github.com/mozilla/gecko-dev.git
Fixed a memory leak of a content object
This commit is contained in:
Родитель
13a2ed25a3
Коммит
690b52766a
|
@ -881,7 +881,7 @@ static void ContentEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
|||
content->GetParent(content);
|
||||
NS_IF_RELEASE(lastContent);
|
||||
}
|
||||
NS_IF_RELEASE(lastContent);
|
||||
NS_IF_RELEASE(content);
|
||||
if (nsnull == selector) { // ran out, it matched
|
||||
nsIStyleRule* iRule;
|
||||
if (NS_OK == aRule->QueryInterface(kIStyleRuleIID, (void**)&iRule)) {
|
||||
|
|
|
@ -1391,8 +1391,8 @@ PRBool
|
|||
HTMLStyleSheetImpl::IsScrollable(nsIPresContext* aPresContext, const nsStyleDisplay* aDisplay)
|
||||
{
|
||||
// For the time being it's scrollable if the overflow property is auto or
|
||||
// scroll, regardless of whether the width or height is fixed in size
|
||||
PRInt32 scrolling = -1;
|
||||
// scroll, regardless of whether the width or height is fixed in size
|
||||
PRInt32 scrolling = -1;
|
||||
nsISupports* container;
|
||||
if (nsnull != aPresContext) {
|
||||
aPresContext->GetContainer(&container);
|
||||
|
|
|
@ -881,7 +881,7 @@ static void ContentEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
|||
content->GetParent(content);
|
||||
NS_IF_RELEASE(lastContent);
|
||||
}
|
||||
NS_IF_RELEASE(lastContent);
|
||||
NS_IF_RELEASE(content);
|
||||
if (nsnull == selector) { // ran out, it matched
|
||||
nsIStyleRule* iRule;
|
||||
if (NS_OK == aRule->QueryInterface(kIStyleRuleIID, (void**)&iRule)) {
|
||||
|
|
|
@ -1391,8 +1391,8 @@ PRBool
|
|||
HTMLStyleSheetImpl::IsScrollable(nsIPresContext* aPresContext, const nsStyleDisplay* aDisplay)
|
||||
{
|
||||
// For the time being it's scrollable if the overflow property is auto or
|
||||
// scroll, regardless of whether the width or height is fixed in size
|
||||
PRInt32 scrolling = -1;
|
||||
// scroll, regardless of whether the width or height is fixed in size
|
||||
PRInt32 scrolling = -1;
|
||||
nsISupports* container;
|
||||
if (nsnull != aPresContext) {
|
||||
aPresContext->GetContainer(&container);
|
||||
|
|
|
@ -881,7 +881,7 @@ static void ContentEnumFunc(nsICSSStyleRule* aRule, void* aData)
|
|||
content->GetParent(content);
|
||||
NS_IF_RELEASE(lastContent);
|
||||
}
|
||||
NS_IF_RELEASE(lastContent);
|
||||
NS_IF_RELEASE(content);
|
||||
if (nsnull == selector) { // ran out, it matched
|
||||
nsIStyleRule* iRule;
|
||||
if (NS_OK == aRule->QueryInterface(kIStyleRuleIID, (void**)&iRule)) {
|
||||
|
|
|
@ -1391,8 +1391,8 @@ PRBool
|
|||
HTMLStyleSheetImpl::IsScrollable(nsIPresContext* aPresContext, const nsStyleDisplay* aDisplay)
|
||||
{
|
||||
// For the time being it's scrollable if the overflow property is auto or
|
||||
// scroll, regardless of whether the width or height is fixed in size
|
||||
PRInt32 scrolling = -1;
|
||||
// scroll, regardless of whether the width or height is fixed in size
|
||||
PRInt32 scrolling = -1;
|
||||
nsISupports* container;
|
||||
if (nsnull != aPresContext) {
|
||||
aPresContext->GetContainer(&container);
|
||||
|
|
Загрузка…
Ссылка в новой задаче