summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl')
-rw-r--r--chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl b/chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl
index aee3668af2f..9ca650e2ec4 100644
--- a/chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl
+++ b/chromium/third_party/blink/renderer/build/scripts/core/style/templates/computed_style_base_constants.h.tmpl
@@ -14,7 +14,7 @@ namespace blink {
{% for enum in enums %}
enum class {{enum.type_name}} : unsigned {
{% for value in enum.values %}
- {{value}}{{print_if(enum.is_set, " = " ~ (0 if loop.first else 2**loop.index0))}},
+ {{value}}{{print_if(enum.is_set, " = " ~ (0 if loop.first else 2**(loop.index0 - 1)))}},
{% endfor %}
};