Build bustage on Qt due to macro definition of malloc, realloc, etc. Most of this is just moving Qt #includes around. r=dougt

--HG--
extra : rebase_source : 9734e9e68754a6fc45bddbdc60bb5e898bb8cdb2
This commit is contained in:
Mike Kristoffersen 2010-03-04 13:51:42 -08:00
Родитель 8a3f4671f6
Коммит cd34b8821b
25 изменённых файлов: 86 добавлений и 75 удалений

Просмотреть файл

@ -905,12 +905,12 @@ protected:
return FlagsAsSlots(); return FlagsAsSlots();
} }
nsSlots* slots = CreateSlots(); nsSlots* newSlots = CreateSlots();
if (slots) { if (newSlots) {
mFlagsOrSlots = reinterpret_cast<PtrBits>(slots); mFlagsOrSlots = reinterpret_cast<PtrBits>(newSlots);
} }
return slots; return newSlots;
} }
nsTObserverArray<nsIMutationObserver*> *GetMutationObservers() nsTObserverArray<nsIMutationObserver*> *GetMutationObservers()

Просмотреть файл

@ -36,13 +36,14 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <QApplication>
#include <QFont>
#include "nsIDeviceContext.h" #include "nsIDeviceContext.h"
#include "nsIRenderingContext.h" #include "nsIRenderingContext.h"
#include "nsSystemFontsQt.h" #include "nsSystemFontsQt.h"
#include "gfxQtPlatform.h" #include "gfxQtPlatform.h"
#include <QApplication>
#include <QFont>
nsSystemFontsQt::nsSystemFontsQt() nsSystemFontsQt::nsSystemFontsQt()
: mDefaultFontName(NS_LITERAL_STRING("sans-serif")) : mDefaultFontName(NS_LITERAL_STRING("sans-serif"))

Просмотреть файл

@ -38,8 +38,8 @@
#include "gfxPlatformGtk.h" #include "gfxPlatformGtk.h"
#define gfxToolkitPlatform gfxPlatformGtk #define gfxToolkitPlatform gfxPlatformGtk
#elif defined(MOZ_WIDGET_QT) #elif defined(MOZ_WIDGET_QT)
#include "gfxQtPlatform.h"
#include <qfontinfo.h> #include <qfontinfo.h>
#include "gfxQtPlatform.h"
#define gfxToolkitPlatform gfxQtPlatform #define gfxToolkitPlatform gfxQtPlatform
#elif defined(XP_WIN) #elif defined(XP_WIN)
#ifdef WINCE #ifdef WINCE

Просмотреть файл

