This commit is contained in:
pinkerton%netscape.com 1999-06-15 23:26:32 +00:00
Родитель 1e5e0c80f5
Коммит 7a9c1afcd4
4 изменённых файлов: 14 добавлений и 12 удалений

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

@ -330,7 +330,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext& aPresContext)
// see if the outline has changed.
// nsCOMPtr<nsIStyleContext> oldOutline = mOutlineStyle;
nsCOMPtr<nsIAtom> atom (do_QueryInterface(NS_NewAtom(":-moz-outline")));
nsCOMPtr<nsIAtom> atom ( getter_AddRefs(NS_NewAtom(":-moz-outline")) );
aPresContext.ProbePseudoStyleContextFor(content, atom, context,
PR_FALSE,
getter_AddRefs(mOutlineStyle));
@ -344,7 +344,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext& aPresContext)
*/
// style for the inner such as a dotted line (Windows)
atom = do_QueryInterface(NS_NewAtom(":-moz-focus-inner"));
atom = getter_AddRefs(NS_NewAtom(":-moz-focus-inner"));
aPresContext.ProbePseudoStyleContextFor(content, atom, context,
PR_FALSE,
getter_AddRefs(mInnerFocusStyle));
@ -352,7 +352,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext& aPresContext)
// style for outer focus like a ridged border (MAC).
atom = do_QueryInterface(NS_NewAtom(":-moz-focus-outer"));
atom = getter_AddRefs(NS_NewAtom(":-moz-focus-outer"));
aPresContext.ProbePseudoStyleContextFor(content, atom, context,
PR_FALSE,
getter_AddRefs(mOuterFocusStyle));

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

@ -330,7 +330,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext& aPresContext)
// see if the outline has changed.
// nsCOMPtr<nsIStyleContext> oldOutline = mOutlineStyle;
nsCOMPtr<nsIAtom> atom (do_QueryInterface(NS_NewAtom(":-moz-outline")));
nsCOMPtr<nsIAtom> atom ( getter_AddRefs(NS_NewAtom(":-moz-outline")) );
aPresContext.ProbePseudoStyleContextFor(content, atom, context,
PR_FALSE,
getter_AddRefs(mOutlineStyle));
@ -344,7 +344,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext& aPresContext)
*/
// style for the inner such as a dotted line (Windows)
atom = do_QueryInterface(NS_NewAtom(":-moz-focus-inner"));
atom = getter_AddRefs(NS_NewAtom(":-moz-focus-inner"));
aPresContext.ProbePseudoStyleContextFor(content, atom, context,
PR_FALSE,
getter_AddRefs(mInnerFocusStyle));
@ -352,7 +352,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext& aPresContext)
// style for outer focus like a ridged border (MAC).
atom = do_QueryInterface(NS_NewAtom(":-moz-focus-outer"));
atom = getter_AddRefs(NS_NewAtom(":-moz-focus-outer"));
aPresContext.ProbePseudoStyleContextFor(content, atom, context,
PR_FALSE,
getter_AddRefs(mOuterFocusStyle));

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

@ -97,8 +97,8 @@ nsDeckFrame::AttributeChanged(nsIPresContext* aPresContext,
if (aAttribute == nsHTMLAtoms::value) {
/*
nsCOMPtr<nsIAtom> show (do_QueryInterface(NS_NewAtom(":-moz-deck-showing")));
nsCOMPtr<nsIAtom> hide (do_QueryInterface(NS_NewAtom(":-moz-deck-hidden")));
nsCOMPtr<nsIAtom> show ( getter_AddRefs(NS_NewAtom(":-moz-deck-showing")) );
nsCOMPtr<nsIAtom> hide ( getter_AddRefs(NS_NewAtom(":-moz-deck-hidden")) );
if (nsnull != mSelected)
ForceResolveToPseudoElement(*aPresContext,mSelected, hide);
@ -755,7 +755,7 @@ nsDeckFrame :: ReResolveStyleContext ( nsIPresContext* aPresContext, nsIStyleCon
}
// get our hidden pseudo
nsCOMPtr<nsIAtom> hide (do_QueryInterface(NS_NewAtom(":-moz-deck-hidden")));
nsCOMPtr<nsIAtom> hide ( getter_AddRefs(NS_NewAtom(":-moz-deck-hidden")) );
nsIStyleContext* newSC;

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

@ -193,8 +193,9 @@ nsDragService :: RegisterDragItemsAndFlavors ( nsISupportsArray * inArray )
unsigned int numDragItems = 0;
inArray->Count ( &numDragItems ) ;
for ( int itemIndex = 0; itemIndex < numDragItems; ++itemIndex ) {
nsCOMPtr<nsITransferable> currItem ( do_QueryInterface(inArray->ElementAt(itemIndex)) );
for ( int itemIndex = 0; itemIndex < numDragItems; ++itemIndex ) {
nsCOMPtr<nsISupports> temp ( inArray->ElementAt(itemIndex) );
nsCOMPtr<nsITransferable> currItem ( do_QueryInterface(temp) );
if ( currItem ) {
nsVoidArray* flavorList = nsnull;
if ( NS_SUCCEEDED(currItem->FlavorsTransferableCanExport(&flavorList)) ) {
@ -422,7 +423,8 @@ nsDragService :: GetDataForFlavor ( nsISupportsArray* inDragItems, unsigned int
OSErr retVal = noErr;
nsCOMPtr<nsITransferable> item ( do_QueryInterface(inDragItems->ElementAt(inItemIndex)) );
nsCOMPtr<nsISupports> temp ( inDragItems->ElementAt(inItemIndex) );
nsCOMPtr<nsITransferable> item ( do_QueryInterface(temp) );
if ( item ) {
nsString mimeFlavor;
nsMimeMapperMac::MapMacOSTypeToMimeType ( inFlavor, mimeFlavor );