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
05657d95
Commit
05657d95
authored
Jul 16, 2014
by
Andrea Iacovitti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Negative values are not allowed for background-size.
parent
781c6b18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
khtml/css/cssparser.cpp
khtml/css/cssparser.cpp
+2
-2
No files found.
khtml/css/cssparser.cpp
View file @
05657d95
...
...
@@ -1823,7 +1823,7 @@ CSSValueImpl* CSSParser::parseBackgroundSize()
if
(
value
->
id
==
CSS_VAL_AUTO
)
parsedValue1
=
new
CSSPrimitiveValueImpl
(
0
,
CSSPrimitiveValue
::
CSS_UNKNOWN
);
else
{
if
(
!
validUnit
(
value
,
FLength
|
FPercent
,
strict
))
if
(
!
validUnit
(
value
,
FLength
|
FPercent
|
FNonNeg
,
strict
))
return
0
;
parsedValue1
=
new
CSSPrimitiveValueImpl
(
value
->
fValue
,
(
CSSPrimitiveValue
::
UnitTypes
)
value
->
unit
);
}
...
...
@@ -1833,7 +1833,7 @@ CSSValueImpl* CSSParser::parseBackgroundSize()
if
(
value
->
id
==
CSS_VAL_AUTO
)
parsedValue2
=
new
CSSPrimitiveValueImpl
(
0
,
CSSPrimitiveValue
::
CSS_UNKNOWN
);
else
{
if
(
!
validUnit
(
value
,
FLength
|
FPercent
,
strict
))
{
if
(
!
validUnit
(
value
,
FLength
|
FPercent
|
FNonNeg
,
strict
))
{
delete
parsedValue1
;
return
0
;
}
...
...
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