Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
05d3b9cd
Commit
05d3b9cd
authored
Aug 24, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Get rid of no longer useful get_nsdoc_window helper.
parent
43d9122e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
19 deletions
+5
-19
htmlframebase.c
dlls/mshtml/htmlframebase.c
+3
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+0
-14
mshtml_private.h
dlls/mshtml/mshtml_private.h
+0
-1
npplugin.c
dlls/mshtml/npplugin.c
+2
-2
No files found.
dlls/mshtml/htmlframebase.c
View file @
05d3b9cd
...
@@ -39,13 +39,14 @@ HRESULT set_frame_doc(HTMLFrameBase *frame, nsIDOMDocument *nsdoc)
...
@@ -39,13 +39,14 @@ HRESULT set_frame_doc(HTMLFrameBase *frame, nsIDOMDocument *nsdoc)
{
{
nsIDOMWindow
*
nswindow
;
nsIDOMWindow
*
nswindow
;
HTMLWindow
*
window
;
HTMLWindow
*
window
;
nsresult
nsres
;
HRESULT
hres
=
S_OK
;
HRESULT
hres
=
S_OK
;
if
(
frame
->
content_window
)
if
(
frame
->
content_window
)
return
S_OK
;
return
S_OK
;
ns
window
=
get_nsdoc_window
(
nsdoc
);
ns
res
=
nsIDOMDocument_GetDefaultView
(
nsdoc
,
&
nswindow
);
if
(
!
nswindow
)
if
(
NS_FAILED
(
nsres
)
||
!
nswindow
)
return
E_FAIL
;
return
E_FAIL
;
window
=
nswindow_to_window
(
nswindow
);
window
=
nswindow_to_window
(
nswindow
);
...
...
dlls/mshtml/htmlwindow.c
View file @
05d3b9cd
...
@@ -83,20 +83,6 @@ static void window_set_docnode(HTMLWindow *window, HTMLDocumentNode *doc_node)
...
@@ -83,20 +83,6 @@ static void window_set_docnode(HTMLWindow *window, HTMLDocumentNode *doc_node)
}
}
}
}
nsIDOMWindow
*
get_nsdoc_window
(
nsIDOMDocument
*
nsdoc
)
{
nsIDOMWindow
*
nswindow
;
nsresult
nsres
;
nsres
=
nsIDOMDocument_GetDefaultView
(
nsdoc
,
&
nswindow
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDefaultView failed: %08x
\n
"
,
nsres
);
return
NULL
;
}
return
nswindow
;
}
static
void
release_children
(
HTMLWindow
*
This
)
static
void
release_children
(
HTMLWindow
*
This
)
{
{
HTMLWindow
*
child
;
HTMLWindow
*
child
;
...
...
dlls/mshtml/mshtml_private.h
View file @
05d3b9cd
...
@@ -609,7 +609,6 @@ HRESULT create_document_fragment(nsIDOMNode*,HTMLDocumentNode*,HTMLDocumentNode*
...
@@ -609,7 +609,6 @@ HRESULT create_document_fragment(nsIDOMNode*,HTMLDocumentNode*,HTMLDocumentNode*
HRESULT
HTMLWindow_Create
(
HTMLDocumentObj
*
,
nsIDOMWindow
*
,
HTMLWindow
*
,
HTMLWindow
**
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLWindow_Create
(
HTMLDocumentObj
*
,
nsIDOMWindow
*
,
HTMLWindow
*
,
HTMLWindow
**
)
DECLSPEC_HIDDEN
;
void
update_window_doc
(
HTMLWindow
*
)
DECLSPEC_HIDDEN
;
void
update_window_doc
(
HTMLWindow
*
)
DECLSPEC_HIDDEN
;
HTMLWindow
*
nswindow_to_window
(
const
nsIDOMWindow
*
)
DECLSPEC_HIDDEN
;
HTMLWindow
*
nswindow_to_window
(
const
nsIDOMWindow
*
)
DECLSPEC_HIDDEN
;
nsIDOMWindow
*
get_nsdoc_window
(
nsIDOMDocument
*
)
DECLSPEC_HIDDEN
;
HTMLOptionElementFactory
*
HTMLOptionElementFactory_Create
(
HTMLWindow
*
)
DECLSPEC_HIDDEN
;
HTMLOptionElementFactory
*
HTMLOptionElementFactory_Create
(
HTMLWindow
*
)
DECLSPEC_HIDDEN
;
HTMLImageElementFactory
*
HTMLImageElementFactory_Create
(
HTMLWindow
*
)
DECLSPEC_HIDDEN
;
HTMLImageElementFactory
*
HTMLImageElementFactory_Create
(
HTMLWindow
*
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLLocation_Create
(
HTMLWindow
*
,
HTMLLocation
**
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLLocation_Create
(
HTMLWindow
*
,
HTMLLocation
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/npplugin.c
View file @
05d3b9cd
...
@@ -126,9 +126,9 @@ static HTMLWindow *get_elem_window(nsIDOMElement *elem)
...
@@ -126,9 +126,9 @@ static HTMLWindow *get_elem_window(nsIDOMElement *elem)
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
return
NULL
;
return
NULL
;
ns
window
=
get_nsdoc_window
(
nsdoc
);
ns
res
=
nsIDOMDocument_GetDefaultView
(
nsdoc
,
&
nswindow
);
nsIDOMDocument_Release
(
nsdoc
);
nsIDOMDocument_Release
(
nsdoc
);
if
(
!
nswindow
)
if
(
NS_FAILED
(
nsres
)
||
!
nswindow
)
return
NULL
;
return
NULL
;
window
=
nswindow_to_window
(
nswindow
);
window
=
nswindow_to_window
(
nswindow
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment