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
f5e3281a
Commit
f5e3281a
authored
Nov 03, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Wine Gecko 2.34 release.
parent
8db1df50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
97 additions
and
62 deletions
+97
-62
addons.c
dlls/appwiz.cpl/addons.c
+3
-3
binding.h
dlls/mshtml/binding.h
+1
-0
htmlanchor.c
dlls/mshtml/htmlanchor.c
+1
-1
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-17
htmlevent.c
dlls/mshtml/htmlevent.c
+1
-1
htmlnode.c
dlls/mshtml/htmlnode.c
+21
-20
mshtml_private.h
dlls/mshtml/mshtml_private.h
+8
-8
mutation.c
dlls/mshtml/mutation.c
+2
-2
navigate.c
dlls/mshtml/navigate.c
+1
-1
nsembed.c
dlls/mshtml/nsembed.c
+0
-1
nsiface.idl
dlls/mshtml/nsiface.idl
+0
-0
nsio.c
dlls/mshtml/nsio.c
+54
-0
oleobj.c
dlls/mshtml/oleobj.c
+3
-7
script.c
dlls/mshtml/script.c
+1
-1
No files found.
dlls/appwiz.cpl/addons.c
View file @
f5e3281a
...
@@ -52,14 +52,14 @@
...
@@ -52,14 +52,14 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
appwizcpl
);
WINE_DEFAULT_DEBUG_CHANNEL
(
appwizcpl
);
#define GECKO_VERSION "2.
2
4"
#define GECKO_VERSION "2.
3
4"
#ifdef __i386__
#ifdef __i386__
#define ARCH_STRING "x86"
#define ARCH_STRING "x86"
#define GECKO_SHA "
b4923c0565e6cbd20075a0d4119ce3b48424f962
"
#define GECKO_SHA "
e9646cf9d683a6f4e254bcff3864a863fe8287e9
"
#elif defined(__x86_64__)
#elif defined(__x86_64__)
#define ARCH_STRING "x86_64"
#define ARCH_STRING "x86_64"
#define GECKO_SHA "
da65fb99a53d87c831030ec8787e31d797f60e60
"
#define GECKO_SHA "
2b4274f7c3b22b74c35ebc0423bb943597af3945
"
#else
#else
#define ARCH_STRING ""
#define ARCH_STRING ""
#define GECKO_SHA "???"
#define GECKO_SHA "???"
...
...
dlls/mshtml/binding.h
View file @
f5e3281a
...
@@ -44,6 +44,7 @@ typedef struct {
...
@@ -44,6 +44,7 @@ typedef struct {
nsILoadGroup
*
load_group
;
nsILoadGroup
*
load_group
;
nsIInterfaceRequestor
*
notif_callback
;
nsIInterfaceRequestor
*
notif_callback
;
nsISupports
*
owner
;
nsISupports
*
owner
;
nsILoadInfo
*
load_info
;
nsLoadFlags
load_flags
;
nsLoadFlags
load_flags
;
nsIURI
*
original_uri
;
nsIURI
*
original_uri
;
nsIURI
*
referrer
;
nsIURI
*
referrer
;
...
...
dlls/mshtml/htmlanchor.c
View file @
f5e3281a
...
@@ -724,7 +724,7 @@ static HRESULT HTMLAnchorElement_handle_event(HTMLDOMNode *iface, eventid_t eid,
...
@@ -724,7 +724,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
;
U
INT16
button
;
INT16
button
;
nsresult
nsres
;
nsresult
nsres
;
TRACE
(
"CLICK
\n
"
);
TRACE
(
"CLICK
\n
"
);
...
...
dlls/mshtml/htmldoc.c
View file @
f5e3281a
...
@@ -2211,7 +2211,7 @@ static HRESULT WINAPI HTMLDocument3_getElementsByName(IHTMLDocument3 *iface, BST
...
@@ -2211,7 +2211,7 @@ static HRESULT WINAPI HTMLDocument3_getElementsByName(IHTMLDocument3 *iface, BST
* types and search should be case insensitive. Those are currently not supported properly.
* types and search should be case insensitive. Those are currently not supported properly.
*/
*/
nsAString_InitDepend
(
&
selector_str
,
selector
);
nsAString_InitDepend
(
&
selector_str
,
selector
);
nsres
=
nsIDOM
NodeSelector_QuerySelectorAll
(
This
->
doc_node
->
nsnode_selector
,
&
selector_str
,
&
node_list
);
nsres
=
nsIDOM
HTMLDocument_QuerySelectorAll
(
This
->
doc_node
->
nsdoc
,
&
selector_str
,
&
node_list
);
nsAString_Finish
(
&
selector_str
);
nsAString_Finish
(
&
selector_str
);
heap_free
(
selector
);
heap_free
(
selector
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
...
@@ -4340,11 +4340,6 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
...
@@ -4340,11 +4340,6 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface)
while
(
!
list_empty
(
&
This
->
plugin_hosts
))
while
(
!
list_empty
(
&
This
->
plugin_hosts
))
detach_plugin_host
(
LIST_ENTRY
(
list_head
(
&
This
->
plugin_hosts
),
PluginHost
,
entry
));
detach_plugin_host
(
LIST_ENTRY
(
list_head
(
&
This
->
plugin_hosts
),
PluginHost
,
entry
));
if
(
This
->
nsnode_selector
)
{
nsIDOMNodeSelector_Release
(
This
->
nsnode_selector
);
This
->
nsnode_selector
=
NULL
;
}
if
(
!
This
->
nsdoc
&&
This
->
window
)
{
if
(
!
This
->
nsdoc
&&
This
->
window
)
{
/* document fragments own reference to inner window */
/* document fragments own reference to inner window */
IHTMLWindow2_Release
(
&
This
->
window
->
base
.
IHTMLWindow2_iface
);
IHTMLWindow2_Release
(
&
This
->
window
->
base
.
IHTMLWindow2_iface
);
...
@@ -4366,8 +4361,6 @@ static void HTMLDocumentNode_traverse(HTMLDOMNode *iface, nsCycleCollectionTrave
...
@@ -4366,8 +4361,6 @@ static void HTMLDocumentNode_traverse(HTMLDOMNode *iface, nsCycleCollectionTrave
{
{
HTMLDocumentNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLDocumentNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsnode_selector
)
note_cc_edge
((
nsISupports
*
)
This
->
nsnode_selector
,
"This->nsnode_selector"
,
cb
);
if
(
This
->
nsdoc
)
if
(
This
->
nsdoc
)
note_cc_edge
((
nsISupports
*
)
This
->
nsdoc
,
"This->nsdoc"
,
cb
);
note_cc_edge
((
nsISupports
*
)
This
->
nsdoc
,
"This->nsdoc"
,
cb
);
}
}
...
@@ -4376,11 +4369,6 @@ static void HTMLDocumentNode_unlink(HTMLDOMNode *iface)
...
@@ -4376,11 +4369,6 @@ static void HTMLDocumentNode_unlink(HTMLDOMNode *iface)
{
{
HTMLDocumentNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLDocumentNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
if
(
This
->
nsnode_selector
)
{
nsIDOMNodeSelector_Release
(
This
->
nsnode_selector
);
This
->
nsnode_selector
=
NULL
;
}
if
(
This
->
nsdoc
)
{
if
(
This
->
nsdoc
)
{
nsIDOMHTMLDocument
*
nsdoc
=
This
->
nsdoc
;
nsIDOMHTMLDocument
*
nsdoc
=
This
->
nsdoc
;
...
@@ -4534,7 +4522,6 @@ static HTMLDocumentNode *alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindo
...
@@ -4534,7 +4522,6 @@ static HTMLDocumentNode *alloc_doc_node(HTMLDocumentObj *doc_obj, HTMLInnerWindo
HRESULT
create_doc_from_nsdoc
(
nsIDOMHTMLDocument
*
nsdoc
,
HTMLDocumentObj
*
doc_obj
,
HTMLInnerWindow
*
window
,
HTMLDocumentNode
**
ret
)
HRESULT
create_doc_from_nsdoc
(
nsIDOMHTMLDocument
*
nsdoc
,
HTMLDocumentObj
*
doc_obj
,
HTMLInnerWindow
*
window
,
HTMLDocumentNode
**
ret
)
{
{
HTMLDocumentNode
*
doc
;
HTMLDocumentNode
*
doc
;
nsresult
nsres
;
doc
=
alloc_doc_node
(
doc_obj
,
window
);
doc
=
alloc_doc_node
(
doc_obj
,
window
);
if
(
!
doc
)
if
(
!
doc
)
...
@@ -4548,9 +4535,6 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_ob
...
@@ -4548,9 +4535,6 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_ob
nsIDOMHTMLDocument_AddRef
(
nsdoc
);
nsIDOMHTMLDocument_AddRef
(
nsdoc
);
doc
->
nsdoc
=
nsdoc
;
doc
->
nsdoc
=
nsdoc
;
nsres
=
nsIDOMHTMLDocument_QueryInterface
(
nsdoc
,
&
IID_nsIDOMNodeSelector
,
(
void
**
)
&
doc
->
nsnode_selector
);
assert
(
nsres
==
NS_OK
);
init_document_mutation
(
doc
);
init_document_mutation
(
doc
);
doc_init_events
(
doc
);
doc_init_events
(
doc
);
...
...
dlls/mshtml/htmlevent.c
View file @
f5e3281a
...
@@ -551,7 +551,7 @@ static HRESULT WINAPI HTMLEventObj_get_keyCode(IHTMLEventObj *iface, LONG *p)
...
@@ -551,7 +551,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
);
U
INT16
button
=
0
;
INT16
button
=
0
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
dlls/mshtml/htmlnode.c
View file @
f5e3281a
...
@@ -36,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
...
@@ -36,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static
HTMLDOMNode
*
get_node_obj
(
IHTMLDOMNode
*
);
static
HTMLDOMNode
*
get_node_obj
(
IHTMLDOMNode
*
);
static
HRESULT
create_node
(
HTMLDocumentNode
*
,
nsIDOMNode
*
,
HTMLDOMNode
**
);
static
HRESULT
create_node
(
HTMLDocumentNode
*
,
nsIDOMNode
*
,
HTMLDOMNode
**
);
static
ExternalCycleCollectionParticipant
node_ccp
;
typedef
struct
{
typedef
struct
{
DispatchEx
dispex
;
DispatchEx
dispex
;
IHTMLDOMChildrenCollection
IHTMLDOMChildrenCollection_iface
;
IHTMLDOMChildrenCollection
IHTMLDOMChildrenCollection_iface
;
...
@@ -477,7 +479,9 @@ static HRESULT WINAPI HTMLDOMNode_QueryInterface(IHTMLDOMNode *iface,
...
@@ -477,7 +479,9 @@ static HRESULT WINAPI HTMLDOMNode_QueryInterface(IHTMLDOMNode *iface,
static
ULONG
WINAPI
HTMLDOMNode_AddRef
(
IHTMLDOMNode
*
iface
)
static
ULONG
WINAPI
HTMLDOMNode_AddRef
(
IHTMLDOMNode
*
iface
)
{
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
iface
);
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
iface
);
LONG
ref
=
ccref_incr
(
&
This
->
ccref
,
(
nsISupports
*
)
&
This
->
IHTMLDOMNode_iface
);
LONG
ref
;
ref
=
ccref_incr
(
&
This
->
ccref
,
(
nsISupports
*
)
&
This
->
IHTMLDOMNode_iface
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
...
@@ -487,18 +491,10 @@ static ULONG WINAPI HTMLDOMNode_AddRef(IHTMLDOMNode *iface)
...
@@ -487,18 +491,10 @@ static ULONG WINAPI HTMLDOMNode_AddRef(IHTMLDOMNode *iface)
static
ULONG
WINAPI
HTMLDOMNode_Release
(
IHTMLDOMNode
*
iface
)
static
ULONG
WINAPI
HTMLDOMNode_Release
(
IHTMLDOMNode
*
iface
)
{
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
iface
);
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
iface
);
LONG
ref
=
ccref_decr
(
&
This
->
ccref
,
(
nsISupports
*
)
&
This
->
IHTMLDOMNode_iface
);
LONG
ref
=
ccref_decr
(
&
This
->
ccref
,
(
nsISupports
*
)
&
This
->
IHTMLDOMNode_iface
,
/*&node_ccp*/
NULL
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
vtbl
->
unlink
)
This
->
vtbl
->
unlink
(
This
);
This
->
vtbl
->
destructor
(
This
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
return
ref
;
return
ref
;
}
}
...
@@ -1158,8 +1154,6 @@ static const IHTMLDOMNode2Vtbl HTMLDOMNode2Vtbl = {
...
@@ -1158,8 +1154,6 @@ static const IHTMLDOMNode2Vtbl HTMLDOMNode2Vtbl = {
HTMLDOMNode2_get_ownerDocument
HTMLDOMNode2_get_ownerDocument
};
};
static
nsXPCOMCycleCollectionParticipant
node_ccp
;
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
This
,
REFIID
riid
,
void
**
ppv
)
HRESULT
HTMLDOMNode_QI
(
HTMLDOMNode
*
This
,
REFIID
riid
,
void
**
ppv
)
{
{
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
...
@@ -1287,12 +1281,6 @@ static HRESULT create_node(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNod
...
@@ -1287,12 +1281,6 @@ static HRESULT create_node(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNod
return
S_OK
;
return
S_OK
;
}
}
static
void
NSAPI
HTMLDOMNode_unmark_if_purple
(
void
*
p
)
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
p
);
ccref_unmark_if_purple
(
&
This
->
ccref
);
}
static
nsresult
NSAPI
HTMLDOMNode_traverse
(
void
*
ccp
,
void
*
p
,
nsCycleCollectionTraversalCallback
*
cb
)
static
nsresult
NSAPI
HTMLDOMNode_traverse
(
void
*
ccp
,
void
*
p
,
nsCycleCollectionTraversalCallback
*
cb
)
{
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
p
);
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
p
);
...
@@ -1341,12 +1329,25 @@ static nsresult NSAPI HTMLDOMNode_unlink(void *p)
...
@@ -1341,12 +1329,25 @@ static nsresult NSAPI HTMLDOMNode_unlink(void *p)
return
NS_OK
;
return
NS_OK
;
}
}
static
void
NSAPI
HTMLDOMNode_delete_cycle_collectable
(
void
*
p
)
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode
(
p
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
vtbl
->
unlink
)
This
->
vtbl
->
unlink
(
This
);
This
->
vtbl
->
destructor
(
This
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
void
init_node_cc
(
void
)
void
init_node_cc
(
void
)
{
{
static
const
CCObjCallback
node_ccp_callback
=
{
static
const
CCObjCallback
node_ccp_callback
=
{
HTMLDOMNode_unmark_if_purple
,
HTMLDOMNode_traverse
,
HTMLDOMNode_traverse
,
HTMLDOMNode_unlink
HTMLDOMNode_unlink
,
HTMLDOMNode_delete_cycle_collectable
};
};
ccp_init
(
&
node_ccp
,
&
node_ccp_callback
);
ccp_init
(
&
node_ccp
,
&
node_ccp_callback
);
...
...
dlls/mshtml/mshtml_private.h
View file @
f5e3281a
...
@@ -244,28 +244,29 @@ struct DispatchEx {
...
@@ -244,28 +244,29 @@ struct DispatchEx {
};
};
typedef
struct
{
typedef
struct
{
void
*
x
;
UINT_PTR
x
;
}
nsCycleCollectingAutoRefCnt
;
}
nsCycleCollectingAutoRefCnt
;
typedef
struct
{
typedef
struct
{
void
*
x
[
9
];
void
*
vtbl
;
}
nsXPCOMCycleCollectionParticipant
;
int
ref_flags
;
void
*
callbacks
;
}
ExternalCycleCollectionParticipant
;
typedef
struct
nsCycleCollectionTraversalCallback
nsCycleCollectionTraversalCallback
;
typedef
struct
nsCycleCollectionTraversalCallback
nsCycleCollectionTraversalCallback
;
typedef
struct
{
typedef
struct
{
void
(
NSAPI
*
unmark_if_purple
)(
void
*
);
nsresult
(
NSAPI
*
traverse
)(
void
*
,
void
*
,
nsCycleCollectionTraversalCallback
*
);
nsresult
(
NSAPI
*
traverse
)(
void
*
,
void
*
,
nsCycleCollectionTraversalCallback
*
);
nsresult
(
NSAPI
*
unlink
)(
void
*
);
nsresult
(
NSAPI
*
unlink
)(
void
*
);
void
(
NSAPI
*
delete_cycle_collectable
)(
void
*
);
}
CCObjCallback
;
}
CCObjCallback
;
DEFINE_GUID
(
IID_nsXPCOMCycleCollectionParticipant
,
0x9674489b
,
0x1f6f
,
0x4550
,
0xa7
,
0x30
,
0xcc
,
0xae
,
0xdd
,
0x10
,
0x4c
,
0xf9
);
DEFINE_GUID
(
IID_nsXPCOMCycleCollectionParticipant
,
0x9674489b
,
0x1f6f
,
0x4550
,
0xa7
,
0x30
,
0xcc
,
0xae
,
0xdd
,
0x10
,
0x4c
,
0xf9
);
nsrefcnt
(
__cdecl
*
ccref_incr
)(
nsCycleCollectingAutoRefCnt
*
,
nsISupports
*
);
nsrefcnt
(
__cdecl
*
ccref_incr
)(
nsCycleCollectingAutoRefCnt
*
,
nsISupports
*
);
nsrefcnt
(
__cdecl
*
ccref_decr
)(
nsCycleCollectingAutoRefCnt
*
,
nsISupports
*
);
nsrefcnt
(
__cdecl
*
ccref_decr
)(
nsCycleCollectingAutoRefCnt
*
,
nsISupports
*
,
ExternalCycleCollectionParticipant
*
);
void
(
__cdecl
*
ccref_init
)(
nsCycleCollectingAutoRefCnt
*
,
nsrefcnt
);
void
(
__cdecl
*
ccref_init
)(
nsCycleCollectingAutoRefCnt
*
,
nsrefcnt
);
void
(
__cdecl
*
ccref_unmark_if_purple
)(
nsCycleCollectingAutoRefCnt
*
);
void
(
__cdecl
*
ccp_init
)(
ExternalCycleCollectionParticipant
*
,
const
CCObjCallback
*
);
void
(
__cdecl
*
ccp_init
)(
nsXPCOMCycleCollectionParticipant
*
,
const
CCObjCallback
*
);
void
(
__cdecl
*
describe_cc_node
)(
nsCycleCollectingAutoRefCnt
*
,
const
char
*
,
nsCycleCollectionTraversalCallback
*
);
void
(
__cdecl
*
describe_cc_node
)(
nsCycleCollectingAutoRefCnt
*
,
const
char
*
,
nsCycleCollectionTraversalCallback
*
);
void
(
__cdecl
*
note_cc_edge
)(
nsISupports
*
,
const
char
*
,
nsCycleCollectionTraversalCallback
*
);
void
(
__cdecl
*
note_cc_edge
)(
nsISupports
*
,
const
char
*
,
nsCycleCollectionTraversalCallback
*
);
...
@@ -729,7 +730,6 @@ struct HTMLDocumentNode {
...
@@ -729,7 +730,6 @@ struct HTMLDocumentNode {
HTMLInnerWindow
*
window
;
HTMLInnerWindow
*
window
;
nsIDOMHTMLDocument
*
nsdoc
;
nsIDOMHTMLDocument
*
nsdoc
;
nsIDOMNodeSelector
*
nsnode_selector
;
BOOL
content_ready
;
BOOL
content_ready
;
event_target_t
*
body_event_target
;
event_target_t
*
body_event_target
;
...
...
dlls/mshtml/mutation.c
View file @
f5e3281a
...
@@ -592,12 +592,12 @@ static void NSAPI nsDocumentObserver_EndLoad(nsIDocumentObserver *iface, nsIDocu
...
@@ -592,12 +592,12 @@ static void NSAPI nsDocumentObserver_EndLoad(nsIDocumentObserver *iface, nsIDocu
}
}
static
void
NSAPI
nsDocumentObserver_ContentStatesChanged
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
static
void
NSAPI
nsDocumentObserver_ContentStatesChanged
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
nsIContent
*
aContent
,
nsEventStates
*
aStateMask
)
nsIContent
*
aContent
,
EventStates
aStateMask
)
{
{
}
}
static
void
NSAPI
nsDocumentObserver_DocumentStatesChanged
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
static
void
NSAPI
nsDocumentObserver_DocumentStatesChanged
(
nsIDocumentObserver
*
iface
,
nsIDocument
*
aDocument
,
nsEventStates
*
aStateMask
)
EventStates
aStateMask
)
{
{
}
}
...
...
dlls/mshtml/navigate.c
View file @
f5e3281a
...
@@ -1964,7 +1964,7 @@ static HRESULT navigate_fragment(HTMLOuterWindow *window, IUri *uri)
...
@@ -1964,7 +1964,7 @@ static HRESULT navigate_fragment(HTMLOuterWindow *window, IUri *uri)
sprintfW
(
selector
,
selector_formatW
,
frag
);
sprintfW
(
selector
,
selector_formatW
,
frag
);
nsAString_InitDepend
(
&
selector_str
,
selector
);
nsAString_InitDepend
(
&
selector_str
,
selector
);
/* NOTE: Gecko doesn't set result to NULL if there is no match, so nselem must be initialized */
/* NOTE: Gecko doesn't set result to NULL if there is no match, so nselem must be initialized */
nsres
=
nsIDOM
NodeSelector_QuerySelector
(
window
->
base
.
inner_window
->
doc
->
nsnode_selector
,
&
selector_str
,
&
nselem
);
nsres
=
nsIDOM
HTMLDocument_QuerySelector
(
window
->
base
.
inner_window
->
doc
->
nsdoc
,
&
selector_str
,
&
nselem
);
nsAString_Finish
(
&
selector_str
);
nsAString_Finish
(
&
selector_str
);
heap_free
(
selector
);
heap_free
(
selector
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
nselem
)
{
if
(
NS_SUCCEEDED
(
nsres
)
&&
nselem
)
{
...
...
dlls/mshtml/nsembed.c
View file @
f5e3281a
...
@@ -527,7 +527,6 @@ static BOOL load_xul(const PRUnichar *gre_path)
...
@@ -527,7 +527,6 @@ static BOOL load_xul(const PRUnichar *gre_path)
NS_DLSYM
(
ccref_incr
);
NS_DLSYM
(
ccref_incr
);
NS_DLSYM
(
ccref_decr
);
NS_DLSYM
(
ccref_decr
);
NS_DLSYM
(
ccref_init
);
NS_DLSYM
(
ccref_init
);
NS_DLSYM
(
ccref_unmark_if_purple
);
NS_DLSYM
(
ccp_init
);
NS_DLSYM
(
ccp_init
);
NS_DLSYM
(
describe_cc_node
);
NS_DLSYM
(
describe_cc_node
);
NS_DLSYM
(
note_cc_edge
);
NS_DLSYM
(
note_cc_edge
);
...
...
dlls/mshtml/nsiface.idl
View file @
f5e3281a
This diff is collapsed.
Click to expand it.
dlls/mshtml/nsio.c
View file @
f5e3281a
...
@@ -1179,6 +1179,32 @@ static nsresult NSAPI nsChannel_GetContentDispositionHeader(nsIHttpChannel *ifac
...
@@ -1179,6 +1179,32 @@ static nsresult NSAPI nsChannel_GetContentDispositionHeader(nsIHttpChannel *ifac
return
NS_ERROR_NOT_IMPLEMENTED
;
return
NS_ERROR_NOT_IMPLEMENTED
;
}
}
static
nsresult
NSAPI
nsChannel_GetLoadInfo
(
nsIHttpChannel
*
iface
,
nsILoadInfo
**
aLoadInfo
)
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aLoadInfo
);
if
(
This
->
load_info
)
nsISupports_AddRef
(
This
->
load_info
);
*
aLoadInfo
=
This
->
load_info
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsChannel_SetLoadInfo
(
nsIHttpChannel
*
iface
,
nsILoadInfo
*
aLoadInfo
)
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aLoadInfo
);
if
(
This
->
load_info
)
nsISupports_Release
(
This
->
load_info
);
This
->
load_info
=
aLoadInfo
;
if
(
This
->
load_info
)
nsISupports_AddRef
(
This
->
load_info
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsChannel_GetRequestMethod
(
nsIHttpChannel
*
iface
,
nsACString
*
aRequestMethod
)
static
nsresult
NSAPI
nsChannel_GetRequestMethod
(
nsIHttpChannel
*
iface
,
nsACString
*
aRequestMethod
)
{
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
...
@@ -1287,6 +1313,20 @@ static nsresult NSAPI nsChannel_SetAllowPipelining(nsIHttpChannel *iface, cpp_bo
...
@@ -1287,6 +1313,20 @@ static nsresult NSAPI nsChannel_SetAllowPipelining(nsIHttpChannel *iface, cpp_bo
return
NS_ERROR_NOT_IMPLEMENTED
;
return
NS_ERROR_NOT_IMPLEMENTED
;
}
}
static
nsresult
NSAPI
nsChannel_GetAllowTLS
(
nsIHttpChannel
*
iface
,
cpp_bool
*
aAllowTLS
)
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
aAllowTLS
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsChannel_SetAllowTLS
(
nsIHttpChannel
*
iface
,
cpp_bool
aAllowTLS
)
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
aAllowTLS
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsChannel_GetRedirectionLimit
(
nsIHttpChannel
*
iface
,
UINT32
*
aRedirectionLimit
)
static
nsresult
NSAPI
nsChannel_GetRedirectionLimit
(
nsIHttpChannel
*
iface
,
UINT32
*
aRedirectionLimit
)
{
{
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
nsChannel
*
This
=
impl_from_nsIHttpChannel
(
iface
);
...
@@ -1443,6 +1483,8 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
...
@@ -1443,6 +1483,8 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_GetContentDispositionFilename
,
nsChannel_GetContentDispositionFilename
,
nsChannel_SetContentDispositionFilename
,
nsChannel_SetContentDispositionFilename
,
nsChannel_GetContentDispositionHeader
,
nsChannel_GetContentDispositionHeader
,
nsChannel_GetLoadInfo
,
nsChannel_SetLoadInfo
,
nsChannel_GetRequestMethod
,
nsChannel_GetRequestMethod
,
nsChannel_SetRequestMethod
,
nsChannel_SetRequestMethod
,
nsChannel_GetReferrer
,
nsChannel_GetReferrer
,
...
@@ -1452,6 +1494,8 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
...
@@ -1452,6 +1494,8 @@ static const nsIHttpChannelVtbl nsChannelVtbl = {
nsChannel_VisitRequestHeaders
,
nsChannel_VisitRequestHeaders
,
nsChannel_GetAllowPipelining
,
nsChannel_GetAllowPipelining
,
nsChannel_SetAllowPipelining
,
nsChannel_SetAllowPipelining
,
nsChannel_GetAllowTLS
,
nsChannel_SetAllowTLS
,
nsChannel_GetRedirectionLimit
,
nsChannel_GetRedirectionLimit
,
nsChannel_SetRedirectionLimit
,
nsChannel_SetRedirectionLimit
,
nsChannel_GetResponseStatus
,
nsChannel_GetResponseStatus
,
...
@@ -1613,6 +1657,15 @@ static nsresult NSAPI nsHttpChannelInternal_GetResponseVersion(nsIHttpChannelInt
...
@@ -1613,6 +1657,15 @@ static nsresult NSAPI nsHttpChannelInternal_GetResponseVersion(nsIHttpChannelInt
return
NS_ERROR_NOT_IMPLEMENTED
;
return
NS_ERROR_NOT_IMPLEMENTED
;
}
}
static
nsresult
NSAPI
nsHttpChannelInternal_TakeAllSecurityMessages
(
nsIHttpChannelInternal
*
iface
,
void
*
aMessages
)
{
nsChannel
*
This
=
impl_from_nsIHttpChannelInternal
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsHttpChannelInternal_SetCookie
(
nsIHttpChannelInternal
*
iface
,
const
char
*
aCookieHeader
)
static
nsresult
NSAPI
nsHttpChannelInternal_SetCookie
(
nsIHttpChannelInternal
*
iface
,
const
char
*
aCookieHeader
)
{
{
nsChannel
*
This
=
impl_from_nsIHttpChannelInternal
(
iface
);
nsChannel
*
This
=
impl_from_nsIHttpChannelInternal
(
iface
);
...
@@ -1779,6 +1832,7 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
...
@@ -1779,6 +1832,7 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_SetDocumentURI
,
nsHttpChannelInternal_SetDocumentURI
,
nsHttpChannelInternal_GetRequestVersion
,
nsHttpChannelInternal_GetRequestVersion
,
nsHttpChannelInternal_GetResponseVersion
,
nsHttpChannelInternal_GetResponseVersion
,
nsHttpChannelInternal_TakeAllSecurityMessages
,
nsHttpChannelInternal_SetCookie
,
nsHttpChannelInternal_SetCookie
,
nsHttpChannelInternal_SetupFallbackChannel
,
nsHttpChannelInternal_SetupFallbackChannel
,
nsHttpChannelInternal_GetForceAllowThirdPartyCookie
,
nsHttpChannelInternal_GetForceAllowThirdPartyCookie
,
...
...
dlls/mshtml/oleobj.c
View file @
f5e3281a
...
@@ -229,7 +229,6 @@ void set_document_navigation(HTMLDocumentObj *doc, BOOL doc_can_navigate)
...
@@ -229,7 +229,6 @@ void set_document_navigation(HTMLDocumentObj *doc, BOOL doc_can_navigate)
static
void
load_settings
(
HTMLDocumentObj
*
doc
)
static
void
load_settings
(
HTMLDocumentObj
*
doc
)
{
{
nsIMarkupDocumentViewer
*
markup_document_viewer
;
nsIContentViewer
*
content_viewer
;
nsIContentViewer
*
content_viewer
;
nsIDocShell
*
doc_shell
;
nsIDocShell
*
doc_shell
;
HKEY
settings_key
;
HKEY
settings_key
;
...
@@ -261,16 +260,13 @@ static void load_settings(HTMLDocumentObj *doc)
...
@@ -261,16 +260,13 @@ static void load_settings(HTMLDocumentObj *doc)
nsres
=
nsIDocShell_GetContentViewer
(
doc_shell
,
&
content_viewer
);
nsres
=
nsIDocShell_GetContentViewer
(
doc_shell
,
&
content_viewer
);
assert
(
nsres
==
NS_OK
&&
content_viewer
);
assert
(
nsres
==
NS_OK
&&
content_viewer
);
nsIDocShell_Release
(
doc_shell
);
nsres
=
nsISupports_QueryInterface
(
content_viewer
,
&
IID_nsIMarkupDocumentViewer
,
(
void
**
)
&
markup_document_viewer
);
nsres
=
nsIContentViewer_SetFullZoom
(
content_viewer
,
(
float
)
val
/
100000
);
nsISupports_Release
(
content_viewer
);
assert
(
nsres
==
NS_OK
);
nsres
=
nsIMarkupDocumentViewer_SetFullZoom
(
markup_document_viewer
,
(
float
)
val
/
100000
);
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetFullZoom failed: %08x
\n
"
,
nsres
);
ERR
(
"SetFullZoom failed: %08x
\n
"
,
nsres
);
nsI
DocShell_Release
(
doc_shell
);
nsI
ContentViewer_Release
(
content_viewer
);
}
}
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
IOleClientSite
*
pClientSite
)
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
IOleClientSite
*
pClientSite
)
...
...
dlls/mshtml/script.c
View file @
f5e3281a
...
@@ -1416,7 +1416,7 @@ void bind_event_scripts(HTMLDocumentNode *doc)
...
@@ -1416,7 +1416,7 @@ void bind_event_scripts(HTMLDocumentNode *doc)
return
;
return
;
nsAString_InitDepend
(
&
selector_str
,
selectorW
);
nsAString_InitDepend
(
&
selector_str
,
selectorW
);
nsres
=
nsIDOM
NodeSelector_QuerySelectorAll
(
doc
->
nsnode_selector
,
&
selector_str
,
&
node_list
);
nsres
=
nsIDOM
HTMLDocument_QuerySelectorAll
(
doc
->
nsdoc
,
&
selector_str
,
&
node_list
);
nsAString_Finish
(
&
selector_str
);
nsAString_Finish
(
&
selector_str
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"QuerySelectorAll failed: %08x
\n
"
,
nsres
);
ERR
(
"QuerySelectorAll failed: %08x
\n
"
,
nsres
);
...
...
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