Commit cef2907d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Get rid of PRUint16 type.

parent 2d100f4e
...@@ -218,7 +218,7 @@ static void remove_child_attr(nsIDOMElement *elem, LPCWSTR tag, nsAString *attr_ ...@@ -218,7 +218,7 @@ static void remove_child_attr(nsIDOMElement *elem, LPCWSTR tag, nsAString *attr_
PRUint32 child_cnt, i; PRUint32 child_cnt, i;
nsIDOMNode *child_node; nsIDOMNode *child_node;
nsIDOMNodeList *node_list; nsIDOMNodeList *node_list;
PRUint16 node_type; UINT16 node_type;
nsIDOMElement_HasChildNodes(elem, &has_children); nsIDOMElement_HasChildNodes(elem, &has_children);
if(!has_children) if(!has_children)
...@@ -266,7 +266,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret) ...@@ -266,7 +266,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
nsIDOMNode *node = NULL, *tmp_node; nsIDOMNode *node = NULL, *tmp_node;
nsAString tag_str; nsAString tag_str;
LPCWSTR tag; LPCWSTR tag;
PRUint16 node_type; UINT16 node_type;
nsresult nsres; nsresult nsres;
*ret = 0; *ret = 0;
......
...@@ -646,7 +646,7 @@ static HRESULT HTMLAnchorElement_handle_event(HTMLDOMNode *iface, eventid_t eid, ...@@ -646,7 +646,7 @@ static HRESULT HTMLAnchorElement_handle_event(HTMLDOMNode *iface, eventid_t eid,
if(eid == EVENTID_CLICK) { if(eid == EVENTID_CLICK) {
nsIDOMMouseEvent *mouse_event; nsIDOMMouseEvent *mouse_event;
PRUint16 button; UINT16 button;
nsresult nsres; nsresult nsres;
TRACE("CLICK\n"); TRACE("CLICK\n");
......
...@@ -74,7 +74,7 @@ HRESULT get_doc_elem_by_id(HTMLDocumentNode *doc, const WCHAR *id, HTMLElement * ...@@ -74,7 +74,7 @@ HRESULT get_doc_elem_by_id(HTMLDocumentNode *doc, const WCHAR *id, HTMLElement *
assert(nsres == NS_OK); assert(nsres == NS_OK);
if(nsnode && nselem) { if(nsnode && nselem) {
PRUint16 pos; UINT16 pos;
nsres = nsIDOMNode_CompareDocumentPosition(nsnode, (nsIDOMNode*)nselem, &pos); nsres = nsIDOMNode_CompareDocumentPosition(nsnode, (nsIDOMNode*)nselem, &pos);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
......
...@@ -79,7 +79,7 @@ static void elem_vector_normalize(elem_vector_t *buf) ...@@ -79,7 +79,7 @@ static void elem_vector_normalize(elem_vector_t *buf)
static inline BOOL is_elem_node(nsIDOMNode *node) static inline BOOL is_elem_node(nsIDOMNode *node)
{ {
PRUint16 type=0; UINT16 type=0;
nsIDOMNode_GetNodeType(node, &type); nsIDOMNode_GetNodeType(node, &type);
......
...@@ -564,7 +564,7 @@ static HRESULT WINAPI HTMLEventObj_get_keyCode(IHTMLEventObj *iface, LONG *p) ...@@ -564,7 +564,7 @@ static HRESULT WINAPI HTMLEventObj_get_keyCode(IHTMLEventObj *iface, LONG *p)
static HRESULT WINAPI HTMLEventObj_get_button(IHTMLEventObj *iface, LONG *p) static HRESULT WINAPI HTMLEventObj_get_button(IHTMLEventObj *iface, LONG *p)
{ {
HTMLEventObj *This = impl_from_IHTMLEventObj(iface); HTMLEventObj *This = impl_from_IHTMLEventObj(iface);
PRUint16 button = 0; UINT16 button = 0;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1049,7 +1049,7 @@ static void fire_event_obj(HTMLDocumentNode *doc, eventid_t eid, HTMLEventObj *e ...@@ -1049,7 +1049,7 @@ static void fire_event_obj(HTMLDocumentNode *doc, eventid_t eid, HTMLEventObj *e
BOOL prevent_default = FALSE; BOOL prevent_default = FALSE;
HTMLInnerWindow *window; HTMLInnerWindow *window;
HTMLDOMNode *node; HTMLDOMNode *node;
PRUint16 node_type; UINT16 node_type;
nsresult nsres; nsresult nsres;
HRESULT hres; HRESULT hres;
......
...@@ -373,7 +373,7 @@ static HRESULT WINAPI HTMLDOMNode_Invoke(IHTMLDOMNode *iface, DISPID dispIdMembe ...@@ -373,7 +373,7 @@ static HRESULT WINAPI HTMLDOMNode_Invoke(IHTMLDOMNode *iface, DISPID dispIdMembe
static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, LONG *p) static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, LONG *p)
{ {
HTMLDOMNode *This = impl_from_IHTMLDOMNode(iface); HTMLDOMNode *This = impl_from_IHTMLDOMNode(iface);
PRUint16 type = -1; UINT16 type = -1;
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
...@@ -1085,7 +1085,7 @@ void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsno ...@@ -1085,7 +1085,7 @@ void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsno
static HRESULT create_node(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNode **ret) static HRESULT create_node(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNode **ret)
{ {
PRUint16 node_type; UINT16 node_type;
HRESULT hres; HRESULT hres;
nsIDOMNode_GetNodeType(nsnode, &node_type); nsIDOMNode_GetNodeType(nsnode, &node_type);
......
...@@ -914,7 +914,7 @@ static HRESULT nsnode_to_nsstring_rec(nsIContentSerializer *serializer, nsIDOMNo ...@@ -914,7 +914,7 @@ static HRESULT nsnode_to_nsstring_rec(nsIContentSerializer *serializer, nsIDOMNo
nsIDOMNodeList *node_list = NULL; nsIDOMNodeList *node_list = NULL;
cpp_bool has_children = FALSE; cpp_bool has_children = FALSE;
nsIContent *nscontent; nsIContent *nscontent;
PRUint16 type; UINT16 type;
nsresult nsres; nsresult nsres;
nsIDOMNode_HasChildNodes(nsnode, &has_children); nsIDOMNode_HasChildNodes(nsnode, &has_children);
......
...@@ -44,7 +44,6 @@ typedef nsIIDRef nsCIDRef; ...@@ -44,7 +44,6 @@ typedef nsIIDRef nsCIDRef;
typedef WCHAR PRUnichar; typedef WCHAR PRUnichar;
typedef ULONG PRUint32; typedef ULONG PRUint32;
typedef WORD PRUint16;
typedef ULONGLONG PRUint64; typedef ULONGLONG PRUint64;
/* /*
...@@ -57,7 +56,7 @@ typedef ULONGLONG PRUint64; ...@@ -57,7 +56,7 @@ typedef ULONGLONG PRUint64;
#define int64_t INT64 #define int64_t INT64
#define uint8_t UINT8 #define uint8_t UINT8
#define uint16_t PRUint16 #define uint16_t UINT16
#define uint32_t PRUint32 #define uint32_t PRUint32
#define uint64_t PRUint64 #define uint64_t PRUint64
......
...@@ -54,7 +54,7 @@ typedef struct { ...@@ -54,7 +54,7 @@ typedef struct {
} wstrbuf_t; } wstrbuf_t;
typedef struct { typedef struct {
PRUint16 type; UINT16 type;
nsIDOMNode *node; nsIDOMNode *node;
PRUint32 off; PRUint32 off;
nsAString str; nsAString str;
...@@ -116,9 +116,9 @@ static int string_to_nscmptype(LPCWSTR str) ...@@ -116,9 +116,9 @@ static int string_to_nscmptype(LPCWSTR str)
return -1; return -1;
} }
static PRUint16 get_node_type(nsIDOMNode *node) static UINT16 get_node_type(nsIDOMNode *node)
{ {
PRUint16 type = 0; UINT16 type = 0;
if(node) if(node)
nsIDOMNode_GetNodeType(node, &type); nsIDOMNode_GetNodeType(node, &type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment