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
ac3b045f
Commit
ac3b045f
authored
Nov 20, 2014
by
Andrea Iacovitti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getComputedStyle for background-origin
parent
4749596b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
khtml/css/css_renderstyledeclarationimpl.cpp
khtml/css/css_renderstyledeclarationimpl.cpp
+12
-0
No files found.
khtml/css/css_renderstyledeclarationimpl.cpp
View file @
ac3b045f
...
...
@@ -39,6 +39,7 @@ static const int computedProperties[] = {
CSS_PROP_BACKGROUND_IMAGE
,
CSS_PROP_BACKGROUND_REPEAT
,
CSS_PROP_BACKGROUND_ATTACHMENT
,
CSS_PROP_BACKGROUND_ORIGIN
,
CSS_PROP_BACKGROUND_POSITION
,
CSS_PROP_BACKGROUND_POSITION_X
,
CSS_PROP_BACKGROUND_POSITION_Y
,
...
...
@@ -459,6 +460,17 @@ CSSValueImpl *RenderStyleDeclarationImpl::getPropertyCSSValue( int propertyID )
Q_ASSERT
(
0
);
}
break
;
case
CSS_PROP_BACKGROUND_ORIGIN
:
switch
(
style
->
backgroundLayers
()
->
backgroundOrigin
())
{
case
BGBORDER
:
return
new
CSSPrimitiveValueImpl
(
CSS_VAL_BORDER_BOX
);
case
BGPADDING
:
return
new
CSSPrimitiveValueImpl
(
CSS_VAL_PADDING_BOX
);
case
BGCONTENT
:
return
new
CSSPrimitiveValueImpl
(
CSS_VAL_CONTENT_BOX
);
}
Q_ASSERT
(
0
);
break
;
case
CSS_PROP_BACKGROUND_POSITION
:
{
RETURN_NULL_ON_NULL
(
renderer
);
...
...
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