зеркало из https://github.com/mozilla/gecko-dev.git
Don't use Scrap Manager API in 64-bit builds on Mac OS X. b=517398 r=mstange r=bsmedberg
This commit is contained in:
Родитель
7e089e6fae
Коммит
75be6f9e1e
|
@ -81,7 +81,7 @@
|
|||
#include "nsXPIDLString.h"
|
||||
#endif
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
#if defined(XP_MACOSX) && !defined(__LP64__)
|
||||
#include "nsAutoPtr.h"
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
@ -280,7 +280,7 @@ NS_IMETHODIMP nsWebBrowserFind::FindNext(PRBool *outDidFind)
|
|||
NS_IMETHODIMP nsWebBrowserFind::GetSearchString(PRUnichar * *aSearchString)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aSearchString);
|
||||
#ifdef XP_MACOSX
|
||||
#if defined(XP_MACOSX) && !defined(__LP64__)
|
||||
OSStatus err;
|
||||
ScrapRef scrap;
|
||||
err = ::GetScrapByName(kScrapFindScrap, kScrapGetNamedScrap, &scrap);
|
||||
|
@ -306,7 +306,7 @@ NS_IMETHODIMP nsWebBrowserFind::GetSearchString(PRUnichar * *aSearchString)
|
|||
NS_IMETHODIMP nsWebBrowserFind::SetSearchString(const PRUnichar * aSearchString)
|
||||
{
|
||||
mSearchString.Assign(aSearchString);
|
||||
#ifdef XP_MACOSX
|
||||
#if defined(XP_MACOSX) && !defined(__LP64__)
|
||||
OSStatus err;
|
||||
ScrapRef scrap;
|
||||
err = ::GetScrapByName(kScrapFindScrap, kScrapClearNamedScrap, &scrap);
|
||||
|
|
Загрузка…
Ссылка в новой задаче