Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
673c9038
Commit
673c9038
authored
Jan 28, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Optimize nsAString handling in htmlelem*.c.
parent
c3ae1356
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
htmlelem.c
dlls/mshtml/htmlelem.c
+9
-9
htmlelem2.c
dlls/mshtml/htmlelem2.c
+1
-1
No files found.
dlls/mshtml/htmlelem.c
View file @
673c9038
...
...
@@ -65,7 +65,7 @@ HRESULT create_nselem(HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement
return
E_UNEXPECTED
;
}
nsAString_Init
(
&
tag_str
,
tag
);
nsAString_Init
Depend
(
&
tag_str
,
tag
);
nsres
=
nsIDOMDocument_CreateElement
(
doc
->
nsdoc
,
&
tag_str
,
&
nselem
);
nsAString_Finish
(
&
tag_str
);
if
(
NS_FAILED
(
nsres
))
{
...
...
@@ -215,7 +215,7 @@ static HRESULT WINAPI HTMLElement_put_className(IHTMLElement *iface, BSTR v)
return
E_NOTIMPL
;
}
nsAString_Init
(
&
classname_str
,
v
);
nsAString_Init
Depend
(
&
classname_str
,
v
);
nsres
=
nsIDOMHTMLElement_SetClassName
(
This
->
nselem
,
&
classname_str
);
nsAString_Finish
(
&
classname_str
);
if
(
NS_FAILED
(
nsres
))
...
...
@@ -269,7 +269,7 @@ static HRESULT WINAPI HTMLElement_put_id(IHTMLElement *iface, BSTR v)
return
S_OK
;
}
nsAString_Init
(
&
id_str
,
v
);
nsAString_Init
Depend
(
&
id_str
,
v
);
nsres
=
nsIDOMHTMLElement_SetId
(
This
->
nselem
,
&
id_str
);
nsAString_Finish
(
&
id_str
);
if
(
NS_FAILED
(
nsres
))
...
...
@@ -601,7 +601,7 @@ static HRESULT WINAPI HTMLElement_put_title(IHTMLElement *iface, BSTR v)
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
nsAString_Init
(
&
title_str
,
v
);
nsAString_Init
Depend
(
&
title_str
,
v
);
nsres
=
nsIDOMHTMLElement_SetTitle
(
This
->
nselem
,
&
title_str
);
nsAString_Finish
(
&
title_str
);
if
(
NS_FAILED
(
nsres
))
...
...
@@ -820,7 +820,7 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
return
E_FAIL
;
}
nsAString_Init
(
&
html_str
,
v
);
nsAString_Init
Depend
(
&
html_str
,
v
);
nsres
=
nsIDOMNSHTMLElement_SetInnerHTML
(
nselem
,
&
html_str
);
nsAString_Finish
(
&
html_str
);
...
...
@@ -896,7 +896,7 @@ static HRESULT WINAPI HTMLElement_put_innerText(IHTMLElement *iface, BSTR v)
nsIDOMNode_Release
(
tmp
);
}
nsAString_Init
(
&
text_str
,
v
);
nsAString_Init
Depend
(
&
text_str
,
v
);
nsres
=
nsIDOMHTMLDocument_CreateTextNode
(
This
->
node
.
doc
->
nsdoc
,
&
text_str
,
&
text_node
);
nsAString_Finish
(
&
text_str
);
if
(
NS_FAILED
(
nsres
))
{
...
...
@@ -955,7 +955,7 @@ static HRESULT WINAPI HTMLElement_put_outerHTML(IHTMLElement *iface, BSTR v)
return
E_FAIL
;
}
nsAString_Init
(
&
html_str
,
v
);
nsAString_Init
Depend
(
&
html_str
,
v
);
nsIDOMNSRange_CreateContextualFragment
(
nsrange
,
&
html_str
,
&
nsfragment
);
nsIDOMNSRange_Release
(
nsrange
);
nsAString_Finish
(
&
html_str
);
...
...
@@ -1131,7 +1131,7 @@ static HRESULT WINAPI HTMLElement_insertAdjacentHTML(IHTMLElement *iface, BSTR w
return
E_FAIL
;
}
nsAString_Init
(
&
ns_html
,
html
);
nsAString_Init
Depend
(
&
ns_html
,
html
);
nsres
=
nsIDOMNSRange_CreateContextualFragment
(
nsrange
,
&
ns_html
,
(
nsIDOMDocumentFragment
**
)
&
nsnode
);
nsIDOMNSRange_Release
(
nsrange
);
...
...
@@ -1166,7 +1166,7 @@ static HRESULT WINAPI HTMLElement_insertAdjacentText(IHTMLElement *iface, BSTR w
}
nsAString_Init
(
&
ns_text
,
text
);
nsAString_Init
Depend
(
&
ns_text
,
text
);
nsres
=
nsIDOMDocument_CreateTextNode
(
This
->
node
.
doc
->
nsdoc
,
&
ns_text
,
(
nsIDOMText
**
)
&
nsnode
);
nsAString_Finish
(
&
ns_text
);
...
...
dlls/mshtml/htmlelem2.c
View file @
673c9038
...
...
@@ -1087,7 +1087,7 @@ static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BS
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
v
),
pelColl
);
nsAString_Init
(
&
tag_str
,
v
);
nsAString_Init
Depend
(
&
tag_str
,
v
);
nsres
=
nsIDOMHTMLElement_GetElementsByTagName
(
This
->
nselem
,
&
tag_str
,
&
nslist
);
nsAString_Finish
(
&
tag_str
);
if
(
NS_FAILED
(
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