Chromium Code Reviews| 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 7aab85d717cc68071045a77f528a9568aa14875a..f8366ecdfc5a583b4b31b004816daca03195abb8 100644 |
| --- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
| +++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
| @@ -24,19 +24,6 @@ namespace blink { |
| // in ComputedStyle.h. |
| class CORE_EXPORT ComputedStyleBase { |
| public: |
| - ALWAYS_INLINE ComputedStyleBase() : |
| - {% for field in fields %} |
| - {{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(not loop.last, ',')}} |
| - {% endfor %} |
| - {} |
| - ~ComputedStyleBase() {} |
| - |
| - ALWAYS_INLINE ComputedStyleBase(const ComputedStyleBase& o) : |
| - {% for field in fields %} |
| - {{field.name}}(o.{{field.name}}){{print_if(not loop.last, ',')}} |
| - {% endfor %} |
| - {} |
| - |
| inline bool independentInheritedEqual(const ComputedStyleBase& o) const { |
| return ( |
| {% for field in fields if field.is_property and field.is_inherited and field.is_independent %} |
| @@ -89,6 +76,20 @@ class CORE_EXPORT ComputedStyleBase { |
| {% endfor %} |
| protected: |
| + ALWAYS_INLINE ComputedStyleBase() : |
| + {% for field in fields %} |
| + {{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(not loop.last, ',')}} |
| + {% endfor %} |
| + {} |
| + |
| + ~ComputedStyleBase() = default; |
|
sashab
2017/03/16 23:55:31
I like this, but can we add a comment here like:
/
|
| + |
| + ALWAYS_INLINE ComputedStyleBase(const ComputedStyleBase& o) : |
| + {% for field in fields %} |
| + {{field.name}}(o.{{field.name}}){{print_if(not loop.last, ',')}} |
| + {% endfor %} |
| + {} |
| + |
| // Storage. |
| {% for field in fields %} |
| unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |