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
9e1d876d
Commit
9e1d876d
authored
Mar 16, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize DOMRange object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e07e0453
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
range.c
dlls/mshtml/range.c
+2
-2
No files found.
dlls/mshtml/htmldoc.c
View file @
9e1d876d
...
...
@@ -5200,7 +5200,7 @@ static HRESULT WINAPI DocumentRange_createRange(IDocumentRange *iface, IHTMLDOMR
if
(
NS_FAILED
(
nsIDOMHTMLDocument_CreateRange
(
This
->
doc_node
->
nsdoc
,
&
nsrange
)))
return
E_FAIL
;
hres
=
HTMLDOMRange_Create
(
nsrange
,
p
);
hres
=
create_dom_range
(
nsrange
,
dispex_compat_mode
(
&
This
->
doc_node
->
node
.
event_target
.
dispex
)
,
p
);
nsIDOMRange_Release
(
nsrange
);
return
hres
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
9e1d876d
...
...
@@ -1022,7 +1022,7 @@ HRESULT HTMLTxtRange_Create(HTMLDocumentNode*,nsIDOMRange*,IHTMLTxtRange**) DECL
HRESULT
create_style_sheet
(
nsIDOMStyleSheet
*
,
compat_mode_t
,
IHTMLStyleSheet
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_style_sheet_collection
(
nsIDOMStyleSheetList
*
,
compat_mode_t
,
IHTMLStyleSheetsCollection
**
)
DECLSPEC_HIDDEN
;
HRESULT
HTMLDOMRange_Create
(
nsIDOMRange
*
,
IHTMLDOMRange
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_dom_range
(
nsIDOMRange
*
,
compat_mode_t
,
IHTMLDOMRange
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_markup_pointer
(
IMarkupPointer
**
)
DECLSPEC_HIDDEN
;
void
detach_document_node
(
HTMLDocumentNode
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/range.c
View file @
9e1d876d
...
...
@@ -2066,7 +2066,7 @@ static dispex_static_data_t HTMLDOMRange_dispex = {
HTMLDOMRange_iface_tids
};
HRESULT
HTMLDOMRange_Create
(
nsIDOMRange
*
nsrang
e
,
IHTMLDOMRange
**
p
)
HRESULT
create_dom_range
(
nsIDOMRange
*
nsrange
,
compat_mode_t
compat_mod
e
,
IHTMLDOMRange
**
p
)
{
HTMLDOMRange
*
ret
;
...
...
@@ -2074,7 +2074,7 @@ HRESULT HTMLDOMRange_Create(nsIDOMRange *nsrange, IHTMLDOMRange **p)
if
(
!
ret
)
return
E_OUTOFMEMORY
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMRange_iface
,
&
HTMLDOMRange_dispex
);
init_dispex
_with_compat_mode
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMRange_iface
,
&
HTMLDOMRange_dispex
,
compat_mode
);
ret
->
IHTMLDOMRange_iface
.
lpVtbl
=
&
HTMLDOMRangeVtbl
;
ret
->
ref
=
1
;
...
...
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