mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
changing baseURI to an nsCOMPtr r=jst
This commit is contained in:
parent
faa968510f
commit
d9e16aae2f
@ -1158,15 +1158,14 @@ nsImageFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
|
||||
if (!inside && isServerMap) {
|
||||
suppress = GetSuppress();
|
||||
nsIURI* baseURL = nsnull;
|
||||
GetBaseURI(&baseURL);
|
||||
nsCOMPtr<nsIURI> baseURL;
|
||||
GetBaseURI(getter_AddRefs(baseURL));
|
||||
|
||||
// Server side image maps use the href in a containing anchor
|
||||
// element to provide the basis for the destination url.
|
||||
nsAutoString src;
|
||||
if (GetAnchorHREFAndTarget(src, target)) {
|
||||
NS_MakeAbsoluteURI(absURL, src, baseURL);
|
||||
NS_IF_RELEASE(baseURL);
|
||||
|
||||
// XXX if the mouse is over/clicked in the border/padding area
|
||||
// we should probably just pretend nothing happened. Nav4
|
||||
|
@ -1158,15 +1158,14 @@ nsImageFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
|
||||
if (!inside && isServerMap) {
|
||||
suppress = GetSuppress();
|
||||
nsIURI* baseURL = nsnull;
|
||||
GetBaseURI(&baseURL);
|
||||
nsCOMPtr<nsIURI> baseURL;
|
||||
GetBaseURI(getter_AddRefs(baseURL));
|
||||
|
||||
// Server side image maps use the href in a containing anchor
|
||||
// element to provide the basis for the destination url.
|
||||
nsAutoString src;
|
||||
if (GetAnchorHREFAndTarget(src, target)) {
|
||||
NS_MakeAbsoluteURI(absURL, src, baseURL);
|
||||
NS_IF_RELEASE(baseURL);
|
||||
|
||||
// XXX if the mouse is over/clicked in the border/padding area
|
||||
// we should probably just pretend nothing happened. Nav4
|
||||
|
Loading…
Reference in New Issue
Block a user