Commit 235a1c62 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Refactor: unsigned short -> uint16_t in third_party/blink/*.tmpl

- unsigned short -> uint16_t.
- No logic changes.
- Reference: https://google.github.io/styleguide/cppguide.html#Integer_Types

Bug: 929986
Change-Id: I420583fd54e02d301839363aee97bcf1efa9097a
Reviewed-on: https://chromium-review.googlesource.com/c/1496403Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636783}
parent 6b9b3bc8
......@@ -22,7 +22,7 @@ static const char valueListStringPool[] = {
{% endfor %}
};
static const unsigned short valueListStringOffsets[] = {
static const uint16_t valueListStringOffsets[] = {
{% for offset in value_keyword_offsets %}
{{offset}},
{% endfor %}
......@@ -58,7 +58,7 @@ const char* getValueName(CSSValueID id) {
return valueListStringPool + valueListStringOffsets[id - 1];
}
bool isValueAllowedInMode(unsigned short id, CSSParserMode mode) {
bool isValueAllowedInMode(uint16_t id, CSSParserMode mode) {
switch (id) {
{% for ua_keyword in ua_sheet_mode_values_keywords %}
case {{ua_keyword.enum_name}}:
......
......@@ -6,6 +6,7 @@
#define {{header_guard}}
#include <string.h>
#include <stdint.h>
#include "third_party/blink/renderer/core/css/parser/css_parser_mode.h"
......@@ -22,7 +23,7 @@ const int numCSSValueKeywords = {{value_keywords_count}};
const size_t maxCSSValueKeywordLength = {{max_value_keyword_length}};
const char* getValueName(CSSValueID);
bool isValueAllowedInMode(unsigned short id, CSSParserMode mode);
bool isValueAllowedInMode(uint16_t id, CSSParserMode mode);
} // namespace blink
......
......@@ -45,7 +45,7 @@ class ComputedStyleInitialValues{
}
static StyleImage* InitialBorderImageSource() { return nullptr; }
static float InitialBorderWidth() { return 3; }
static unsigned short InitialColumnRuleWidth() {
static uint16_t InitialColumnRuleWidth() {
return 3;
}
......@@ -60,7 +60,7 @@ class ComputedStyleInitialValues{
static float InitialWordSpacing() { return 0.0f; }
static float InitialLetterSpacing() { return 0.0f; }
static unsigned short InitialOutlineWidth() {
static uint16_t InitialOutlineWidth() {
return 3;
}
static EVerticalAlign InitialVerticalAlign() {
......
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