зеркало из https://github.com/mozilla/gecko-dev.git
landing marco's patch for bug 238928 "domstubs.idl should not include nsAString.h" r=bsmedberg sr=jst a=dbaron
This commit is contained in:
Родитель
00a91ef004
Коммит
6b03adea42
|
@ -59,7 +59,7 @@
|
|||
#include "nsISupports.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsAString.h"
|
||||
#include "domstubs.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCOMArray.h"
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
|
||||
#include "nsINodeInfo.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
typedef unsigned long PtrBits;
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@
|
|||
#include "imgILoader.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsContentPolicyUtils.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
static const char kJSStackContractID[] = "@mozilla.org/js/xpc/ContextStack;1";
|
||||
static NS_DEFINE_IID(kParserServiceCID, NS_PARSERSERVICE_CID);
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#include "nsDOMError.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
|
||||
#include "nsDOMString.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "nsLayoutAtoms.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIDOM3Node.h"
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
#include "nsIDOMEventGroup.h"
|
||||
#include "nsIDOMCDATASection.h"
|
||||
#include "nsIDOMProcessingInstruction.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
#include "nsRange.h"
|
||||
#include "nsIDOMText.h"
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#include "nsDOMError.h"
|
||||
#include "nsIDOM3Node.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
|
||||
#include "nsDOMString.h"
|
||||
|
||||
class nsDocumentFragment : public nsGenericElement,
|
||||
public nsIDocumentFragment,
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMText.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
#include "pldhash.h"
|
||||
#include "prprf.h"
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
#include "nsINameSpaceManager.h"
|
||||
#include "nsContentList.h"
|
||||
#include "nsDOMError.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsIDOMMutationEvent.h"
|
||||
#include "nsMutationEvent.h"
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "domstubs.h" // for SetDOMStringToNull();
|
||||
#include "nsDOMString.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsReadableUtils.h"
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
#include "nsIDOMDocumentType.h"
|
||||
#include "nsIDOMWindowInternal.h"
|
||||
#include "nsIDOMHTMLFormElement.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIIOService.h"
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "nsComputedDOMStyle.h"
|
||||
|
||||
#include "nsDOMError.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIDOMCSS2Properties.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsStyleContext.h"
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsDOMCID.h"
|
||||
#include "nsDOMError.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIPrivateDOMEvent.h"
|
||||
#include "nsHashtable.h"
|
||||
|
|
|
@ -49,6 +49,7 @@ EXPORTS=nsIScriptContext.h \
|
|||
nsIJSEventListener.h \
|
||||
nsIDOMClassInfo.h \
|
||||
nsIBaseDOMException.h \
|
||||
nsDOMString.h \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -40,23 +40,6 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
%{ C++
|
||||
#include "nsAString.h"
|
||||
|
||||
inline PRBool DOMStringIsNull(const nsAString& aString)
|
||||
{
|
||||
return aString.IsVoid();
|
||||
}
|
||||
|
||||
inline void SetDOMStringToNull(nsAString& aString)
|
||||
{
|
||||
aString.Truncate();
|
||||
aString.SetIsVoid(PR_TRUE);
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
|
||||
typedef unsigned long long DOMTimeStamp;
|
||||
|
||||
// Core
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2004
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Marco Pesenti Gritti <marco@gnome.org>
|
||||
*
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#ifndef nsDOMString_h___
|
||||
#define nsDOMString_h___
|
||||
|
||||
#include "nsAString.h"
|
||||
|
||||
inline PRBool DOMStringIsNull(const nsAString& aString)
|
||||
{
|
||||
return aString.IsVoid();
|
||||
}
|
||||
|
||||
inline void SetDOMStringToNull(nsAString& aString)
|
||||
{
|
||||
aString.SetIsVoid(PR_TRUE);
|
||||
}
|
||||
|
||||
#endif /* nsDOMString_h___ */
|
|
@ -90,6 +90,7 @@
|
|||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMPopupBlockedEvent.h"
|
||||
#include "nsIDOMPkcs11.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIEmbeddingSiteWindow2.h"
|
||||
#include "nsIEventQueueService.h"
|
||||
#include "nsIEventStateManager.h"
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
#include "nsIDOMDocument.h"
|
||||
#include "nsIDOMXPathNSResolver.h"
|
||||
#include "nsIDOMRange.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIModifyableXPointer.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsString.h"
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
#include "txURIUtils.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
extern nsINameSpaceManager* gTxNameSpaceManager;
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include "nsXPathNSResolver.h"
|
||||
#include "nsIDOMClassInfo.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
NS_IMPL_ADDREF(nsXPathNSResolver)
|
||||
NS_IMPL_RELEASE(nsXPathNSResolver)
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#include "nsIDOMNode.h"
|
||||
#include "nsXPathException.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsDOMString.h"
|
||||
|
||||
nsXPathResult::nsXPathResult() : mNumberValue(0),
|
||||
mDocument(0),
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "nsComputedDOMStyle.h"
|
||||
|
||||
#include "nsDOMError.h"
|
||||
#include "nsDOMString.h"
|
||||
#include "nsIDOMCSS2Properties.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsStyleContext.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче