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
d6fcfe24
Commit
d6fcfe24
authored
Mar 11, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize HTMLRect object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5a813f6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
htmlelem.c
dlls/mshtml/htmlelem.c
+5
-5
No files found.
dlls/mshtml/htmlelem.c
View file @
d6fcfe24
...
...
@@ -501,7 +501,7 @@ static dispex_static_data_t HTMLRect_dispex = {
HTMLRect_iface_tids
};
static
HRESULT
create_html_rect
(
nsIDOMClientRect
*
nsrect
,
IHTMLRect
**
ret
)
static
HRESULT
create_html_rect
(
nsIDOMClientRect
*
nsrect
,
compat_mode_t
compat_mode
,
IHTMLRect
**
ret
)
{
HTMLRect
*
rect
;
...
...
@@ -512,7 +512,7 @@ static HRESULT create_html_rect(nsIDOMClientRect *nsrect, IHTMLRect **ret)
rect
->
IHTMLRect_iface
.
lpVtbl
=
&
HTMLRectVtbl
;
rect
->
ref
=
1
;
init_dispex
(
&
rect
->
dispex
,
(
IUnknown
*
)
&
rect
->
IHTMLRect_iface
,
&
HTMLRect_dispex
);
init_dispex
_with_compat_mode
(
&
rect
->
dispex
,
(
IUnknown
*
)
&
rect
->
IHTMLRect_iface
,
&
HTMLRect_dispex
,
compat_mode
);
nsIDOMClientRect_AddRef
(
nsrect
);
rect
->
nsrect
=
nsrect
;
...
...
@@ -659,7 +659,7 @@ static HRESULT WINAPI HTMLRectCollection_item(IHTMLRectCollection *iface, VARIAN
return
S_OK
;
}
hres
=
create_html_rect
(
nsrect
,
&
rect
);
hres
=
create_html_rect
(
nsrect
,
dispex_compat_mode
(
&
This
->
dispex
),
&
rect
);
nsIDOMClientRect_Release
(
nsrect
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -728,7 +728,7 @@ static HRESULT HTMLRectCollection_invoke(DispatchEx *dispex, DISPID id, LCID lci
return
DISP_E_UNKNOWNNAME
;
}
hres
=
create_html_rect
(
rect
,
&
html_rect
);
hres
=
create_html_rect
(
rect
,
dispex_compat_mode
(
&
This
->
dispex
),
&
html_rect
);
nsIDOMClientRect_Release
(
rect
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -2696,7 +2696,7 @@ static HRESULT WINAPI HTMLElement2_getBoundingClientRect(IHTMLElement2 *iface, I
return
E_FAIL
;
}
hres
=
create_html_rect
(
nsrect
,
pRect
);
hres
=
create_html_rect
(
nsrect
,
dispex_compat_mode
(
&
This
->
node
.
event_target
.
dispex
),
pRect
);
nsIDOMClientRect_Release
(
nsrect
);
return
hres
;
...
...
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