зеркало из https://github.com/mozilla/pjs.git
Remove a bogus DEBUG_smfr block. r/sr=bryner
This commit is contained in:
Родитель
112011dddc
Коммит
7d6c58b9b3
|
@ -2473,26 +2473,6 @@ nsXULElement::SetAttr(nsINodeInfo* aNodeInfo,
|
||||||
return NS_ERROR_NULL_POINTER;
|
return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
|
|
||||||
#if DEBUG_smfr
|
|
||||||
nsXULAttribute* theAttr = FindLocalAttribute(aNodeInfo);
|
|
||||||
if (theAttr) {
|
|
||||||
nsAutoString oldValue;
|
|
||||||
attr->GetValue(oldValue);
|
|
||||||
if (oldValue.Equals(aValue))
|
|
||||||
{
|
|
||||||
nsAutoString attributeName;
|
|
||||||
aNodeInfo->GetName(attributeName);
|
|
||||||
|
|
||||||
nsCAutoString blurb("SetAttr called redundantly on ");
|
|
||||||
blurb.AppendWithConversion(attributeName);
|
|
||||||
blurb.Append(" with value ");
|
|
||||||
blurb.AppendWithConversion(aValue);
|
|
||||||
NS_WARNING(blurb.get());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
nsCOMPtr<nsIAtom> attrName;
|
nsCOMPtr<nsIAtom> attrName;
|
||||||
PRInt32 attrns;
|
PRInt32 attrns;
|
||||||
|
|
||||||
|
|
|
@ -648,24 +648,6 @@ nsresult nsWebBrowserFind::SearchInFrame(nsIDOMWindow* aWindow,
|
||||||
if (!mFind)
|
if (!mFind)
|
||||||
mFind = do_CreateInstance(NS_FIND_CONTRACTID, &rv);
|
mFind = do_CreateInstance(NS_FIND_CONTRACTID, &rv);
|
||||||
|
|
||||||
#if DEBUG_smfr
|
|
||||||
{
|
|
||||||
nsCOMPtr<nsIDocShell> searchShell;
|
|
||||||
GetDocShellFromWindow(searchFrame, getter_AddRefs(searchShell));
|
|
||||||
nsCOMPtr<nsIWebNavigation> webnav = do_QueryInterface(searchShell);
|
|
||||||
if (webnav)
|
|
||||||
{
|
|
||||||
nsCOMPtr<nsIURI> curURI;
|
|
||||||
webnav->GetCurrentURI(getter_AddRefs(curURI));
|
|
||||||
nsXPIDLCString uriSpec;
|
|
||||||
if (curURI)
|
|
||||||
curURI->GetSpec(getter_Copies(uriSpec));
|
|
||||||
|
|
||||||
printf("Searching frame %s\n", (const char*)uriSpec);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
(void) mFind->SetCaseSensitive(mMatchCase);
|
(void) mFind->SetCaseSensitive(mMatchCase);
|
||||||
(void) mFind->SetFindBackwards(mFindBackwards);
|
(void) mFind->SetFindBackwards(mFindBackwards);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче