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
e604ae3e
Commit
e604ae3e
authored
Oct 08, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use stored nsdoc in handle_load.
parent
98789edc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
nsevents.c
dlls/mshtml/nsevents.c
+5
-9
No files found.
dlls/mshtml/nsevents.c
View file @
e604ae3e
...
...
@@ -129,9 +129,7 @@ static nsresult NSAPI handle_keypress(nsIDOMEventListener *iface,
static
nsresult
NSAPI
handle_load
(
nsIDOMEventListener
*
iface
,
nsIDOMEvent
*
event
)
{
NSContainer
*
This
=
NSEVENTLIST_THIS
(
iface
)
->
This
;
nsIDOMHTMLDocument
*
nshtmldoc
;
nsIDOMHTMLElement
*
nsbody
=
NULL
;
nsIDOMDocument
*
nsdoc
;
task_t
*
task
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -163,14 +161,12 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
*/
push_task
(
task
);
if
(
!
This
->
doc
->
nsdoc
)
{
ERR
(
"NULL nsdoc
\n
"
);
return
NS_ERROR_FAILURE
;
}
nsIWebNavigation_GetDocument
(
This
->
navigation
,
&
nsdoc
);
nsIDOMDocument_QueryInterface
(
nsdoc
,
&
IID_nsIDOMHTMLDocument
,
(
void
**
)
&
nshtmldoc
);
nsIDOMDocument_Release
(
nsdoc
);
nsIDOMHTMLDocument_GetBody
(
nshtmldoc
,
&
nsbody
);
nsIDOMHTMLDocument_Release
(
nshtmldoc
);
nsIDOMHTMLDocument_GetBody
(
This
->
doc
->
nsdoc
,
&
nsbody
);
if
(
nsbody
)
{
fire_event
(
This
->
doc
,
EVENTID_LOAD
,
(
nsIDOMNode
*
)
nsbody
);
nsIDOMHTMLElement_Release
(
nsbody
);
...
...
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