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
b947229f
Commit
b947229f
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: Added support for non-HTML elements.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4ad2cf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
htmlelem.c
dlls/mshtml/htmlelem.c
+14
-13
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-3
No files found.
dlls/mshtml/htmlelem.c
View file @
b947229f
...
...
@@ -5570,7 +5570,6 @@ void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMElement *n
assert
((
nsIDOMNode
*
)
html_element
==
This
->
node
.
nsnode
);
nsIDOMHTMLElement_Release
(
html_element
);
}
This
->
nselem
=
This
->
html_element
;
}
ConnectionPointContainer_Init
(
&
This
->
cp_container
,
(
IUnknown
*
)
&
This
->
IHTMLElement_iface
,
This
->
node
.
vtbl
->
cpc_entries
);
...
...
@@ -5578,24 +5577,26 @@ void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMElement *n
HRESULT
HTMLElement_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMNode
*
nsnode
,
BOOL
use_generic
,
HTMLElement
**
ret
)
{
nsIDOM
HTML
Element
*
nselem
;
nsAString
class
_name_str
;
const
PRUnichar
*
class
_name
;
nsIDOMElement
*
nselem
;
nsAString
tag
_name_str
;
const
PRUnichar
*
tag
_name
;
const
tag_desc_t
*
tag
;
HTMLElement
*
elem
;
nsresult
nsres
;
HRESULT
hres
;
nsres
=
nsIDOMNode_QueryInterface
(
nsnode
,
&
IID_nsIDOMHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_FAILED
(
nsres
))
nsres
=
nsIDOMNode_QueryInterface
(
nsnode
,
&
IID_nsIDOMElement
,
(
void
**
)
&
nselem
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"no nsIDOMElement iface
\n
"
);
return
E_FAIL
;
}
nsAString_Init
(
&
class
_name_str
,
NULL
);
nsIDOM
HTMLElement_GetTagName
(
nselem
,
&
class
_name_str
);
nsAString_Init
(
&
tag
_name_str
,
NULL
);
nsIDOM
Element_GetTagName
(
nselem
,
&
tag
_name_str
);
nsAString_GetData
(
&
class_name_str
,
&
class
_name
);
nsAString_GetData
(
&
tag_name_str
,
&
tag
_name
);
tag
=
get_tag_desc
(
class
_name
);
tag
=
get_tag_desc
(
tag
_name
);
if
(
tag
)
{
hres
=
tag
->
constructor
(
doc
,
(
nsIDOMElement
*
)
nselem
,
&
elem
);
}
else
if
(
use_generic
)
{
...
...
@@ -5611,10 +5612,10 @@ HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_g
}
}
TRACE
(
"%s ret %p
\n
"
,
debugstr_w
(
class
_name
),
elem
);
TRACE
(
"%s ret %p
\n
"
,
debugstr_w
(
tag
_name
),
elem
);
nsIDOM
HTML
Element_Release
(
nselem
);
nsAString_Finish
(
&
class
_name_str
);
nsIDOMElement_Release
(
nselem
);
nsAString_Finish
(
&
tag
_name_str
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/mshtml/mshtml_private.h
View file @
b947229f
...
...
@@ -779,9 +779,8 @@ typedef struct {
IElementTraversal
IElementTraversal_iface
;
IProvideMultipleClassInfo
IProvideMultipleClassInfo_iface
;
nsIDOMHTMLElement
*
nselem
;
nsIDOMElement
*
dom_element
;
nsIDOMHTMLElement
*
html_element
;
nsIDOMElement
*
dom_element
;
/* NULL for legacy comments represented as HTML elements */
nsIDOMHTMLElement
*
html_element
;
/* NULL for non-HTML elements (like SVG elements) */
HTMLStyle
*
style
;
HTMLStyle
*
runtime_style
;
HTMLAttributeCollection
*
attrs
;
...
...
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