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
b882b184
Commit
b882b184
authored
Oct 16, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for IHTMLScriptElement::put_src on detached elements.
parent
ccbee09f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
htmlscript.c
dlls/mshtml/htmlscript.c
+3
-2
htmlscript.h
dlls/mshtml/htmlscript.h
+1
-0
mutation.c
dlls/mshtml/mutation.c
+19
-0
No files found.
dlls/mshtml/htmlscript.c
View file @
b882b184
...
...
@@ -138,8 +138,9 @@ static HRESULT WINAPI HTMLScriptElement_put_src(IHTMLScriptElement *iface, BSTR
nsres
=
nsIDOMHTMLScriptElement_GetParentNode
(
This
->
nsscript
,
&
parent
);
if
(
NS_FAILED
(
nsres
)
||
!
parent
)
{
FIXME
(
"No parent, not supported detached elements
\n
"
);
return
E_NOTIMPL
;
TRACE
(
"No parent, not executing
\n
"
);
This
->
parse_on_bind
=
TRUE
;
return
S_OK
;
}
nsIDOMNode_Release
(
parent
);
...
...
dlls/mshtml/htmlscript.h
View file @
b882b184
...
...
@@ -23,6 +23,7 @@ typedef struct {
nsIDOMHTMLScriptElement
*
nsscript
;
BOOL
parsed
;
BOOL
parse_on_bind
;
}
HTMLScriptElement
;
typedef
struct
{
...
...
dlls/mshtml/mutation.c
View file @
b882b184
...
...
@@ -629,6 +629,7 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
HTMLDocumentNode
*
This
=
impl_from_nsIDocumentObserver
(
iface
);
nsIDOMHTMLIFrameElement
*
nsiframe
;
nsIDOMHTMLFrameElement
*
nsframe
;
nsIDOMHTMLScriptElement
*
nsscript
;
nsIDOMComment
*
nscomment
;
nsIDOMElement
*
nselem
;
nsresult
nsres
;
...
...
@@ -667,6 +668,24 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
nsIDOMHTMLFrameElement_Release
(
nsframe
);
return
;
}
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOMHTMLScriptElement
,
(
void
**
)
&
nsscript
);
if
(
NS_SUCCEEDED
(
nsres
))
{
HTMLScriptElement
*
script_elem
;
HRESULT
hres
;
TRACE
(
"script element
\n
"
);
hres
=
script_elem_from_nsscript
(
This
,
nsscript
,
&
script_elem
);
nsIDOMHTMLScriptElement_Release
(
nsscript
);
if
(
FAILED
(
hres
))
return
;
if
(
script_elem
->
parse_on_bind
)
add_script_runner
(
This
,
run_insert_script
,
(
nsISupports
*
)
nsscript
,
NULL
);
IHTMLScriptElement_Release
(
&
script_elem
->
IHTMLScriptElement_iface
);
}
}
static
void
NSAPI
nsDocumentObserver_AttemptToExecuteScript
(
nsIDocumentObserver
*
iface
,
nsIContent
*
aContent
,
...
...
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