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
82676b99
Commit
82676b99
authored
Aug 01, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store HTMLElement pointer in HTMLTextContainer.
parent
c6e513dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
htmlbody.c
dlls/mshtml/htmlbody.c
+1
-1
htmltextcont.c
dlls/mshtml/htmltextcont.c
+5
-5
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-2
No files found.
dlls/mshtml/htmlbody.c
View file @
82676b99
...
@@ -441,7 +441,7 @@ void HTMLBodyElement_Create(HTMLElement *element)
...
@@ -441,7 +441,7 @@ void HTMLBodyElement_Create(HTMLElement *element)
ret
->
lpHTMLBodyElementVtbl
=
&
HTMLBodyElementVtbl
;
ret
->
lpHTMLBodyElementVtbl
=
&
HTMLBodyElementVtbl
;
ret
->
element
=
element
;
ret
->
element
=
element
;
HTMLTextContainer_Init
(
&
ret
->
text_container
,
(
IUnknown
*
)
HTMLBODY
(
ret
)
);
HTMLTextContainer_Init
(
&
ret
->
text_container
,
element
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
element
->
nselem
,
&
IID_nsIDOMHTMLBodyElement
,
nsres
=
nsIDOMHTMLElement_QueryInterface
(
element
->
nselem
,
&
IID_nsIDOMHTMLBodyElement
,
(
void
**
)
&
ret
->
nsbody
);
(
void
**
)
&
ret
->
nsbody
);
...
...
dlls/mshtml/htmltextcont.c
View file @
82676b99
...
@@ -40,19 +40,19 @@ static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface
...
@@ -40,19 +40,19 @@ static HRESULT WINAPI HTMLTextContainer_QueryInterface(IHTMLTextContainer *iface
REFIID
riid
,
void
**
ppv
)
REFIID
riid
,
void
**
ppv
)
{
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
return
I
Unknown_QueryInterface
(
This
->
impl
,
riid
,
ppv
);
return
I
HTMLElement_QueryInterface
(
HTMLELEM
(
This
->
element
)
,
riid
,
ppv
);
}
}
static
ULONG
WINAPI
HTMLTextContainer_AddRef
(
IHTMLTextContainer
*
iface
)
static
ULONG
WINAPI
HTMLTextContainer_AddRef
(
IHTMLTextContainer
*
iface
)
{
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
return
I
Unknown_AddRef
(
This
->
impl
);
return
I
HTMLElement_AddRef
(
HTMLELEM
(
This
->
element
)
);
}
}
static
ULONG
WINAPI
HTMLTextContainer_Release
(
IHTMLTextContainer
*
iface
)
static
ULONG
WINAPI
HTMLTextContainer_Release
(
IHTMLTextContainer
*
iface
)
{
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
return
I
Unknown_Release
(
This
->
impl
);
return
I
HTMLElement_Release
(
HTMLELEM
(
This
->
element
)
);
}
}
static
HRESULT
WINAPI
HTMLTextContainer_GetTypeInfoCount
(
IHTMLTextContainer
*
iface
,
UINT
*
pctinfo
)
static
HRESULT
WINAPI
HTMLTextContainer_GetTypeInfoCount
(
IHTMLTextContainer
*
iface
,
UINT
*
pctinfo
)
...
@@ -175,8 +175,8 @@ static const IHTMLTextContainerVtbl HTMLTextContainerVtbl = {
...
@@ -175,8 +175,8 @@ static const IHTMLTextContainerVtbl HTMLTextContainerVtbl = {
HTMLTextContainer_get_onscroll
HTMLTextContainer_get_onscroll
};
};
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
This
,
IUnknown
*
impl
)
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
This
,
HTMLElement
*
elem
)
{
{
This
->
lpHTMLTextContainerVtbl
=
&
HTMLTextContainerVtbl
;
This
->
lpHTMLTextContainerVtbl
=
&
HTMLTextContainerVtbl
;
This
->
impl
=
impl
;
This
->
element
=
elem
;
}
}
dlls/mshtml/mshtml_private.h
View file @
82676b99
...
@@ -204,7 +204,7 @@ typedef struct {
...
@@ -204,7 +204,7 @@ typedef struct {
typedef
struct
{
typedef
struct
{
const
IHTMLTextContainerVtbl
*
lpHTMLTextContainerVtbl
;
const
IHTMLTextContainerVtbl
*
lpHTMLTextContainerVtbl
;
IUnknown
*
impl
;
HTMLElement
*
element
;
}
HTMLTextContainer
;
}
HTMLTextContainer
;
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
...
@@ -316,7 +316,7 @@ void HTMLTextAreaElement_Create(HTMLElement*);
...
@@ -316,7 +316,7 @@ void HTMLTextAreaElement_Create(HTMLElement*);
void
HTMLElement2_Init
(
HTMLElement
*
);
void
HTMLElement2_Init
(
HTMLElement
*
);
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
,
IUnknown
*
);
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
,
HTMLElement
*
);
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
);
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
);
HRESULT
HTMLElement_QI
(
HTMLElement
*
,
REFIID
,
void
**
);
HRESULT
HTMLElement_QI
(
HTMLElement
*
,
REFIID
,
void
**
);
...
...
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