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
90d07895
Commit
90d07895
authored
Nov 16, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use nselem in InsertAdjacentNode implementation.
parent
b553019d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
htmlelem.c
dlls/mshtml/htmlelem.c
+8
-14
No files found.
dlls/mshtml/htmlelem.c
View file @
90d07895
...
...
@@ -1014,19 +1014,13 @@ static HRESULT HTMLElement_InsertAdjacentNode(HTMLElement *This, BSTR where, nsI
static
const
WCHAR
wszAfterEnd
[]
=
{
'a'
,
'f'
,
't'
,
'e'
,
'r'
,
'E'
,
'n'
,
'd'
,
0
};
nsresult
nsres
;
if
(
!
This
->
nselem
)
{
FIXME
(
"NULL nselem
\n
"
);
return
E_NOTIMPL
;
}
if
(
!
strcmpiW
(
where
,
wszBeforeBegin
))
{
nsIDOMNode
*
unused
;
nsIDOMNode
*
parent
;
nsres
=
nsIDOMNode_GetParentNode
(
This
->
n
selem
,
&
parent
);
nsres
=
nsIDOMNode_GetParentNode
(
This
->
n
ode
.
nsnode
,
&
parent
);
if
(
!
parent
)
return
E_INVALIDARG
;
nsres
=
nsIDOMNode_InsertBefore
(
parent
,
nsnode
,
(
nsIDOMNode
*
)
This
->
nselem
,
&
unused
);
nsres
=
nsIDOMNode_InsertBefore
(
parent
,
nsnode
,
This
->
node
.
nsnode
,
&
unused
);
if
(
unused
)
nsIDOMNode_Release
(
unused
);
nsIDOMNode_Release
(
parent
);
}
...
...
@@ -1034,15 +1028,15 @@ static HRESULT HTMLElement_InsertAdjacentNode(HTMLElement *This, BSTR where, nsI
{
nsIDOMNode
*
unused
;
nsIDOMNode
*
first_child
;
nsIDOMNode_GetFirstChild
(
This
->
n
selem
,
&
first_child
);
nsres
=
nsIDOMNode_InsertBefore
(
This
->
n
selem
,
nsnode
,
first_child
,
&
unused
);
nsIDOMNode_GetFirstChild
(
This
->
n
ode
.
nsnode
,
&
first_child
);
nsres
=
nsIDOMNode_InsertBefore
(
This
->
n
ode
.
nsnode
,
nsnode
,
first_child
,
&
unused
);
if
(
unused
)
nsIDOMNode_Release
(
unused
);
if
(
first_child
)
nsIDOMNode_Release
(
first_child
);
}
else
if
(
!
strcmpiW
(
where
,
wszBeforeEnd
))
{
nsIDOMNode
*
unused
;
nsres
=
nsIDOMNode_AppendChild
(
This
->
n
selem
,
nsnode
,
&
unused
);
nsres
=
nsIDOMNode_AppendChild
(
This
->
n
ode
.
nsnode
,
nsnode
,
&
unused
);
if
(
unused
)
nsIDOMNode_Release
(
unused
);
}
else
if
(
!
strcmpiW
(
where
,
wszAfterEnd
))
...
...
@@ -1050,10 +1044,10 @@ static HRESULT HTMLElement_InsertAdjacentNode(HTMLElement *This, BSTR where, nsI
nsIDOMNode
*
unused
;
nsIDOMNode
*
next_sibling
;
nsIDOMNode
*
parent
;
nsIDOMNode_GetParentNode
(
This
->
n
selem
,
&
parent
);
nsIDOMNode_GetParentNode
(
This
->
n
ode
.
nsnode
,
&
parent
);
if
(
!
parent
)
return
E_INVALIDARG
;
nsIDOMNode_GetNextSibling
(
This
->
n
selem
,
&
next_sibling
);
nsIDOMNode_GetNextSibling
(
This
->
n
ode
.
nsnode
,
&
next_sibling
);
if
(
next_sibling
)
{
nsres
=
nsIDOMNode_InsertBefore
(
parent
,
nsnode
,
next_sibling
,
&
unused
);
...
...
@@ -1109,7 +1103,7 @@ static HRESULT WINAPI HTMLElement_insertAdjacentHTML(IHTMLElement *iface, BSTR w
return
E_FAIL
;
}
nsIDOMRange_SetStartBefore
(
range
,
(
nsIDOMNode
*
)
This
->
nselem
);
nsIDOMRange_SetStartBefore
(
range
,
This
->
node
.
nsnode
);
nsIDOMRange_QueryInterface
(
range
,
&
IID_nsIDOMNSRange
,
(
void
**
)
&
nsrange
);
nsIDOMRange_Release
(
range
);
...
...
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