Commit ff9aab50 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Apply snake_case to AtRuleNames.json5 and generated AtRuleDescriptors.*

This CL has no behavior changes.

Bug: 770603
Change-Id: I919b422532b69ab4e25d6915a6b4db7bc8e3022f
Reviewed-on: https://chromium-review.googlesource.com/961042Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543032}
parent 14bc8d2e
......@@ -23,8 +23,8 @@ class AtRuleNamesWriter(json5_generator.Writer):
super(AtRuleNamesWriter, self).__init__(json5_file_paths)
self._outputs = {
'AtRuleDescriptors.h': self.generate_header,
'AtRuleDescriptors.cpp': self.generate_implementation
'at_rule_descriptors.h': self.generate_header,
'at_rule_descriptors.cc': self.generate_implementation
}
self._descriptors = self.json5_file.name_dictionaries
......@@ -49,7 +49,7 @@ class AtRuleNamesWriter(json5_generator.Writer):
self._longest_name_length)
@template_expander.use_jinja(
'core/css/parser/templates/AtRuleDescriptors.h.tmpl')
'core/css/parser/templates/at_rule_descriptors.h.tmpl')
def generate_header(self):
return {
'descriptors': self._descriptors,
......@@ -57,7 +57,7 @@ class AtRuleNamesWriter(json5_generator.Writer):
}
@gperf.use_jinja_gperf_template(
'core/css/parser/templates/AtRuleDescriptors.cpp.tmpl')
'core/css/parser/templates/at_rule_descriptors.cc.tmpl')
def generate_implementation(self):
return {
'descriptors': self._descriptors,
......
......@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/css/parser/AtRuleDescriptors.h"
#include "core/css/parser/at_rule_descriptors.h"
#include "core/css/HashTools.h"
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AtRuleDescriptors_h
#define AtRuleDescriptors_h
#ifndef BLINK_CORE_CSS_PARSER_AT_RULE_DESCRIPTORS_H_
#define BLINK_CORE_CSS_PARSER_AT_RULE_DESCRIPTORS_H_
#include "core/css_property_names.h"
#include "platform/wtf/text/StringView.h"
......@@ -27,6 +27,6 @@ AtRuleDescriptorID AsAtRuleDescriptorID(StringView string);
CSSPropertyID AtRuleDescriptorIDAsCSSPropertyID(AtRuleDescriptorID);
AtRuleDescriptorID CSSPropertyIDAsAtRuleDescriptor(CSSPropertyID id);
} // namespace blink
} // namespace blink
#endif // AtRuleDescriptors_h
#endif // BLINK_CORE_CSS_PARSER_AT_RULE_DESCRIPTORS_H_
......@@ -1112,15 +1112,15 @@ css_properties("make_core_generated_css_property_names") {
code_generator("make_core_generated_atrule_names") {
script = "../build/scripts/core/css/parser/make_atrule_names.py"
json_inputs = [ "css/parser/AtRuleNames.json5" ]
json_inputs = [ "css/parser/at_rule_names.json5" ]
other_inputs = [ "../build/scripts/gperf.py" ]
templates = [
"../build/scripts/core/css/parser/templates/AtRuleDescriptors.cpp.tmpl",
"../build/scripts/core/css/parser/templates/AtRuleDescriptors.h.tmpl",
"../build/scripts/core/css/parser/templates/at_rule_descriptors.cc.tmpl",
"../build/scripts/core/css/parser/templates/at_rule_descriptors.h.tmpl",
]
outputs = [
"$blink_core_output_dir/css/parser/AtRuleDescriptors.cpp",
"$blink_core_output_dir/css/parser/AtRuleDescriptors.h",
"$blink_core_output_dir/css/parser/at_rule_descriptors.cc",
"$blink_core_output_dir/css/parser/at_rule_descriptors.h",
]
other_args = [
"--gperf",
......
......@@ -36,7 +36,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseProperty.h"
#include "core/css/CSSValue.h"
#include "core/css/parser/AtRuleDescriptors.h"
#include "core/css/parser/at_rule_descriptors.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/DOMException.h"
#include "platform/bindings/ScriptWrappable.h"
......
......@@ -6,7 +6,7 @@
#define AtRuleDescriptorParser_h
#include "core/css/CSSPropertyValue.h"
#include "core/css/parser/AtRuleDescriptors.h"
#include "core/css/parser/at_rule_descriptors.h"
#include "platform/wtf/Vector.h"
namespace blink {
......
......@@ -7,7 +7,7 @@
#include "core/CoreExport.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/parser/AtRuleDescriptors.h"
#include "core/css/parser/at_rule_descriptors.h"
#include "platform/wtf/Allocator.h"
#include "platform/wtf/text/StringView.h"
......
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