Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Libraries
Commits
bf94cff6
Commit
bf94cff6
authored
Jul 04, 2014
by
Andrea Iacovitti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize.
parent
b0fc9528
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
khtml/css/cssstyleselector.cpp
khtml/css/cssstyleselector.cpp
+7
-7
No files found.
khtml/css/cssstyleselector.cpp
View file @
bf94cff6
...
...
@@ -3432,16 +3432,10 @@ void CSSStyleSelector::applyRule( int id, DOM::CSSValueImpl *value )
case
CSS_PROP_FONT_SIZE
:
{
FontDef
fontDef
=
style
->
htmlFont
().
fontDef
;
int
oldSize
;
int
size
=
0
;
if
(
parentNode
)
{
oldSize
=
parentStyle
->
font
().
pixelSize
();
}
else
oldSize
=
m_fontSizes
[
3
];
if
(
isInherit
)
size
=
old
Size
;
size
=
parentStyle
->
font
().
pixel
Size
()
;
else
if
(
isInitial
)
size
=
m_fontSizes
[
3
];
else
if
(
primitiveValue
->
getIdent
())
{
...
...
@@ -3453,6 +3447,12 @@ void CSSStyleSelector::applyRule( int id, DOM::CSSValueImpl *value )
#else
const
QVector
<
int
>&
fontSizes
=
m_fontSizes
;
#endif
int
oldSize
;
if
(
parentNode
)
{
oldSize
=
parentStyle
->
font
().
pixelSize
();
}
else
{
oldSize
=
m_fontSizes
[
3
];
}
switch
(
primitiveValue
->
getIdent
())
{
case
CSS_VAL_XX_SMALL
:
size
=
fontSizes
[
0
];
break
;
...
...
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