Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
874fd578
Commit
874fd578
authored
Mar 05, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement implementation.
parent
ee1e7e50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
3 deletions
+65
-3
Makefile.in
dlls/mshtml/Makefile.in
+1
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+0
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+0
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+14
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+50
-1
No files found.
dlls/mshtml/Makefile.in
View file @
874fd578
...
...
@@ -12,6 +12,7 @@ C_SRCS = \
hlink.c
\
htmldoc.c
\
htmldoc3.c
\
htmlelem.c
\
htmlnode.c
\
main.c
\
navigate.c
\
...
...
dlls/mshtml/htmlelem.c
0 → 100644
View file @
874fd578
This diff is collapsed.
Click to expand it.
dlls/mshtml/htmlnode.c
View file @
874fd578
...
...
@@ -338,11 +338,9 @@ HTMLDOMNode *get_node(HTMLDocument *This, nsIDOMNode *nsnode)
nsIDOMNode_GetNodeType
(
nsnode
,
&
node_type
);
#if 0
if
(
node_type
==
NS_ELEMENT_NODE
||
node_type
==
NS_DOCUMENT_NODE
)
HTMLElement_Create
(
ret
);
#endif
return
ret
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
874fd578
...
...
@@ -129,6 +129,17 @@ struct HTMLDOMNode {
HTMLDOMNode
*
next
;
};
typedef
struct
{
const
IHTMLElementVtbl
*
lpHTMLElementVtbl
;
void
(
*
destructor
)(
IUnknown
*
);
nsIDOMHTMLElement
*
nselem
;
HTMLDOMNode
*
node
;
IUnknown
*
impl
;
}
HTMLElement
;
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
#define HTMLDOC3(x) ((IHTMLDocument3*) &(x)->lpHTMLDocument3Vtbl)
#define PERSIST(x) ((IPersist*) &(x)->lpPersistFileVtbl)
...
...
@@ -156,6 +167,7 @@ struct HTMLDOMNode {
#define NSEMBWNDS(x) ((nsIEmbeddingSiteWindow*) &(x)->lpEmbeddingSiteWindowVtbl)
#define NSIFACEREQ(x) ((nsIInterfaceRequestor*) &(x)->lpInterfaceRequestorVtbl)
#define HTMLELEM(x) ((IHTMLElement*) &(x)->lpHTMLElementVtbl)
#define HTMLDOMNODE(x) ((IHTMLDOMNode*) &(x)->lpHTMLDOMNodeVtbl)
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
...
...
@@ -195,6 +207,8 @@ nsIInputStream *create_nsstream(const char*,PRInt32);
IHlink
*
Hlink_Create
(
void
);
void
HTMLElement_Create
(
HTMLDOMNode
*
);
HTMLDOMNode
*
get_node
(
HTMLDocument
*
,
nsIDOMNode
*
);
void
release_nodes
(
HTMLDocument
*
);
...
...
dlls/mshtml/nsiface.idl
View file @
874fd578
...
...
@@ -74,7 +74,6 @@ typedef nsISupports nsISHistory;
typedef nsISupports nsISimpleEnumerator;
typedef nsISupports nsIWidget;
typedef nsISupports nsIProtocolHandler;
typedef nsISupports nsIDOMElement;
typedef nsISupports nsIDOMEventTarget;
typedef nsISupports nsIDOMAbstractView;
typedef nsISupports nsIStreamListener;
...
...
@@ -86,6 +85,7 @@ typedef nsISupports nsISelection;
typedef nsISupports nsIPrompt;
typedef nsISupports nsIAuthPrompt;
typedef nsISupports nsIDOMNamedNodeMap;
typedef nsISupports nsIDOMAttr;
[
object,
...
...
@@ -345,6 +345,55 @@ interface nsIDOMNode : nsISupports
[
object,
uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMElement : nsIDOMNode
{
nsresult GetTagName(nsAString *aTagName);
nsresult GetAttribute(const nsAString *name, nsAString *_retval);
nsresult SetAttribute(const nsAString *name, const nsAString *value);
nsresult RemoveAttribute(const nsAString *name);
nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
nsAString *_retval);
nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
const nsAString *value);
nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
nsIDOMAttr **_retval);
nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
nsIDOMNodeList **_retval);
nsresult HasAttribute(const nsAString *name, PRBool *_retval);
nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
PRBool *_retval);
}
cpp_quote("#undef GetClassName");
[
object,
uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMHTMLElement : nsIDOMElement
{
nsresult GetId(nsAString *aId);
nsresult SetId(const nsAString *aId);
nsresult GetTitle(nsAString *aTitle);
nsresult SetTitle(const nsAString *aTitle);
nsresult GetLang(nsAString *aLang);
nsresult SetLang(const nsAString *aLang);
nsresult GetDir(nsAString *aDir);
nsresult SetDir(const nsAString *aDir);
nsresult GetClassName(nsAString *aClassName);
nsresult SetClassName(const nsAString *aClassName);
}
[
object,
uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
]
interface nsIDOMWindow : nsISupports
...
...
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