Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/Source/build/scripts/make_computed_style_base.py

Issue 2795143004: [selectors4] Implement :focus-within pseudo-class (Closed)
Patch Set: Rebased patch Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import math 6 import math
7 import sys 7 import sys
8 8
9 import json5_generator 9 import json5_generator
10 import template_expander 10 import template_expander
(...skipping 20 matching lines...) Expand all
31 ]}, 31 ]},
32 {'name': 'InsideLink', 'field_template': 'keyword', 'default_value': 'not-in side-link', 32 {'name': 'InsideLink', 'field_template': 'keyword', 'default_value': 'not-in side-link',
33 'keywords': ['not-inside-link', 'inside-unvisited-link', 'inside-visited-li nk'], 33 'keywords': ['not-inside-link', 'inside-unvisited-link', 'inside-visited-li nk'],
34 'inherited': True, 'independent': False}, 34 'inherited': True, 'independent': False},
35 # Style can not be shared. 35 # Style can not be shared.
36 {'name': 'Unique', 'field_template': 'monotonic_flag', 36 {'name': 'Unique', 'field_template': 'monotonic_flag',
37 'inherited': False, 'independent': False, 'default_value': False}, 37 'inherited': False, 'independent': False, 'default_value': False},
38 # Whether this style is affected by these pseudo-classes. 38 # Whether this style is affected by these pseudo-classes.
39 {'name': 'AffectedByFocus', 'field_template': 'monotonic_flag', 39 {'name': 'AffectedByFocus', 'field_template': 'monotonic_flag',
40 'inherited': False, 'independent': False, 'default_value': False}, 40 'inherited': False, 'independent': False, 'default_value': False},
41 {'name': 'AffectedByFocusWithin', 'field_template': 'monotonic_flag',
42 'inherited': False, 'independent': False, 'default_value': False},
41 {'name': 'AffectedByHover', 'field_template': 'monotonic_flag', 43 {'name': 'AffectedByHover', 'field_template': 'monotonic_flag',
42 'inherited': False, 'independent': False, 'default_value': False}, 44 'inherited': False, 'independent': False, 'default_value': False},
43 {'name': 'AffectedByActive', 'field_template': 'monotonic_flag', 45 {'name': 'AffectedByActive', 'field_template': 'monotonic_flag',
44 'inherited': False, 'independent': False, 'default_value': False}, 46 'inherited': False, 'independent': False, 'default_value': False},
45 {'name': 'AffectedByDrag', 'field_template': 'monotonic_flag', 47 {'name': 'AffectedByDrag', 'field_template': 'monotonic_flag',
46 'inherited': False, 'independent': False, 'default_value': False}, 48 'inherited': False, 'independent': False, 'default_value': False},
47 # A non-inherited property references a variable or @apply is used 49 # A non-inherited property references a variable or @apply is used
48 {'name': 'HasVariableReferenceFromNonInheritedProperty', 'field_template': ' monotonic_flag', 50 {'name': 'HasVariableReferenceFromNonInheritedProperty', 'field_template': ' monotonic_flag',
49 'inherited': False, 'independent': False, 'default_value': False}, 51 'inherited': False, 'independent': False, 'default_value': False},
50 # Explicitly inherits a non-inherited property 52 # Explicitly inherits a non-inherited property
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 'mapping': [(enum_value_name(k), enum_for_css_keyword(k)) fo r k in property_['keywords']], 406 'mapping': [(enum_value_name(k), enum_for_css_keyword(k)) fo r k in property_['keywords']],
405 } 407 }
406 408
407 return { 409 return {
408 'include_paths': self._include_paths, 410 'include_paths': self._include_paths,
409 'mappings': mappings, 411 'mappings': mappings,
410 } 412 }
411 413
412 if __name__ == '__main__': 414 if __name__ == '__main__':
413 json5_generator.Maker(ComputedStyleBaseWriter).main() 415 json5_generator.Maker(ComputedStyleBaseWriter).main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698