Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
7c8222e4
Commit
7c8222e4
authored
15 years ago
by
Markus Stange
Browse files
Options
Downloads
Patches
Plain Diff
Bug 508159 - Remove some dead code in nsXULWindow. r=Neil
parent
a8f11704
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xpfe/appshell/src/nsXULWindow.cpp
+0
-28
0 additions, 28 deletions
xpfe/appshell/src/nsXULWindow.cpp
xpfe/appshell/src/nsXULWindow.h
+0
-1
0 additions, 1 deletion
xpfe/appshell/src/nsXULWindow.h
with
0 additions
and
29 deletions
xpfe/appshell/src/nsXULWindow.cpp
+
0
−
28
View file @
7c8222e4
...
...
@@ -1597,34 +1597,6 @@ NS_IMETHODIMP nsXULWindow::GetWindowDOMElement(nsIDOMElement** aDOMElement)
return
NS_OK
;
}
NS_IMETHODIMP
nsXULWindow
::
GetDOMElementById
(
char
*
aID
,
nsIDOMElement
**
aDOMElement
)
{
NS_ENSURE_STATE
(
mDocShell
);
NS_ENSURE_ARG_POINTER
(
aDOMElement
);
*
aDOMElement
=
nsnull
;
nsCOMPtr
<
nsIContentViewer
>
cv
;
mDocShell
->
GetContentViewer
(
getter_AddRefs
(
cv
));
if
(
!
cv
)
return
NS_ERROR_FAILURE
;
nsCOMPtr
<
nsIDocumentViewer
>
docv
(
do_QueryInterface
(
cv
));
if
(
!
docv
)
return
NS_ERROR_FAILURE
;
nsCOMPtr
<
nsIDocument
>
doc
;
docv
->
GetDocument
(
getter_AddRefs
(
doc
));
nsCOMPtr
<
nsIDOMDocument
>
domdoc
(
do_QueryInterface
(
doc
));
if
(
!
domdoc
)
return
NS_ERROR_FAILURE
;
NS_ENSURE_SUCCESS
(
domdoc
->
GetElementById
(
NS_ConvertASCIItoUTF16
(
aID
),
aDOMElement
),
NS_ERROR_FAILURE
);
return
NS_OK
;
}
nsresult
nsXULWindow
::
ContentShellAdded
(
nsIDocShellTreeItem
*
aContentShell
,
PRBool
aPrimary
,
PRBool
aTargetable
,
const
nsAString
&
aID
)
{
...
...
This diff is collapsed.
Click to expand it.
xpfe/appshell/src/nsXULWindow.h
+
0
−
1
View file @
7c8222e4
...
...
@@ -126,7 +126,6 @@ protected:
NS_IMETHOD
GetWindowDOMWindow
(
nsIDOMWindowInternal
**
aDOMWindow
);
NS_IMETHOD
GetWindowDOMElement
(
nsIDOMElement
**
aDOMElement
);
NS_IMETHOD
GetDOMElementById
(
char
*
aID
,
nsIDOMElement
**
aDOMElement
);
// See nsIDocShellTreeOwner for docs on next two methods
NS_HIDDEN_
(
nsresult
)
ContentShellAdded
(
nsIDocShellTreeItem
*
aContentShell
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment