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
8f6097a9
Commit
8f6097a9
authored
Jan 06, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument3::uniqueID implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fef68e1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
4 deletions
+44
-4
htmldoc.c
dlls/mshtml/htmldoc.c
+11
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
dom.c
dlls/mshtml/tests/dom.c
+31
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
8f6097a9
...
...
@@ -2018,11 +2018,18 @@ static HRESULT WINAPI HTMLDocument3_get_documentElement(IHTMLDocument3 *iface, I
return
hres
;
}
static
HRESULT
WINAPI
HTMLDocument3_uniqueID
(
IHTMLDocument3
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLDocument3_
get_
uniqueID
(
IHTMLDocument3
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
WCHAR
buf
[
32
];
static
const
WCHAR
formatW
[]
=
{
'm'
,
's'
,
'_'
,
'_'
,
'i'
,
'd'
,
'%'
,
'u'
,
0
};
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
sprintfW
(
buf
,
formatW
,
++
This
->
doc_node
->
unique_id
);
*
p
=
SysAllocString
(
buf
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
HTMLDocument3_attachEvent
(
IHTMLDocument3
*
iface
,
BSTR
event
,
...
...
@@ -2428,7 +2435,7 @@ static const IHTMLDocument3Vtbl HTMLDocument3Vtbl = {
HTMLDocument3_recalc
,
HTMLDocument3_createTextNode
,
HTMLDocument3_get_documentElement
,
HTMLDocument3_uniqueID
,
HTMLDocument3_
get_
uniqueID
,
HTMLDocument3_attachEvent
,
HTMLDocument3_detachEvent
,
HTMLDocument3_put_onrowsdelete
,
...
...
dlls/mshtml/mshtml_private.h
View file @
8f6097a9
...
...
@@ -776,6 +776,8 @@ struct HTMLDocumentNode {
UINT
charset
;
unsigned
unique_id
;
struct
list
selection_list
;
struct
list
range_list
;
struct
list
plugin_hosts
;
...
...
dlls/mshtml/tests/dom.c
View file @
8f6097a9
...
...
@@ -6208,6 +6208,35 @@ static void test_default_selection(IHTMLDocument2 *doc)
IHTMLTxtRange_Release
(
range
);
}
static
void
test_unique_id
(
IHTMLDocument2
*
doc
)
{
IHTMLDocument3
*
doc3
=
get_doc3_iface
(
doc
);
BSTR
id
,
id2
;
HRESULT
hres
;
static
const
WCHAR
prefixW
[]
=
{
'm'
,
's'
,
'_'
,
'_'
,
'i'
,
'd'
,
0
};
hres
=
IHTMLDocument3_get_uniqueID
(
doc3
,
&
id
);
ok
(
hres
==
S_OK
,
"get_uniqueID failed: %08x
\n
"
,
hres
);
ok
(
SysStringLen
(
id
)
>=
sizeof
(
prefixW
)
/
sizeof
(
*
prefixW
),
"id %s too short
\n
"
,
wine_dbgstr_w
(
id
));
hres
=
IHTMLDocument3_get_uniqueID
(
doc3
,
&
id2
);
ok
(
hres
==
S_OK
,
"get_uniqueID failed: %08x
\n
"
,
hres
);
ok
(
SysStringLen
(
id2
)
>=
sizeof
(
prefixW
)
/
sizeof
(
*
prefixW
),
"id %s too short
\n
"
,
wine_dbgstr_w
(
id2
));
ok
(
lstrcmpW
(
id
,
id2
),
"same unique ids %s
\n
"
,
wine_dbgstr_w
(
id
));
id
[
sizeof
(
prefixW
)
/
sizeof
(
*
prefixW
)
-
1
]
=
0
;
ok
(
!
lstrcmpW
(
id
,
prefixW
),
"unexpected prefix %s
\n
"
,
wine_dbgstr_w
(
id
));
id2
[
sizeof
(
prefixW
)
/
sizeof
(
*
prefixW
)
-
1
]
=
0
;
ok
(
!
lstrcmpW
(
id2
,
prefixW
),
"unexpected prefix %s
\n
"
,
wine_dbgstr_w
(
id2
));
SysFreeString
(
id
);
SysFreeString
(
id2
);
IHTMLDocument3_Release
(
doc3
);
}
static
void
test_doc_elem
(
IHTMLDocument2
*
doc
)
{
IHTMLDocument2
*
doc_node
,
*
owner_doc
;
...
...
@@ -6244,6 +6273,8 @@ static void test_doc_elem(IHTMLDocument2 *doc)
test_elem_client_rect
((
IUnknown
*
)
elem
);
IHTMLElement_Release
(
elem
);
test_unique_id
(
doc
);
}
static
void
test_default_body
(
IHTMLBodyElement
*
body
)
...
...
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