Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
index b72300c1096ea9e3790bef6a13b2bde3bb33fe0b..3f19b9fc5a90f5e851e5769aff774b5ae3d72f56 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
@@ -6,8 +6,8 @@ |
#include "core/ComputedStyleBaseConstants.h" |
#include "core/CoreExport.h" |
-{% for field in fields if field.storage_type_path != None %} |
-#include "{{field.storage_type_path}}.h" |
+{% for field in fields if field.type_path != None %} |
+#include "{{field.type_path}}.h" |
{% endfor %} |
{# Returns the default value for the field, converted to fit in the storage container. #} |
@@ -103,16 +103,16 @@ class CORE_EXPORT ComputedStyleBase { |
// use resetFoo(), which can be more efficient. |
{% for field in fields %} |
// {{field.property_name}} |
- inline static {{field.storage_type}} {{field.initial_method_name}}() { return {{field.default_value}}; } |
- {{field.storage_type}} {{field.getter_method_name}}() const { return static_cast<{{field.storage_type}}>({{field.name}}); } |
- void {{field.setter_method_name}}({{field.storage_type}} v) { {{field.name}} = static_cast<unsigned>(v); } |
+ inline static {{field.type_name}} {{field.initial_method_name}}() { return {{field.default_value}}; } |
+ {{field.type_name}} {{field.getter_method_name}}() const { return static_cast<{{field.type_name}}>({{field.name}}); } |
+ void {{field.setter_method_name}}({{field.type_name}} v) { {{field.name}} = static_cast<unsigned>(v); } |
meade_UTC10
2017/02/13 06:46:24
This might be hard given it's jinja... but is ther
|
inline void {{field.resetter_method_name}}() { {{field.name}} = {{default_value(field)}}; } |
{% endfor %} |
protected: |
// Storage. |
{% for field in fields %} |
- unsigned {{field.name}} : {{field.size}}; // {{field.storage_type}} |
+ unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
{% endfor %} |
}; |