зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455674 part 6. Mostly remove use of nsIDOMElement in editor. r=masayuki
This commit is contained in:
Родитель
0659ea615e
Коммит
42cb3dbf9d
|
@ -22,7 +22,6 @@
|
|||
#include "nsIClipboard.h" // for nsIClipboard, etc
|
||||
#include "nsICommandParams.h" // for nsICommandParams, etc
|
||||
#include "nsID.h"
|
||||
#include "nsIDOMElement.h" // for nsIDOMElement
|
||||
#include "nsIEditor.h" // for nsIEditor
|
||||
#include "nsIHTMLEditor.h" // for nsIHTMLEditor, etc
|
||||
#include "nsLiteralString.h" // for NS_LITERAL_STRING
|
||||
|
|
|
@ -74,7 +74,6 @@
|
|||
#include "nsAtom.h" // for nsAtom
|
||||
#include "nsIContent.h" // for nsIContent
|
||||
#include "nsIDOMDocument.h" // for nsIDOMDocument
|
||||
#include "nsIDOMElement.h" // for nsIDOMElement
|
||||
#include "nsIDOMEventListener.h" // for nsIDOMEventListener
|
||||
#include "nsIDOMNode.h" // for nsIDOMNode, etc.
|
||||
#include "nsIDocumentStateListener.h" // for nsIDocumentStateListener
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include "nsGkAtoms.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsROCSSPrimitiveValue.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
#include "nsDOMCSSRGBColor.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include "nsIContent.h"
|
||||
#include "nsIContentIterator.h"
|
||||
#include "nsID.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIHTMLAbsPosEditor.h"
|
||||
#include "nsINode.h"
|
||||
|
|
|
@ -39,7 +39,6 @@ class nsHTMLDocument;
|
|||
class nsITransferable;
|
||||
class nsIClipboard;
|
||||
class nsIDOMDocument;
|
||||
class nsIDOMElement;
|
||||
class nsILinkHandler;
|
||||
class nsTableWrapperFrame;
|
||||
class nsIDOMRange;
|
||||
|
@ -576,7 +575,7 @@ public:
|
|||
* @param aY [IN] vertical position of the pointer
|
||||
* @param aTarget [IN] the element triggering the event
|
||||
*/
|
||||
nsresult OnMouseUp(int32_t aX, int32_t aY, nsIDOMElement* aTarget);
|
||||
nsresult OnMouseUp(int32_t aX, int32_t aY, Element* aTarget);
|
||||
|
||||
/**
|
||||
* event callback when the mouse pointer is moved
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include "nsIClipboard.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIFile.h"
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsDebug.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
#include "nsLiteralString.h"
|
||||
#include "nsQueryObject.h"
|
||||
|
@ -53,7 +52,7 @@ HTMLEditorEventListener::MouseUp(MouseEvent* aMouseEvent)
|
|||
|
||||
RefPtr<EventTarget> target = aMouseEvent->GetTarget();
|
||||
NS_ENSURE_TRUE(target, NS_ERROR_NULL_POINTER);
|
||||
nsCOMPtr<nsIDOMElement> element = do_QueryInterface(target);
|
||||
nsCOMPtr<Element> element = do_QueryInterface(target);
|
||||
|
||||
int32_t clientX = aMouseEvent->ClientX();
|
||||
int32_t clientY = aMouseEvent->ClientY();
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include "nsAtom.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsID.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsISupportsUtils.h"
|
||||
|
@ -548,7 +547,7 @@ HTMLEditor::OnMouseDown(int32_t aClientX,
|
|||
nsresult
|
||||
HTMLEditor::OnMouseUp(int32_t aClientX,
|
||||
int32_t aClientY,
|
||||
nsIDOMElement* aTarget)
|
||||
Element* aTarget)
|
||||
{
|
||||
if (mIsResizing) {
|
||||
// we are resizing and release the mouse button, so let's
|
||||
|
|
Загрузка…
Ссылка в новой задаче