Commit 1787f38a authored by Zhuoyu Qian's avatar Zhuoyu Qian Committed by Commit Bot

Move build/scripts/{ => core/css}/make_css_value_id_mappings.py

Move:
  build/scripts/{ => core/css}/make_css_value_id_mappings.py
  build/scripts/{ => core/css}/templates/css_value_id_mappings_generated.h.tmpl

This CL has no behavior changes.

Bug: 732657
Change-Id: Ia914f52ca9b78d802d3994cc88f2731e66a2017e
Reviewed-on: https://chromium-review.googlesource.com/c/1314015
Commit-Queue: Zhuoyu Qian <zhuoyu.qian@samsung.com>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605237}
parent 80ed2e0b
......@@ -3,6 +3,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
from blinkbuild.name_style_converter import NameStyleConverter
import json5_generator
import template_expander
......@@ -115,7 +119,7 @@ class CSSValueIDMappingsWriter(make_style_builder.StyleBuilderWriter):
css_properties = keyword_utils.sort_keyword_properties_by_canonical_order(
css_properties, json5_file_paths[2], self.default_parameters)
@template_expander.use_jinja('templates/css_value_id_mappings_generated.h.tmpl')
@template_expander.use_jinja('core/css/templates/css_value_id_mappings_generated.h.tmpl')
def generate_css_value_mappings(self):
mappings = {}
include_paths = set()
......
......@@ -3,8 +3,8 @@
{{source_files_for_generated_file(template_file, input_files)}}
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#include "base/logging.h"
#include "third_party/blink/renderer/core/computed_style_base_constants.h"
......@@ -100,4 +100,4 @@ inline CSSValueID platformEnumToCSSValueIDGenerated({{enum_name}} v) {
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
......@@ -487,14 +487,14 @@ css_properties("make_core_generated_computed_style_base") {
}
css_properties("make_core_generated_css_value_id_mappings") {
script = "../build/scripts/make_css_value_id_mappings.py"
script = "../build/scripts/core/css/make_css_value_id_mappings.py"
in_files = [ "css/css_value_keywords.json5" ]
other_inputs = [
"../build/scripts/templates/css_value_id_mappings_generated.h.tmpl",
"../build/scripts/core/css/templates/css_value_id_mappings_generated.h.tmpl",
"../build/scripts/keyword_utils.py",
]
outputs = [
"$blink_core_output_dir/css_value_id_mappings_generated.h",
"$blink_core_output_dir/css/css_value_id_mappings_generated.h",
]
}
......
......@@ -5,7 +5,7 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_VALUE_ID_MAPPINGS_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_CSS_VALUE_ID_MAPPINGS_H_
#include "third_party/blink/renderer/core/css_value_id_mappings_generated.h"
#include "third_party/blink/renderer/core/css/css_value_id_mappings_generated.h"
namespace blink {
......
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