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
e2bd8eb5
Commit
e2bd8eb5
authored
Jul 03, 2014
by
Andrea Iacovitti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove font shorthand subproperties.
BUG: 337000 FIXED-IN: 4.13.3
parent
0851c64b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
khtml/css/css_valueimpl.cpp
khtml/css/css_valueimpl.cpp
+12
-4
No files found.
khtml/css/css_valueimpl.cpp
View file @
e2bd8eb5
...
...
@@ -486,8 +486,6 @@ static void initShorthandMap(QHash<int, PropertyLonghand>& shorthandMap)
#define SET_SHORTHAND_MAP_ENTRY(map, propID, array) \
map.insert(propID, PropertyLonghand(array, sizeof(array) / sizeof(array[0])))
// FIXME: The 'font' property has "shorthand nature" but is not parsed as a shorthand.
// Do not change the order of the following four shorthands, and keep them together.
static
const
int
borderProperties
[
4
][
3
]
=
{
{
CSS_PROP_BORDER_TOP_COLOR
,
CSS_PROP_BORDER_TOP_STYLE
,
CSS_PROP_BORDER_TOP_WIDTH
},
...
...
@@ -623,14 +621,24 @@ static void initShorthandMap(QHash<int, PropertyLonghand>& shorthandMap)
CSS_PROP__KHTML_BORDER_BOTTOM_RIGHT_RADIUS
};
SET_SHORTHAND_MAP_ENTRY
(
shorthandMap
,
CSS_PROP__KHTML_BORDER_RADIUS
,
prefixedBorderRadiusProperties
);
static
const
int
markerProperties
[]
=
{
CSS_PROP_MARKER_START
,
CSS_PROP_MARKER_START
,
CSS_PROP_MARKER_MID
,
CSS_PROP_MARKER_END
};
SET_SHORTHAND_MAP_ENTRY
(
shorthandMap
,
CSS_PROP_MARKER
,
markerProperties
);
static
const
int
fontProperties
[]
=
{
CSS_PROP_FONT_STYLE
,
CSS_PROP_FONT_VARIANT
,
CSS_PROP_FONT_WEIGHT
,
CSS_PROP_FONT_SIZE
,
CSS_PROP_LINE_HEIGHT
,
CSS_PROP_FONT_FAMILY
};
SET_SHORTHAND_MAP_ENTRY
(
shorthandMap
,
CSS_PROP_FONT
,
fontProperties
);
#undef SET_SHORTHAND_MAP_ENTRY
}
...
...
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