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
0666c6c2
Commit
0666c6c2
authored
Feb 12, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Pass Gecko element as nsIDOMElement to check_event_attr.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f1cb96b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
htmlevent.c
dlls/mshtml/htmlevent.c
+3
-3
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-1
mutation.c
dlls/mshtml/mutation.c
+3
-3
No files found.
dlls/mshtml/htmlevent.c
View file @
0666c6c2
...
...
@@ -2781,7 +2781,7 @@ void update_doc_cp_events(HTMLDocumentNode *doc, cp_static_data_t *cp)
}
}
void
check_event_attr
(
HTMLDocumentNode
*
doc
,
nsIDOM
HTML
Element
*
nselem
)
void
check_event_attr
(
HTMLDocumentNode
*
doc
,
nsIDOMElement
*
nselem
)
{
nsIDOMMozNamedAttrMap
*
attr_map
;
const
PRUnichar
*
name
,
*
value
;
...
...
@@ -2795,11 +2795,11 @@ void check_event_attr(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem)
nsresult
nsres
;
HRESULT
hres
;
nsres
=
nsIDOM
HTML
Element_HasAttributes
(
nselem
,
&
has_attrs
);
nsres
=
nsIDOMElement_HasAttributes
(
nselem
,
&
has_attrs
);
if
(
NS_FAILED
(
nsres
)
||
!
has_attrs
)
return
;
nsres
=
nsIDOM
HTML
Element_GetAttributes
(
nselem
,
&
attr_map
);
nsres
=
nsIDOMElement_GetAttributes
(
nselem
,
&
attr_map
);
if
(
NS_FAILED
(
nsres
))
return
;
...
...
dlls/mshtml/htmlevent.h
View file @
0666c6c2
...
...
@@ -85,7 +85,7 @@ typedef struct {
BOOL
no_event_obj
;
}
DOMEvent
;
void
check_event_attr
(
HTMLDocumentNode
*
,
nsIDOM
HTML
Element
*
)
DECLSPEC_HIDDEN
;
void
check_event_attr
(
HTMLDocumentNode
*
,
nsIDOMElement
*
)
DECLSPEC_HIDDEN
;
void
release_event_target
(
EventTarget
*
)
DECLSPEC_HIDDEN
;
HRESULT
set_event_handler
(
EventTarget
*
,
eventid_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
HRESULT
get_event_handler
(
EventTarget
*
,
eventid_t
,
VARIANT
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/mutation.c
View file @
0666c6c2
...
...
@@ -742,7 +742,7 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
nsIDOMHTMLFrameElement
*
nsframe
;
nsIDOMHTMLScriptElement
*
nsscript
;
nsIDOMHTMLMetaElement
*
nsmeta
;
nsIDOM
HTML
Element
*
nselem
;
nsIDOMElement
*
nselem
;
nsIDOMComment
*
nscomment
;
nsresult
nsres
;
...
...
@@ -768,12 +768,12 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
}
}
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOM
HTML
Element
,
(
void
**
)
&
nselem
);
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOMElement
,
(
void
**
)
&
nselem
);
if
(
NS_FAILED
(
nsres
))
return
;
check_event_attr
(
This
,
nselem
);
nsIDOM
HTML
Element_Release
(
nselem
);
nsIDOMElement_Release
(
nselem
);
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOMHTMLIFrameElement
,
(
void
**
)
&
nsiframe
);
if
(
NS_SUCCEEDED
(
nsres
))
{
...
...
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