@ -35,13 +35,14 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <QWidget>
#include "gfxQtNativeRenderer.h" #include "gfxQtNativeRenderer.h"
#include "gfxContext.h" #include "gfxContext.h"
#include "gfxQtPlatform.h" #include "gfxQtPlatform.h"
#include "cairo.h" #include "cairo.h"
#include <QWidget>
typedef struct { typedef struct {
gfxQtNativeRenderer* mRenderer; gfxQtNativeRenderer* mRenderer;

Просмотреть файл

@ -46,6 +46,13 @@
/* rendering objects for replaced elements implemented by a plugin */ /* rendering objects for replaced elements implemented by a plugin */
#ifdef MOZ_X11
#ifdef MOZ_WIDGET_QT
#include <QWidget>
#include <QX11Info>
#endif
#endif
#include "nscore.h" #include "nscore.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsPresContext.h" #include "nsPresContext.h"
@ -55,12 +62,6 @@
#include "nsIViewManager.h" #include "nsIViewManager.h"
#include "nsIDOMKeyListener.h" #include "nsIDOMKeyListener.h"
#include "nsIDOMDragEvent.h" #include "nsIDOMDragEvent.h"
#ifdef MOZ_X11
#ifdef MOZ_WIDGET_QT
#include <QWidget>
#include <QX11Info>
#endif
#endif
#include "nsIPluginHost.h" #include "nsIPluginHost.h"
#include "nsString.h" #include "nsString.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"

Просмотреть файл

@ -35,6 +35,10 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <QIcon>
#include <QStyle>
#include <QApplication>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
@ -49,10 +53,6 @@
#include "nsIconChannel.h" #include "nsIconChannel.h"
#include "nsGtkQtIconsConverter.h" #include "nsGtkQtIconsConverter.h"
#include <QIcon>
#include <QStyle>
#include <QApplication>
NS_IMPL_ISUPPORTS2(nsIconChannel, NS_IMPL_ISUPPORTS2(nsIconChannel,
nsIRequest, nsIRequest,
nsIChannel) nsIChannel)

Просмотреть файл

@ -48,14 +48,14 @@
#define XPCOM_TRANSLATE_NSGM_ENTRY_POINT 1 #define XPCOM_TRANSLATE_NSGM_ENTRY_POINT 1
#include "nsAppRunner.h"
#include "nsUpdateDriver.h"
#if defined(MOZ_WIDGET_QT) #if defined(MOZ_WIDGET_QT)
#include <qwidget.h> #include <qwidget.h>
#include <qapplication.h> #include <qapplication.h>
#endif #endif
#include "nsAppRunner.h"
#include "nsUpdateDriver.h"
#ifdef XP_MACOSX #ifdef XP_MACOSX
#include "MacLaunchHelper.h" #include "MacLaunchHelper.h"
#include "MacApplicationDelegate.h" #include "MacApplicationDelegate.h"

Просмотреть файл

@ -1,6 +1,3 @@
#include "mozqwidget.h"
#include "nsWindow.h"
#include <QtGui/QApplication> #include <QtGui/QApplication>
#include <QtGui/QCursor> #include <QtGui/QCursor>
#include <QtGui/QInputContext> #include <QtGui/QInputContext>
@ -13,6 +10,9 @@
#include <QtCore/QEvent> #include <QtCore/QEvent>
#include <QtCore/QVariant> #include <QtCore/QVariant>
#include "mozqwidget.h"
#include "nsWindow.h"
MozQWidget::MozQWidget(nsWindow* aReceiver, QGraphicsItem* aParent) MozQWidget::MozQWidget(nsWindow* aReceiver, QGraphicsItem* aParent)
: QGraphicsWidget(aParent), : QGraphicsWidget(aParent),

Просмотреть файл

@ -1,12 +1,12 @@
#ifndef MOZQWIDGET_H #ifndef MOZQWIDGET_H
#define MOZQWIDGET_H #define MOZQWIDGET_H
#include "nsIWidget.h"
#include <QtGui/QApplication> #include <QtGui/QApplication>
#include <QtGui/QGraphicsView> #include <QtGui/QGraphicsView>
#include <QtGui/QGraphicsWidget> #include <QtGui/QGraphicsWidget>
#include "nsIWidget.h"
class QEvent; class QEvent;
class QPixmap; class QPixmap;
class QWidget; class QWidget;

Просмотреть файл

@ -39,10 +39,9 @@
#ifndef nsAppShell_h__ #ifndef nsAppShell_h__
#define nsAppShell_h__ #define nsAppShell_h__
#include <qsocketnotifier.h>
#include "nsBaseAppShell.h" #include "nsBaseAppShell.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include <qsocketnotifier.h>
/** /**
* Native QT Application shell wrapper * Native QT Application shell wrapper

Просмотреть файл

@ -36,11 +36,11 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsBidiKeyboard.h"
#include <Qt> #include <Qt>
#include <QApplication> #include <QApplication>
#include "nsBidiKeyboard.h"
NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard) NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard)
nsBidiKeyboard::nsBidiKeyboard() : nsIBidiKeyboard() nsBidiKeyboard::nsBidiKeyboard() : nsIBidiKeyboard()

Просмотреть файл

@ -36,14 +36,14 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "qmimedata.h"
#include "qwidget.h"
#include "nsDragService.h" #include "nsDragService.h"
#include "nsISupportsPrimitives.h" #include "nsISupportsPrimitives.h"
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
#include "nsIDOMMouseEvent.h" #include "nsIDOMMouseEvent.h"
#include "qmimedata.h"
#include "qwidget.h"
NS_IMPL_ADDREF_INHERITED(nsDragService, nsBaseDragService) NS_IMPL_ADDREF_INHERITED(nsDragService, nsBaseDragService)
NS_IMPL_RELEASE_INHERITED(nsDragService, nsBaseDragService) NS_IMPL_RELEASE_INHERITED(nsDragService, nsBaseDragService)
NS_IMPL_QUERY_INTERFACE2(nsDragService, nsIDragService, nsIDragSession ) NS_IMPL_QUERY_INTERFACE2(nsDragService, nsIDragService, nsIDragSession )

Просмотреть файл

@ -39,9 +39,10 @@
#ifndef nsDragService_h__ #ifndef nsDragService_h__
#define nsDragService_h__ #define nsDragService_h__
#include "nsBaseDragService.h"
#include <qdrag.h> #include <qdrag.h>
#include "nsBaseDragService.h"
/* Header file */ /* Header file */
class nsDragService : public nsBaseDragService class nsDragService : public nsBaseDragService
{ {

Просмотреть файл

@ -37,6 +37,11 @@
* the terms of any one of the MPL, the GPL or the LGPL. * the terms of any one of the MPL, the GPL or the LGPL.
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <qfile.h>
#include <qstringlist.h>
#include <qapplication.h>
#include "nsFilePicker.h" #include "nsFilePicker.h"
#include "nsILocalFile.h" #include "nsILocalFile.h"
@ -48,10 +53,6 @@
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsIWidget.h" #include "nsIWidget.h"
#include <qfile.h>
#include <qstringlist.h>
#include <qapplication.h>
/* Implementation file */ /* Implementation file */
NS_IMPL_ISUPPORTS1(nsFilePicker, nsIFilePicker) NS_IMPL_ISUPPORTS1(nsFilePicker, nsIFilePicker)

Просмотреть файл

@ -40,12 +40,12 @@
#ifndef NSFILEPICKER_H #ifndef NSFILEPICKER_H
#define NSFILEPICKER_H #define NSFILEPICKER_H
#include <qfiledialog.h>
#include "nsBaseFilePicker.h" #include "nsBaseFilePicker.h"
#include "nsString.h" #include "nsString.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsCOMArray.h" #include "nsCOMArray.h"
#include <qfiledialog.h>
class nsIWidget; class nsIWidget;
class nsILocalFile; class nsILocalFile;

Просмотреть файл

@ -37,11 +37,13 @@
* the terms of any one of the MPL, the GPL or the LGPL. * the terms of any one of the MPL, the GPL or the LGPL.
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsLookAndFeel.h"
#include <QPalette> #include <QPalette>
#include <QApplication> #include <QApplication>
#include <QStyle> #include <QStyle>
#include "nsLookAndFeel.h"
#include <qglobal.h> #include <qglobal.h>
#undef NS_LOOKANDFEEL_DEBUG #undef NS_LOOKANDFEEL_DEBUG

Просмотреть файл

@ -38,8 +38,6 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsIFrame.h"
#include <QApplication> #include <QApplication>
#include <QStyle> #include <QStyle>
#include <QPalette> #include <QPalette>
@ -51,6 +49,8 @@
#include <QFlags> #include <QFlags>
#include <QStyleOptionComboBox> #include <QStyleOptionComboBox>
#include "nsIFrame.h"
#include "nsCoord.h" #include "nsCoord.h"
#include "nsNativeThemeQt.h" #include "nsNativeThemeQt.h"
#include "nsIDeviceContext.h" #include "nsIDeviceContext.h"

Просмотреть файл

@ -37,12 +37,12 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsScreenManagerQt.h"
#include "nsScreenQt.h"
#include "qdesktopwidget.h" #include "qdesktopwidget.h"
#include "qapplication.h" #include "qapplication.h"
#include "nsScreenManagerQt.h"
#include "nsScreenQt.h"
nsScreenManagerQt::nsScreenManagerQt() nsScreenManagerQt::nsScreenManagerQt()
{ {
desktop = 0; desktop = 0;

Просмотреть файл

@ -37,14 +37,14 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsScreenQt.h"
#include <qcolor.h> #include <qcolor.h>
#include <qcolormap.h> #include <qcolormap.h>
#include <qrect.h> #include <qrect.h>
#include <qdesktopwidget.h> #include <qdesktopwidget.h>
#include <qapplication.h> #include <qapplication.h>
#include "nsScreenQt.h"
nsScreenQt::nsScreenQt(int aScreen) nsScreenQt::nsScreenQt(int aScreen)
: mScreen(aScreen) : mScreen(aScreen)
{ {

Просмотреть файл

@ -36,6 +36,9 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <QApplication>
#include <QSound>
#include <string.h> #include <string.h>
#include "nscore.h" #include "nscore.h"
@ -52,9 +55,6 @@
#include "nsNativeCharsetUtils.h" #include "nsNativeCharsetUtils.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include <QApplication>
#include <QSound>
/* used with esd_open_sound */ /* used with esd_open_sound */
static int esdref = -1; static int esdref = -1;
static PRLibrary *elib = nsnull; static PRLibrary *elib = nsnull;

Просмотреть файл

@ -38,8 +38,10 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nscore.h" // needed for 'nsnull'
#include "nsToolkit.h" #include "nsToolkit.h"
#include "nscore.h" // needed for 'nsnull'
#include "nsGUIEvent.h" #include "nsGUIEvent.h"
#include "nsWidgetAtoms.h" #include "nsWidgetAtoms.h"
//#include "plevent.h" //#include "plevent.h"

Просмотреть файл

@ -38,9 +38,10 @@
#ifndef nsToolkit_h__ #ifndef nsToolkit_h__
#define nsToolkit_h__ #define nsToolkit_h__
#include <QPixmap>
#include "nsIToolkit.h" #include "nsIToolkit.h"
#include "nsString.h" #include "nsString.h"
#include <QPixmap>
/** /**
* Wrapper around the thread running the message pump. * Wrapper around the thread running the message pump.

Просмотреть файл

@ -39,13 +39,14 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsWindow.h"
#include "nsAppShell.h"
#include "nsIGenericFactory.h" #include "nsIGenericFactory.h"
#include "nsIModule.h" #include "nsIModule.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsWidgetsCID.h" #include "nsWidgetsCID.h"
#include "nsAppShell.h"
#include "nsWindow.h"
#include "nsToolkit.h" #include "nsToolkit.h"
#include "nsHTMLFormatConverter.h" #include "nsHTMLFormatConverter.h"
#include "nsTransferable.h" #include "nsTransferable.h"

Просмотреть файл

@ -42,6 +42,25 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <QtGui/QApplication>
#include <QtGui/QDesktopWidget>
#include <QtGui/QCursor>
#include <QtGui/QIcon>
#include <QtGui/QX11Info>
#include <QtGui/QGraphicsScene>
#include <QtGui/QGraphicsView>
#include <QtGui/QGraphicsSceneContextMenuEvent>
#include <QtGui/QGraphicsSceneDragDropEvent>
#include <QtGui/QGraphicsSceneMouseEvent>
#include <QtGui/QGraphicsSceneHoverEvent>
#include <QtGui/QGraphicsSceneWheelEvent>
#include <QtGui/QGraphicsSceneResizeEvent>
#include <QtGui/QStyleOptionGraphicsItem>
#include <QtCore/QDebug>
#include <QtCore/QEvent>
#include <QtCore/QVariant>
#include "prlink.h" #include "prlink.h"
#include "nsWindow.h" #include "nsWindow.h"
@ -66,25 +85,6 @@
#include "nsIInterfaceRequestorUtils.h" #include "nsIInterfaceRequestorUtils.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include <QtGui/QApplication>
#include <QtGui/QDesktopWidget>
#include <QtGui/QCursor>
#include <QtGui/QIcon>
#include <QtGui/QX11Info>
#include <QtGui/QGraphicsScene>
#include <QtGui/QGraphicsView>
#include <QtGui/QGraphicsSceneContextMenuEvent>
#include <QtGui/QGraphicsSceneDragDropEvent>
#include <QtGui/QGraphicsSceneMouseEvent>
#include <QtGui/QGraphicsSceneHoverEvent>
#include <QtGui/QGraphicsSceneWheelEvent>
#include <QtGui/QGraphicsSceneResizeEvent>
#include <QtGui/QStyleOptionGraphicsItem>
#include <QtCore/QDebug>
#include <QtCore/QEvent>
#include <QtCore/QVariant>
#include "gfxQtPlatform.h" #include "gfxQtPlatform.h"
#include "gfxXlibSurface.h" #include "gfxXlibSurface.h"
#include "gfxQPainterSurface.h" #include "gfxQPainterSurface.h"

Просмотреть файл

@ -41,16 +41,17 @@
#ifndef __nsWindow_h__ #ifndef __nsWindow_h__
#define __nsWindow_h__ #define __nsWindow_h__
#include <QKeyEvent>
#include <qgraphicswidget.h>
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsBaseWidget.h" #include "nsBaseWidget.h"
#include "nsGUIEvent.h" #include "nsGUIEvent.h"
#include <QKeyEvent>
#include "nsWeakReference.h" #include "nsWeakReference.h"
#include "nsWidgetAtoms.h" #include "nsWidgetAtoms.h"
#include <qgraphicswidget.h>
#ifdef MOZ_LOGGING #ifdef MOZ_LOGGING