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

Unified Diff: third_party/WebKit/Source/build/scripts/make_computed_style_base.py

Issue 2759343002: Generate inherited nonproperties insideLink and hasSimpleUnderline. (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/build/scripts/make_computed_style_base.py
diff --git a/third_party/WebKit/Source/build/scripts/make_computed_style_base.py b/third_party/WebKit/Source/build/scripts/make_computed_style_base.py
index 465f42fdb7df1017e8bf44900a1d1947782e8e8d..61772e68b08cb33274e2b5cd385275552e809d82 100755
--- a/third_party/WebKit/Source/build/scripts/make_computed_style_base.py
+++ b/third_party/WebKit/Source/build/scripts/make_computed_style_base.py
@@ -20,6 +20,9 @@ from name_utilities import (
NONPROPERTIES = [
{'name': 'IsLink', 'field_template': 'monotonic_flag',
'inherited': False, 'independent': False},
+ {'name': 'InsideLink', 'field_template': 'keyword', 'initial_keyword': 'not-inside-link',
+ 'keywords': ['not-inside-link', 'inside-unvisited-link', 'inside-visited-link'],
+ 'inherited': True, 'independent': False},
# Style can not be shared.
{'name': 'Unique', 'field_template': 'monotonic_flag',
'inherited': False, 'independent': False},
@@ -46,6 +49,9 @@ NONPROPERTIES = [
'type_name': 'PseudoId', 'inherited': False, 'independent': False},
{'name': 'PseudoBits', 'field_template': 'storage_only', 'size': 8, 'default_value': 'PseudoIdNone',
'type_name': 'PseudoId', 'inherited': False, 'independent': False},
+ # True if 'underline solid' is the only text decoration on this element.
+ {'name': 'HasSimpleUnderline', 'field_template': 'storage_only', 'size': 1, 'default_value': 'false',
+ 'type_name': 'bool', 'inherited': True, 'independent': False},
]

Powered by Google App Engine
This is Rietveld 408576698