Commit e316115a authored by napper's avatar napper Committed by Commit bot

Made -webkit-print-color-adjust property independent.

Made -webkit-print-color-adjust property independent. Also updated
independent-inheritance-fast-path.html to include webkitPrintColorAdjust.
Also minor cleanup of make_computed_style_base.py, including removing a
redundant if and assignment to property_name.

Tested using independent-inheritance-fast-path.html.

BUG=628043

Review-Url: https://codereview.chromium.org/2578903002
Cr-Commit-Position: refs/heads/master@{#438797}
parent 7c7f83aa
......@@ -20,6 +20,7 @@ var independent_properties = [
["captionSide", "left", "right"],
["listStylePosition", "outside", "inside"],
["webkitBoxDirection", "normal", "reverse"],
["webkitPrintColorAdjust", "economy", "exact"],
];
independent_properties.forEach(function(test_data)
......
......@@ -89,8 +89,6 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
for property in self._properties.values():
if property['keyword_only']:
property_name = property['name_for_methods']
if property['name_for_methods']:
property_name = property['name_for_methods']
property_name_lower = property_name[0].lower() + property_name[1:]
# From the Blink style guide: Other data members should be prefixed by "m_". [names-data-members]
......@@ -106,7 +104,7 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
# If the property is independent, add the single-bit sized isInherited flag
# to the list of Fields as well.
if property['independent']:
field_name_suffix_upper = property['name_for_methods'] + 'IsInherited'
field_name_suffix_upper = property_name + 'IsInherited'
field_name_suffix_lower = property_name_lower + 'IsInherited'
self._fields.append(Field(
'inherited_flag',
......
......@@ -436,7 +436,7 @@ column-width interpolable, converter=convertComputedLength<float>, custom_all
-webkit-mask-size interpolable, custom_all
-webkit-perspective-origin-x interpolable, converter=convertLength
-webkit-perspective-origin-y interpolable, converter=convertLength
-webkit-print-color-adjust inherited, keyword_only, keywords=[economy|exact], initial_keyword=economy
-webkit-print-color-adjust inherited, independent, keyword_only, keywords=[economy|exact], initial_keyword=economy
-webkit-rtl-ordering inherited, type_name=EOrder, setter=setRTLOrdering, initial=initialRTLOrdering
-webkit-ruby-position inherited, type_name=RubyPosition
-webkit-tap-highlight-color inherited, converter=convertColor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment