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
9ccc5f48
Commit
9ccc5f48
authored
Jul 25, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement2::get_runtimeStyle hackish implementation.
parent
5b633c29
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+4
-0
htmlelem2.c
dlls/mshtml/htmlelem2.c
+18
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+1
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
9ccc5f48
...
...
@@ -1563,6 +1563,10 @@ void HTMLElement_destructor(HTMLDOMNode *iface)
This
->
style
->
elem
=
NULL
;
IHTMLStyle_Release
(
&
This
->
style
->
IHTMLStyle_iface
);
}
if
(
This
->
runtime_style
)
{
This
->
runtime_style
->
elem
=
NULL
;
IHTMLStyle_Release
(
&
This
->
runtime_style
->
IHTMLStyle_iface
);
}
if
(
This
->
attrs
)
{
HTMLDOMAttribute
*
attr
;
...
...
dlls/mshtml/htmlelem2.c
View file @
9ccc5f48
...
...
@@ -30,6 +30,7 @@
#include "mshtml_private.h"
#include "htmlevent.h"
#include "htmlstyle.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
...
...
@@ -1188,8 +1189,23 @@ static HRESULT WINAPI HTMLElement2_removeBehavior(IHTMLElement2 *iface, LONG coo
static
HRESULT
WINAPI
HTMLElement2_get_runtimeStyle
(
IHTMLElement2
*
iface
,
IHTMLStyle
**
p
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%p): hack
\n
"
,
This
,
p
);
/* We can't implement correct behavior on top of Gecko (although we could
try a bit harder). Making runtimeStyle behave like regular style is
enough for most use cases. */
if
(
!
This
->
runtime_style
)
{
HRESULT
hres
;
hres
=
HTMLStyle_Create
(
This
,
&
This
->
runtime_style
);
if
(
FAILED
(
hres
))
return
hres
;
}
*
p
=
&
This
->
runtime_style
->
IHTMLStyle_iface
;
IHTMLStyle_AddRef
(
*
p
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLElement2_get_behaviorUrns
(
IHTMLElement2
*
iface
,
IDispatch
**
p
)
...
...
dlls/mshtml/htmlstyle.c
View file @
9ccc5f48
...
...
@@ -721,6 +721,7 @@ static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
assert
(
!
This
->
elem
);
if
(
This
->
nsstyle
)
nsIDOMCSSStyleDeclaration_Release
(
This
->
nsstyle
);
release_dispex
(
&
This
->
dispex
);
...
...
dlls/mshtml/mshtml_private.h
View file @
9ccc5f48
...
...
@@ -634,6 +634,7 @@ typedef struct {
nsIDOMHTMLElement
*
nselem
;
HTMLStyle
*
style
;
HTMLStyle
*
runtime_style
;
HTMLAttributeCollection
*
attrs
;
WCHAR
*
filter
;
}
HTMLElement
;
...
...
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