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
6ac87911
Commit
6ac87911
authored
Nov 15, 2014
by
Andrea Iacovitti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Background-size parsing fix: If only one value is given the second is assumed to be ‘auto’.
parent
9f372807
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
khtml/css/cssparser.cpp
khtml/css/cssparser.cpp
+3
-1
No files found.
khtml/css/cssparser.cpp
View file @
6ac87911
...
...
@@ -1826,7 +1826,7 @@ CSSValueImpl* CSSParser::parseBackgroundSize()
parsedValue1
=
new
CSSPrimitiveValueImpl
(
value
->
fValue
,
(
CSSPrimitiveValue
::
UnitTypes
)
value
->
unit
);
}
CSSPrimitiveValueImpl
*
parsedValue2
=
parsedValue1
;
CSSPrimitiveValueImpl
*
parsedValue2
;
if
((
value
=
valueList
->
next
()))
{
if
(
value
->
id
==
CSS_VAL_AUTO
)
parsedValue2
=
new
CSSPrimitiveValueImpl
(
0
,
CSSPrimitiveValue
::
CSS_UNKNOWN
);
...
...
@@ -1837,6 +1837,8 @@ CSSValueImpl* CSSParser::parseBackgroundSize()
}
parsedValue2
=
new
CSSPrimitiveValueImpl
(
value
->
fValue
,
(
CSSPrimitiveValue
::
UnitTypes
)
value
->
unit
);
}
}
else
{
parsedValue2
=
new
CSSPrimitiveValueImpl
(
0
,
CSSPrimitiveValue
::
CSS_UNKNOWN
);
}
PairImpl
*
pair
=
new
PairImpl
(
parsedValue1
,
parsedValue2
);
...
...
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