mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
cleanup. r+sr=dbaron
This commit is contained in:
parent
522e5ca710
commit
12ad810794
@ -52,7 +52,6 @@ class nsIDeviceContextSpec;
|
|||||||
class nsIAtom;
|
class nsIAtom;
|
||||||
|
|
||||||
struct nsFont;
|
struct nsFont;
|
||||||
struct nsColor;
|
|
||||||
|
|
||||||
//a cross platform way of specifying a native device context
|
//a cross platform way of specifying a native device context
|
||||||
typedef void * nsNativeDeviceContext;
|
typedef void * nsNativeDeviceContext;
|
||||||
|
@ -318,7 +318,7 @@ void nsListControlFrame::PaintFocus(nsIRenderingContext& aRC, nsPoint aPt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we found a node use, if not get the first child (this is for empty selects)
|
// if we found a node use it, if not get the first child (this is for empty selects)
|
||||||
if (node) {
|
if (node) {
|
||||||
focusedContent = do_QueryInterface(node);
|
focusedContent = do_QueryInterface(node);
|
||||||
childframe = presShell->GetPrimaryFrameFor(focusedContent);
|
childframe = presShell->GetPrimaryFrameFor(focusedContent);
|
||||||
@ -373,7 +373,6 @@ void nsListControlFrame::PaintFocus(nsIRenderingContext& aRC, nsPoint aPt)
|
|||||||
nsRect innerRect = fRect;
|
nsRect innerRect = fRect;
|
||||||
innerRect.Deflate(nsSize(onePixelInTwips, onePixelInTwips));
|
innerRect.Deflate(nsSize(onePixelInTwips, onePixelInTwips));
|
||||||
nsCSSRendering::DrawDashedSides(0, aRC, dirty, borderStyle, colors, fRect, innerRect, 0, nsnull);
|
nsCSSRendering::DrawDashedSides(0, aRC, dirty, borderStyle, colors, fRect, innerRect, 0, nsnull);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
@ -965,7 +964,7 @@ nsListControlFrame::HandleListSelection(nsIDOMEvent* aEvent,
|
|||||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent = do_QueryInterface(aEvent);
|
nsCOMPtr<nsIDOMMouseEvent> mouseEvent = do_QueryInterface(aEvent);
|
||||||
PRBool isShift;
|
PRBool isShift;
|
||||||
PRBool isControl;
|
PRBool isControl;
|
||||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
#ifdef XP_MACOSX
|
||||||
mouseEvent->GetMetaKey(&isControl);
|
mouseEvent->GetMetaKey(&isControl);
|
||||||
#else
|
#else
|
||||||
mouseEvent->GetCtrlKey(&isControl);
|
mouseEvent->GetCtrlKey(&isControl);
|
||||||
@ -2330,7 +2329,7 @@ nsListControlFrame::DragMove(nsIDOMEvent* aMouseEvent)
|
|||||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent = do_QueryInterface(aMouseEvent);
|
nsCOMPtr<nsIDOMMouseEvent> mouseEvent = do_QueryInterface(aMouseEvent);
|
||||||
NS_ASSERTION(mouseEvent, "aMouseEvent is not an nsIDOMMouseEvent!");
|
NS_ASSERTION(mouseEvent, "aMouseEvent is not an nsIDOMMouseEvent!");
|
||||||
PRBool isControl;
|
PRBool isControl;
|
||||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
#ifdef XP_MACOSX
|
||||||
mouseEvent->GetMetaKey(&isControl);
|
mouseEvent->GetMetaKey(&isControl);
|
||||||
#else
|
#else
|
||||||
mouseEvent->GetCtrlKey(&isControl);
|
mouseEvent->GetCtrlKey(&isControl);
|
||||||
|
Loading…
Reference in New Issue
Block a user