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
f351dc5e
Commit
f351dc5e
authored
Nov 14, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved cloneNode implementation to vtbl.
parent
6a37caae
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
80 additions
and
17 deletions
+80
-17
htmlanchor.c
dlls/mshtml/htmlanchor.c
+2
-1
htmlbody.c
dlls/mshtml/htmlbody.c
+1
-0
htmlcomment.c
dlls/mshtml/htmlcomment.c
+2
-1
htmldoc.c
dlls/mshtml/htmldoc.c
+9
-1
htmlelem.c
dlls/mshtml/htmlelem.c
+14
-1
htmlembed.c
dlls/mshtml/htmlembed.c
+2
-1
htmlform.c
dlls/mshtml/htmlform.c
+1
-0
htmlframe.c
dlls/mshtml/htmlframe.c
+1
-0
htmlgeneric.c
dlls/mshtml/htmlgeneric.c
+2
-1
htmliframe.c
dlls/mshtml/htmliframe.c
+1
-0
htmlimg.c
dlls/mshtml/htmlimg.c
+1
-0
htmlinput.c
dlls/mshtml/htmlinput.c
+1
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+17
-5
htmlobject.c
dlls/mshtml/htmlobject.c
+2
-1
htmloption.c
dlls/mshtml/htmloption.c
+2
-1
htmlscript.c
dlls/mshtml/htmlscript.c
+1
-0
htmlselect.c
dlls/mshtml/htmlselect.c
+1
-0
htmlstyleelem.c
dlls/mshtml/htmlstyleelem.c
+2
-1
htmltable.c
dlls/mshtml/htmltable.c
+2
-1
htmltablerow.c
dlls/mshtml/htmltablerow.c
+2
-1
htmltextarea.c
dlls/mshtml/htmltextarea.c
+1
-0
htmltextnode.c
dlls/mshtml/htmltextnode.c
+11
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
No files found.
dlls/mshtml/htmlanchor.c
View file @
f351dc5e
...
...
@@ -515,7 +515,8 @@ static void HTMLAnchorElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLAnchorElementImplVtbl
=
{
HTMLAnchorElement_QI
,
HTMLAnchorElement_destructor
HTMLAnchorElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLAnchorElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmlbody.c
View file @
f351dc5e
...
...
@@ -792,6 +792,7 @@ static event_target_t **HTMLBodyElement_get_event_target(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLBodyElementImplVtbl
=
{
HTMLBodyElement_QI
,
HTMLBodyElement_destructor
,
HTMLElement_clone
,
HTMLBodyElement_get_event_target
};
...
...
dlls/mshtml/htmlcomment.c
View file @
f351dc5e
...
...
@@ -169,7 +169,8 @@ static void HTMLCommentElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLCommentElementImplVtbl
=
{
HTMLCommentElement_QI
,
HTMLCommentElement_destructor
HTMLCommentElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLCommentElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmldoc.c
View file @
f351dc5e
...
...
@@ -1898,11 +1898,19 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
destroy_htmldoc
(
&
This
->
basedoc
);
}
static
HRESULT
HTMLDocumentNode_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
HTMLDocumentNode
*
This
=
HTMLDOCNODE_NODE_THIS
(
iface
);
FIXME
(
"%p
\n
"
,
This
);
return
E_NOTIMPL
;
}
#undef HTMLDOCNODE_NODE_THIS
static
const
NodeImplVtbl
HTMLDocumentNodeImplVtbl
=
{
HTMLDocumentNode_QI
,
HTMLDocumentNode_destructor
HTMLDocumentNode_destructor
,
HTMLDocumentNode_clone
};
static
const
tid_t
HTMLDocumentNode_iface_tids
[]
=
{
...
...
dlls/mshtml/htmlelem.c
View file @
f351dc5e
...
...
@@ -1601,9 +1601,22 @@ void HTMLElement_destructor(HTMLDOMNode *iface)
HTMLDOMNode_destructor
(
&
This
->
node
);
}
HRESULT
HTMLElement_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
HTMLElement
*
This
=
HTMLELEM_NODE_THIS
(
iface
);
HTMLElement
*
new_elem
;
new_elem
=
HTMLElement_Create
(
This
->
node
.
doc
,
nsnode
,
FALSE
);
IHTMLElement_AddRef
(
HTMLELEM
(
new_elem
));
*
ret
=
&
new_elem
->
node
;
return
S_OK
;
}
static
const
NodeImplVtbl
HTMLElementImplVtbl
=
{
HTMLElement_QI
,
HTMLElement_destructor
HTMLElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmlembed.c
View file @
f351dc5e
...
...
@@ -251,7 +251,8 @@ static void HTMLEmbedElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLEmbedElementImplVtbl
=
{
HTMLEmbedElement_QI
,
HTMLEmbedElement_destructor
HTMLEmbedElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLEmbedElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmlform.c
View file @
f351dc5e
...
...
@@ -638,6 +638,7 @@ static HRESULT HTMLFormElement_invoke(HTMLDOMNode *iface,
static
const
NodeImplVtbl
HTMLFormElementImplVtbl
=
{
HTMLFormElement_QI
,
HTMLFormElement_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlframe.c
View file @
f351dc5e
...
...
@@ -258,6 +258,7 @@ static HRESULT HTMLFrameElement_bind_to_tree(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLFrameElementImplVtbl
=
{
HTMLFrameElement_QI
,
HTMLFrameElement_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlgeneric.c
View file @
f351dc5e
...
...
@@ -149,7 +149,8 @@ static void HTMLGenericElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLGenericElementImplVtbl
=
{
HTMLGenericElement_QI
,
HTMLGenericElement_destructor
HTMLGenericElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLGenericElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmliframe.c
View file @
f351dc5e
...
...
@@ -243,6 +243,7 @@ static HRESULT HTMLIFrame_bind_to_tree(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLIFrameImplVtbl
=
{
HTMLIFrame_QI
,
HTMLIFrame_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlimg.c
View file @
f351dc5e
...
...
@@ -645,6 +645,7 @@ static HRESULT HTMLImgElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
static
const
NodeImplVtbl
HTMLImgElementImplVtbl
=
{
HTMLImgElement_QI
,
HTMLImgElement_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlinput.c
View file @
f351dc5e
...
...
@@ -1193,6 +1193,7 @@ static HRESULT HTMLInputElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOO
static
const
NodeImplVtbl
HTMLInputElementImplVtbl
=
{
HTMLInputElement_QI
,
HTMLInputElement_destructor
,
HTMLElement_clone
,
NULL
,
HTMLInputElementImpl_call_event
,
HTMLInputElementImpl_put_disabled
,
...
...
dlls/mshtml/htmlnode.c
View file @
f351dc5e
...
...
@@ -33,6 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
static
HTMLDOMNode
*
get_node_obj
(
HTMLDocumentNode
*
,
IUnknown
*
);
static
HTMLDOMNode
*
create_node
(
HTMLDocumentNode
*
,
nsIDOMNode
*
);
typedef
struct
{
DispatchEx
dispex
;
...
...
@@ -536,9 +537,10 @@ static HRESULT WINAPI HTMLDOMNode_cloneNode(IHTMLDOMNode *iface, VARIANT_BOOL fD
IHTMLDOMNode
**
clonedNode
)
{
HTMLDOMNode
*
This
=
HTMLDOMNODE_THIS
(
iface
);
HTMLDOMNode
*
new_node
;
nsIDOMNode
*
nsnode
;
HTMLDOMNode
*
node
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%x %p)
\n
"
,
This
,
fDeep
,
clonedNode
);
...
...
@@ -548,9 +550,11 @@ static HRESULT WINAPI HTMLDOMNode_cloneNode(IHTMLDOMNode *iface, VARIANT_BOOL fD
return
E_FAIL
;
}
node
=
get_node
(
This
->
doc
,
nsnode
,
TRUE
);
IHTMLDOMNode_AddRef
(
HTMLDOMNODE
(
node
));
*
clonedNode
=
HTMLDOMNODE
(
node
);
hres
=
This
->
vtbl
->
clone
(
This
,
nsnode
,
&
new_node
);
if
(
FAILED
(
hres
))
return
hres
;
*
clonedNode
=
HTMLDOMNODE
(
new_node
);
return
S_OK
;
}
...
...
@@ -904,9 +908,17 @@ void HTMLDOMNode_destructor(HTMLDOMNode *This)
release_event_target
(
This
->
event_target
);
}
static
HRESULT
HTMLDOMNode_clone
(
HTMLDOMNode
*
This
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
*
ret
=
create_node
(
This
->
doc
,
nsnode
);
IHTMLDOMNode_AddRef
(
HTMLDOMNODE
(
*
ret
));
return
S_OK
;
}
static
const
NodeImplVtbl
HTMLDOMNodeImplVtbl
=
{
HTMLDOMNode_QI
,
HTMLDOMNode_destructor
HTMLDOMNode_destructor
,
HTMLDOMNode_clone
};
void
HTMLDOMNode_Init
(
HTMLDocumentNode
*
doc
,
HTMLDOMNode
*
node
,
nsIDOMNode
*
nsnode
)
...
...
dlls/mshtml/htmlobject.c
View file @
f351dc5e
...
...
@@ -428,7 +428,8 @@ static void HTMLObjectElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLObjectElementImplVtbl
=
{
HTMLObjectElement_QI
,
HTMLObjectElement_destructor
HTMLObjectElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLObjectElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmloption.c
View file @
f351dc5e
...
...
@@ -340,7 +340,8 @@ static void HTMLOptionElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLOptionElementImplVtbl
=
{
HTMLOptionElement_QI
,
HTMLOptionElement_destructor
HTMLOptionElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLOptionElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmlscript.c
View file @
f351dc5e
...
...
@@ -321,6 +321,7 @@ static HRESULT HTMLScriptElement_get_readystate(HTMLDOMNode *iface, BSTR *p)
static
const
NodeImplVtbl
HTMLScriptElementImplVtbl
=
{
HTMLScriptElement_QI
,
HTMLScriptElement_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
NULL
,
...
...
dlls/mshtml/htmlselect.c
View file @
f351dc5e
...
...
@@ -613,6 +613,7 @@ static HRESULT HTMLSelectElement_invoke(HTMLDOMNode *iface, DISPID id, LCID lcid
static
const
NodeImplVtbl
HTMLSelectElementImplVtbl
=
{
HTMLSelectElement_QI
,
HTMLSelectElement_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
HTMLSelectElementImpl_put_disabled
,
...
...
dlls/mshtml/htmlstyleelem.c
View file @
f351dc5e
...
...
@@ -251,7 +251,8 @@ static void HTMLStyleElement_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLStyleElementImplVtbl
=
{
HTMLStyleElement_QI
,
HTMLStyleElement_destructor
HTMLStyleElement_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLStyleElement_iface_tids
[]
=
{
...
...
dlls/mshtml/htmltable.c
View file @
f351dc5e
...
...
@@ -554,7 +554,8 @@ static void HTMLTable_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLTableImplVtbl
=
{
HTMLTable_QI
,
HTMLTable_destructor
HTMLTable_destructor
,
HTMLElement_clone
,
};
static
const
tid_t
HTMLTable_iface_tids
[]
=
{
...
...
dlls/mshtml/htmltablerow.c
View file @
f351dc5e
...
...
@@ -297,7 +297,8 @@ static void HTMLTableRow_destructor(HTMLDOMNode *iface)
static
const
NodeImplVtbl
HTMLTableRowImplVtbl
=
{
HTMLTableRow_QI
,
HTMLTableRow_destructor
HTMLTableRow_destructor
,
HTMLElement_clone
};
static
const
tid_t
HTMLTableRow_iface_tids
[]
=
{
...
...
dlls/mshtml/htmltextarea.c
View file @
f351dc5e
...
...
@@ -444,6 +444,7 @@ static HRESULT HTMLTextAreaElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_
static
const
NodeImplVtbl
HTMLTextAreaElementImplVtbl
=
{
HTMLTextAreaElement_QI
,
HTMLTextAreaElement_destructor
,
HTMLElement_clone
,
NULL
,
NULL
,
HTMLTextAreaElementImpl_put_disabled
,
...
...
dlls/mshtml/htmltextnode.c
View file @
f351dc5e
...
...
@@ -187,11 +187,21 @@ static void HTMLDOMTextNode_destructor(HTMLDOMNode *iface)
HTMLDOMNode_destructor
(
&
This
->
node
);
}
static
HRESULT
HTMLDOMTextNode_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
HTMLDOMTextNode
*
This
=
HTMLTEXT_NODE_THIS
(
iface
);
*
ret
=
HTMLDOMTextNode_Create
(
This
->
node
.
doc
,
nsnode
);
IHTMLDOMNode_AddRef
(
HTMLDOMNODE
(
*
ret
));
return
S_OK
;
}
#undef HTMLTEXT_NODE_THIS
static
const
NodeImplVtbl
HTMLDOMTextNodeImplVtbl
=
{
HTMLDOMTextNode_QI
,
HTMLDOMTextNode_destructor
HTMLDOMTextNode_destructor
,
HTMLDOMTextNode_clone
};
static
const
tid_t
HTMLDOMTextNode_iface_tids
[]
=
{
...
...
dlls/mshtml/mshtml_private.h
View file @
f351dc5e
...
...
@@ -513,6 +513,7 @@ HRESULT set_http_header(struct list*,const WCHAR*,int,const WCHAR*,int);
typedef
struct
{
HRESULT
(
*
qi
)(
HTMLDOMNode
*
,
REFIID
,
void
**
);
void
(
*
destructor
)(
HTMLDOMNode
*
);
HRESULT
(
*
clone
)(
HTMLDOMNode
*
,
nsIDOMNode
*
,
HTMLDOMNode
**
);
event_target_t
**
(
*
get_event_target
)(
HTMLDOMNode
*
);
HRESULT
(
*
call_event
)(
HTMLDOMNode
*
,
DWORD
,
BOOL
*
);
HRESULT
(
*
put_disabled
)(
HTMLDOMNode
*
,
VARIANT_BOOL
);
...
...
@@ -849,6 +850,7 @@ void HTMLDOMNode_destructor(HTMLDOMNode*);
HRESULT
HTMLElement_QI
(
HTMLDOMNode
*
,
REFIID
,
void
**
);
void
HTMLElement_destructor
(
HTMLDOMNode
*
);
HRESULT
HTMLElement_clone
(
HTMLDOMNode
*
,
nsIDOMNode
*
,
HTMLDOMNode
**
);
HRESULT
HTMLFrameBase_QI
(
HTMLFrameBase
*
,
REFIID
,
void
**
);
void
HTMLFrameBase_destructor
(
HTMLFrameBase
*
);
...
...
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