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
bdb92707
Commit
bdb92707
authored
Nov 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved content_window to HTMLFrameBase.
parent
20ed399b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
htmlelem.c
dlls/mshtml/htmlelem.c
+1
-1
htmlframebase.c
dlls/mshtml/htmlframebase.c
+8
-1
htmliframe.c
dlls/mshtml/htmliframe.c
+4
-11
mshtml_private.h
dlls/mshtml/mshtml_private.h
+4
-2
No files found.
dlls/mshtml/htmlelem.c
View file @
bdb92707
...
...
@@ -1541,7 +1541,7 @@ HTMLElement *HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL
else
if
(
!
strcmpW
(
class_name
,
wszBODY
))
ret
=
HTMLBodyElement_Create
(
doc
,
nselem
);
else
if
(
!
strcmpW
(
class_name
,
wszIFRAME
))
ret
=
HTMLIFrame_Create
(
doc
,
nselem
);
ret
=
HTMLIFrame_Create
(
doc
,
nselem
,
NULL
);
else
if
(
!
strcmpW
(
class_name
,
wszIMG
))
ret
=
HTMLImgElement_Create
(
doc
,
nselem
);
else
if
(
!
strcmpW
(
class_name
,
wszINPUT
))
...
...
dlls/mshtml/htmlframebase.c
View file @
bdb92707
...
...
@@ -257,13 +257,20 @@ HRESULT HTMLFrameBase_QI(HTMLFrameBase *This, REFIID riid, void **ppv)
void
HTMLFrameBase_destructor
(
HTMLFrameBase
*
This
)
{
if
(
This
->
content_window
)
IHTMLWindow2_Release
(
HTMLWINDOW2
(
This
->
content_window
));
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
void
HTMLFrameBase_Init
(
HTMLFrameBase
*
This
,
HTMLDocumentNode
*
doc
,
nsIDOMHTMLElement
*
nselem
,
dispex_static_data_t
*
dispex_data
)
HTMLWindow
*
content_window
,
dispex_static_data_t
*
dispex_data
)
{
This
->
lpIHTMLFrameBaseVtbl
=
&
HTMLFrameBaseVtbl
;
HTMLElement_Init
(
&
This
->
element
,
doc
,
nselem
,
dispex_data
);
if
(
content_window
)
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
content_window
));
This
->
content_window
=
content_window
;
}
dlls/mshtml/htmliframe.c
View file @
bdb92707
...
...
@@ -38,7 +38,6 @@ typedef struct {
LONG
ref
;
nsIDOMHTMLIFrameElement
*
nsiframe
;
HTMLWindow
*
content_window
;
}
HTMLIFrame
;
#define HTMLFRAMEBASE2(x) (&(x)->lpIHTMLFrameBase2Vtbl)
...
...
@@ -104,9 +103,9 @@ static HRESULT WINAPI HTMLIFrameBase2_get_contentWindow(IHTMLFrameBase2 *iface,
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
content_window
)
{
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
This
->
content_window
));
*
p
=
HTMLWINDOW2
(
This
->
content_window
);
if
(
This
->
framebase
.
content_window
)
{
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
This
->
framebase
.
content_window
));
*
p
=
HTMLWINDOW2
(
This
->
framebase
.
content_window
);
}
else
{
WARN
(
"NULL content window
\n
"
);
*
p
=
NULL
;
...
...
@@ -206,8 +205,6 @@ static void HTMLIFrame_destructor(HTMLDOMNode *iface)
{
HTMLIFrame
*
This
=
HTMLIFRAME_NODE_THIS
(
iface
);
if
(
This
->
content_window
)
IHTMLWindow2_Release
(
HTMLWINDOW2
(
This
->
content_window
));
if
(
This
->
nsiframe
)
nsIDOMHTMLIFrameElement_Release
(
This
->
nsiframe
);
...
...
@@ -280,8 +277,6 @@ HTMLElement *HTMLIFrame_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
ret
->
lpIHTMLFrameBase2Vtbl
=
&
HTMLIFrameBase2Vtbl
;
ret
->
framebase
.
element
.
node
.
vtbl
=
&
HTMLIFrameImplVtbl
;
HTMLFrameBase_Init
(
&
ret
->
framebase
,
doc
,
nselem
,
&
HTMLIFrame_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLIFrameElement
,
(
void
**
)
&
ret
->
nsiframe
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Could not get nsIDOMHTMLIFrameElement iface: %08x
\n
"
,
nsres
);
...
...
@@ -289,9 +284,7 @@ HTMLElement *HTMLIFrame_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
if
(
!
content_window
)
content_window
=
get_content_window
(
ret
->
nsiframe
);
if
(
content_window
)
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
content_window
));
ret
->
content_window
=
content_window
;
HTMLFrameBase_Init
(
&
ret
->
framebase
,
doc
,
nselem
,
content_window
,
&
HTMLIFrame_dispex
);
return
&
ret
->
framebase
.
element
;
}
dlls/mshtml/mshtml_private.h
View file @
bdb92707
...
...
@@ -464,6 +464,8 @@ typedef struct {
HTMLElement
element
;
const
IHTMLFrameBaseVtbl
*
lpIHTMLFrameBaseVtbl
;
HTMLWindow
*
content_window
;
}
HTMLFrameBase
;
typedef
struct
_mutation_queue_t
{
...
...
@@ -693,7 +695,7 @@ HTMLElement *HTMLElement_Create(HTMLDocumentNode*,nsIDOMNode*,BOOL);
HTMLElement
*
HTMLCommentElement_Create
(
HTMLDocumentNode
*
,
nsIDOMNode
*
);
HTMLElement
*
HTMLAnchorElement_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLBodyElement_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLIFrame_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLIFrame_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
,
HTMLWindow
*
);
HTMLElement
*
HTMLImgElement_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLInputElement_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLOptionElement_Create
(
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
);
...
...
@@ -709,7 +711,7 @@ void HTMLElement_Init(HTMLElement*,HTMLDocumentNode*,nsIDOMHTMLElement*,dispex_s
void
HTMLElement2_Init
(
HTMLElement
*
);
void
HTMLElement3_Init
(
HTMLElement
*
);
void
HTMLTextContainer_Init
(
HTMLTextContainer
*
,
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
,
dispex_static_data_t
*
);
void
HTMLFrameBase_Init
(
HTMLFrameBase
*
,
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
,
dispex_static_data_t
*
);
void
HTMLFrameBase_Init
(
HTMLFrameBase
*
,
HTMLDocumentNode
*
,
nsIDOMHTMLElement
*
,
HTMLWindow
*
,
dispex_static_data_t
*
);
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
);
void
HTMLDOMNode_destructor
(
HTMLDOMNode
*
);
...
...
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