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
a52cb2b8
Commit
a52cb2b8
authored
Jan 11, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLUniqueName::get_uniqueID implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
881b2f08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-6
htmlelem.c
dlls/mshtml/htmlelem.c
+16
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
a52cb2b8
...
...
@@ -2021,15 +2021,10 @@ static HRESULT WINAPI HTMLDocument3_get_documentElement(IHTMLDocument3 *iface, I
static
HRESULT
WINAPI
HTMLDocument3_get_uniqueID
(
IHTMLDocument3
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument3
(
iface
);
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
;
return
elem_unique_id
(
++
This
->
doc_node
->
unique_id
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument3_attachEvent
(
IHTMLDocument3
*
iface
,
BSTR
event
,
...
...
dlls/mshtml/htmlelem.c
View file @
a52cb2b8
...
...
@@ -3843,6 +3843,17 @@ static HRESULT WINAPI HTMLUniqueName_Invoke(IHTMLUniqueName *iface, DISPID dispI
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
HRESULT
elem_unique_id
(
unsigned
id
,
BSTR
*
p
)
{
WCHAR
buf
[
32
];
static
const
WCHAR
formatW
[]
=
{
'm'
,
's'
,
'_'
,
'_'
,
'i'
,
'd'
,
'%'
,
'u'
,
0
};
sprintfW
(
buf
,
formatW
,
id
);
*
p
=
SysAllocString
(
buf
);
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
void
ensure_unique_id
(
HTMLElement
*
elem
)
{
if
(
!
elem
->
unique_id
)
...
...
@@ -3863,8 +3874,11 @@ static HRESULT WINAPI HTMLUniqueName_get_uniqueNumber(IHTMLUniqueName *iface, LO
static
HRESULT
WINAPI
HTMLUniqueName_get_uniqueID
(
IHTMLUniqueName
*
iface
,
BSTR
*
p
)
{
HTMLElement
*
This
=
impl_from_IHTMLUniqueName
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
ensure_unique_id
(
This
);
return
elem_unique_id
(
This
->
unique_id
,
p
);
}
static
const
IHTMLUniqueNameVtbl
HTMLUniqueNameVtbl
=
{
...
...
dlls/mshtml/mshtml_private.h
View file @
a52cb2b8
...
...
@@ -713,6 +713,7 @@ typedef struct {
HTMLStyle
*
runtime_style
;
HTMLAttributeCollection
*
attrs
;
WCHAR
*
filter
;
unsigned
unique_id
;
}
HTMLElement
;
#define HTMLELEMENT_TIDS \
...
...
@@ -1019,6 +1020,8 @@ nsresult get_elem_attr_value(nsIDOMHTMLElement*,const WCHAR*,nsAString*,const PR
HRESULT
elem_string_attr_getter
(
HTMLElement
*
,
const
WCHAR
*
,
BOOL
,
BSTR
*
)
DECLSPEC_HIDDEN
;
HRESULT
elem_string_attr_setter
(
HTMLElement
*
,
const
WCHAR
*
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
HRESULT
elem_unique_id
(
unsigned
id
,
BSTR
*
p
)
DECLSPEC_HIDDEN
;
/* commands */
typedef
struct
{
DWORD
id
;
...
...
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