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
b095b1f6
Commit
b095b1f6
authored
Aug 22, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added better IHTMLCurrentStyle2::get_hasLayout stub.
parent
4a5bc137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
+28
-5
htmlcurstyle.c
dlls/mshtml/htmlcurstyle.c
+5
-2
style.c
dlls/mshtml/tests/style.c
+23
-3
No files found.
dlls/mshtml/htmlcurstyle.c
View file @
b095b1f6
...
...
@@ -979,8 +979,11 @@ static HRESULT WINAPI HTMLCurrentStyle2_get_textUnderlinePosition(IHTMLCurrentSt
static
HRESULT
WINAPI
HTMLCurrentStyle2_get_hasLayout
(
IHTMLCurrentStyle2
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLCurrentStyle
*
This
=
impl_from_IHTMLCurrentStyle2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%p) returning true
\n
"
,
This
,
p
);
*
p
=
VARIANT_TRUE
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLCurrentStyle2_get_scrollbarBaseColor
(
IHTMLCurrentStyle2
*
iface
,
VARIANT
*
p
)
...
...
dlls/mshtml/tests/style.c
View file @
b095b1f6
...
...
@@ -73,6 +73,17 @@ static IHTMLElement2 *_get_elem2_iface(unsigned line, IUnknown *unk)
return
elem
;
}
#define get_current_style2_iface(u) _get_current_style2_iface(__LINE__,u)
static
IHTMLCurrentStyle2
*
_get_current_style2_iface
(
unsigned
line
,
IUnknown
*
unk
)
{
IHTMLCurrentStyle2
*
current_style2
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IHTMLCurrentStyle2
,
(
void
**
)
&
current_style2
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"Could not get IHTMLElement2: %08x
\n
"
,
hres
);
return
current_style2
;
}
static
IHTMLElement
*
get_element_by_id
(
IHTMLDocument2
*
doc
,
const
char
*
id
)
{
HRESULT
hres
;
...
...
@@ -2100,9 +2111,7 @@ static void test_style_filters(IHTMLElement *elem)
hres
=
IHTMLElement2_get_currentStyle
(
elem2
,
&
current_style
);
ok
(
hres
==
S_OK
,
"get_style failed: %08x
\n
"
,
hres
);
hres
=
IHTMLCurrentStyle_QueryInterface
(
current_style
,
&
IID_IHTMLCurrentStyle2
,
(
void
**
)
&
current_style2
);
IHTMLCurrentStyle_Release
(
current_style
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLCurrentStyle2 iface: %08x
\n
"
,
hres
);
current_style2
=
get_current_style2_iface
((
IUnknown
*
)
current_style
);
test_style_filter
(
style
,
NULL
);
test_current_style_filter
(
current_style2
,
NULL
);
...
...
@@ -2131,6 +2140,8 @@ static void test_style_filters(IHTMLElement *elem)
static
void
test_current_style
(
IHTMLCurrentStyle
*
current_style
)
{
IHTMLCurrentStyle2
*
current_style2
;
VARIANT_BOOL
b
;
BSTR
str
;
HRESULT
hres
;
VARIANT
v
;
...
...
@@ -2390,6 +2401,15 @@ static void test_current_style(IHTMLCurrentStyle *current_style)
ok
(
hres
==
S_OK
,
"get_textIndent failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
VariantClear
(
&
v
);
current_style2
=
get_current_style2_iface
((
IUnknown
*
)
current_style
);
b
=
100
;
hres
=
IHTMLCurrentStyle2_get_hasLayout
(
current_style2
,
&
b
);
ok
(
hres
==
S_OK
,
"get_hasLayout failed: %08x
\n
"
,
hres
);
ok
(
b
==
VARIANT_TRUE
,
"hasLayout = %x
\n
"
,
b
);
IHTMLCurrentStyle2_Release
(
current_style2
);
}
static
const
char
basic_test_str
[]
=
"<html><body><div id=
\"
divid
\"
></div/</body></html>"
;
...
...
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