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
3efaaacf
Commit
3efaaacf
authored
May 27, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use get_elem_attr_value helper in get_font_size.
parent
b79ef676
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
editor.c
dlls/mshtml/editor.c
+7
-14
No files found.
dlls/mshtml/editor.c
View file @
3efaaacf
...
...
@@ -263,7 +263,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
);
nsIDOMElement
*
elem
=
NULL
;
nsIDOM
HTML
Element
*
elem
=
NULL
;
nsIDOMNode
*
node
=
NULL
,
*
tmp_node
;
nsAString
tag_str
;
LPCWSTR
tag
;
...
...
@@ -284,36 +284,29 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
break
;
if
(
node_type
==
ELEMENT_NODE
)
{
nsIDOMNode_QueryInterface
(
node
,
&
IID_nsIDOMElement
,
(
void
**
)
&
elem
);
nsIDOMNode_QueryInterface
(
node
,
&
IID_nsIDOM
HTML
Element
,
(
void
**
)
&
elem
);
nsAString_Init
(
&
tag_str
,
NULL
);
nsIDOMElement_GetTagName
(
elem
,
&
tag_str
);
nsIDOM
HTML
Element_GetTagName
(
elem
,
&
tag_str
);
nsAString_GetData
(
&
tag_str
,
&
tag
);
if
(
!
strcmpiW
(
tag
,
fontW
))
{
nsAString
size_str
,
val_str
;
LPCWSTR
val
;
nsAString
val_str
;
const
PRUnichar
*
val
;
TRACE
(
"found font tag %p
\n
"
,
elem
);
nsAString_InitDepend
(
&
size_str
,
sizeW
);
nsAString_Init
(
&
val_str
,
NULL
);
nsIDOMElement_GetAttribute
(
elem
,
&
size_str
,
&
val_str
);
nsAString_GetData
(
&
val_str
,
&
val
);
get_elem_attr_value
(
elem
,
sizeW
,
&
val_str
,
&
val
);
if
(
*
val
)
{
TRACE
(
"found size %s
\n
"
,
debugstr_w
(
val
));
strcpyW
(
ret
,
val
);
}
nsAString_Finish
(
&
size_str
);
nsAString_Finish
(
&
val_str
);
}
nsAString_Finish
(
&
tag_str
);
nsIDOMElement_Release
(
elem
);
nsIDOMHTMLElement_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