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
c67952ae
Commit
c67952ae
authored
Oct 07, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement::get_offsetWidth implementation.
parent
880f7857
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+21
-2
dom.c
dlls/mshtml/tests/dom.c
+3
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
c67952ae
...
...
@@ -707,8 +707,27 @@ static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, long *p)
static
HRESULT
WINAPI
HTMLElement_get_offsetWidth
(
IHTMLElement
*
iface
,
long
*
p
)
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsIDOMNSHTMLElement
*
nselem
;
PRInt32
offset
=
0
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
This
->
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMNSHTMLElement: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
nsres
=
nsIDOMNSHTMLElement_GetOffsetWidth
(
nselem
,
&
offset
);
nsIDOMNSHTMLElement_Release
(
nselem
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetOffsetWidth failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
*
p
=
offset
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLElement_get_offsetHeight
(
IHTMLElement
*
iface
,
long
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
c67952ae
...
...
@@ -541,6 +541,9 @@ static void _test_elem_offset(unsigned line, IUnknown *unk)
hres
=
IHTMLElement_get_offsetHeight
(
elem
,
&
l
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_offsetHeight failed: %08x
\n
"
,
hres
);
hres
=
IHTMLElement_get_offsetWidth
(
elem
,
&
l
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_offsetWidth failed: %08x
\n
"
,
hres
);
IHTMLElement_Release
(
elem
);
}
...
...
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