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
339a5156
Commit
339a5156
authored
Feb 12, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use nsIDOMElement instead of nsIDOMHTMLElement in get_font_size.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7e50ee9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
editor.c
dlls/mshtml/editor.c
+4
-4
No files found.
dlls/mshtml/editor.c
View file @
339a5156
...
...
@@ -262,7 +262,7 @@ static void remove_child_attr(nsIDOMElement *elem, LPCWSTR tag, nsAString *attr_
static
void
get_font_size
(
HTMLDocument
*
This
,
WCHAR
*
ret
)
{
nsISelection
*
nsselection
=
get_ns_selection
(
This
);
nsIDOM
HTML
Element
*
elem
=
NULL
;
nsIDOMElement
*
elem
=
NULL
;
nsIDOMNode
*
node
=
NULL
,
*
tmp_node
;
nsAString
tag_str
;
LPCWSTR
tag
;
...
...
@@ -283,10 +283,10 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
break
;
if
(
node_type
==
ELEMENT_NODE
)
{
nsIDOMNode_QueryInterface
(
node
,
&
IID_nsIDOM
HTML
Element
,
(
void
**
)
&
elem
);
nsIDOMNode_QueryInterface
(
node
,
&
IID_nsIDOMElement
,
(
void
**
)
&
elem
);
nsAString_Init
(
&
tag_str
,
NULL
);
nsIDOM
HTML
Element_GetTagName
(
elem
,
&
tag_str
);
nsIDOMElement_GetTagName
(
elem
,
&
tag_str
);
nsAString_GetData
(
&
tag_str
,
&
tag
);
if
(
!
strcmpiW
(
tag
,
fontW
))
{
...
...
@@ -305,7 +305,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
}
nsAString_Finish
(
&
tag_str
);
nsIDOM
HTML
Element_Release
(
elem
);
nsIDOMElement_Release
(
elem
);
}
if
(
*
ret
)
...
...
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